TVOPreflightDelegate Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | TVOPreflightDelegate.h |
Overview
TVOPreflightDelegate provides callbacks when important changes to a TVOPreflightTest occur.
– preflight:didCompleteWitReport:
required method
Notifies the delegate that the preflight test is completed successfully.
- (void)preflight:(nonnull TVOPreflightTest *)preflightTest didCompleteWitReport:(nonnull TVOPreflightReport *)reportParameters
preflightTest |
The |
|---|---|
report |
The |
Discussion
The state of the TVOPreflightTest will be TVOPreflightTestStatusCompleted at this point.
Declared In
TVOPreflightDelegate.h
– preflight:didFailWithError:
required method
Notifies the delegate that the preflight test has failed.
- (void)preflight:(nonnull TVOPreflightTest *)preflightTest didFailWithError:(nonnull NSError *)errorParameters
preflightTest |
The |
|---|---|
error |
The |
Discussion
The state of the TVOPreflightTest will be TVOPreflightTestStatusFailed at this point.
Declared In
TVOPreflightDelegate.h
– preflightDidConnect:
required method
Notifies the delegate that the preflight test call has successfully connected to Twilio.
- (void)preflightDidConnect:(nonnull TVOPreflightTest *)preflightTestParameters
preflightTest |
The |
|---|
Discussion
The state of the TVOPreflightTest will be TVOPreflightTestStatusConnected at this point.
Declared In
TVOPreflightDelegate.h
– preflight:didReceiveQualityWarnings:previousWarnings:
Notifies the delegate that network quality warnings have changed for the preflight test.
- (void)preflight:(nonnull TVOPreflightTest *)preflightTest didReceiveQualityWarnings:(nonnull NSSet<NSNumber*> *)currentWarnings previousWarnings:(nonnull NSSet<NSNumber*> *)previousWarningsParameters
preflightTest |
The |
|---|---|
currentWarnings |
An |
previousWarnings |
An |
Discussion
The two sets will help the delegate find out what warnings have changed since the last callback was received.
See Also
TVOCall for more detail about
<TVOCallQualityWarning>.
Declared In
TVOPreflightDelegate.h
– preflight:didReceiveStatsSample:
Notifies the delegate that a new stats sample has been received.
- (void)preflight:(nonnull TVOPreflightTest *)preflightTest didReceiveStatsSample:(nonnull TVOPreflightStatsSample *)statsSampleParameters
preflightTest |
The |
|---|---|
statsSample |
Discussion
This callback will be raised every second once the preflight test has connected.
Declared In
TVOPreflightDelegate.h