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 *)report

Parameters

preflightTest

The TVOPreflightTest.

report

The TVOPreflightReport.

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 *)error

Parameters

preflightTest

The TVOPreflightTest that failed.

error

The <NSError> that occurred.

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 *)preflightTest

Parameters

preflightTest

The TVOPreflightTest.

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*> *)previousWarnings

Parameters

preflightTest

The TVOPreflightTest that received quality warning updates.

currentWarnings

An <NSSet> that contains the warnings at the instant of receiving this callback. Values in the <NSSet> are <NSNumber> with values of TVOCallQualityWarning.

previousWarnings

An <NSSet> that contains the warnings before receiving this callback. Values in the <NSSet> are <NSNumber> with values of TVOCallQualityWarning.

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 *)statsSample

Parameters

preflightTest

The TVOPreflightTest that received the stats sample.

statsSample

The TVOPreflightStatsSample.

Discussion

This callback will be raised every second once the preflight test has connected.

Declared In

TVOPreflightDelegate.h