TVOPreflightTest
Objective-C
@interface TVOPreflightTest : NSObject
/**
* @name Properties
*/
/**
* @brief The current state of the preflight test.
*/
@property (nonatomic, assign, readonly) TVOPreflightTestStatus status;
/**
* @brief The call SID for the preflight test call.
*/
@property (nonatomic, strong, readonly, nonnull) NSString *callSid;
/**
* @brief Preflight test start time. Unix timestamp in milliseconds.
*/
@property (nonatomic, assign, readonly) CFTimeInterval startTime;
/**
* @brief Preflight test end time. Unix timestamp in milliseconds.
*/
@property (nonatomic, assign, readonly) CFTimeInterval endTime;
/**
* @brief The preflight test report.
*
* @discussion If accessed when the preflight status is anything other than `TVOPreflightTestStatusCompleted`,
* an empty report object will be returned.
*/
@property (nonatomic, strong, readonly, nullable) TVOPreflightReport *preflightReport;
/**
* @brief Returns the latest stats sample for the preflight test.
*/
@property (nonatomic, strong, readonly, nullable) TVOPreflightStatsSample *latestSample;
/**
* @name Preflight Test Actions
*/
/**
* @brief Stops the ongoing preflight test.
* This will result in preflight test to be in `TVOPreflightTestStatusFailed` state.
*/
- (void)stop;
@end
Swift
class TVOPreflightTest : NSObject
Undocumented
-
@brief The current state of the preflight test.
Declaration
Objective-C
@property (nonatomic, readonly) TVOPreflightTestStatus status;Swift
var status: TVOPreflightTestStatus { get } -
@brief The call SID for the preflight test call.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nonnull) NSString *callSid;Swift
var callSid: String { get } -
@brief Preflight test start time. Unix timestamp in milliseconds.
Declaration
Objective-C
@property (nonatomic, readonly) CFTimeInterval startTime;Swift
var startTime: CFTimeInterval { get } -
@brief Preflight test end time. Unix timestamp in milliseconds.
Declaration
Objective-C
@property (nonatomic, readonly) CFTimeInterval endTime;Swift
var endTime: CFTimeInterval { get } -
@brief The preflight test report.
@discussion If accessed when the preflight status is anything other than
TVOPreflightTestStatusCompleted, an empty report object will be returned.Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) TVOPreflightReport *preflightReport;Swift
var preflightReport: TVOPreflightReport? { get } -
@brief Returns the latest stats sample for the preflight test.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) TVOPreflightStatsSample *latestSample;Swift
var latestSample: TVOPreflightStatsSample? { get }
-
@brief Stops the ongoing preflight test. This will result in preflight test to be in
TVOPreflightTestStatusFailedstate.Declaration
Objective-C
- (void)stop;Swift
func stop()