TVOCallDelegate Protocol Reference

Conforms to NSObject
Declared in TVOCallDelegate.h

Overview

TVOCallDelegate provides callbacks when important changes to a TVOCall occur.

Required Methods

– callDidConnect: required method

Notifies the delegate that a Call has connected.

- (void)callDidConnect:(nonnull TVOCall *)call

Parameters

call

The TVOCall that was connected.

See Also

Declared In

TVOCallDelegate.h

– call:didFailToConnectWithError: required method

Notifies the delegate that a Call has failed to connect.

- (void)call:(nonnull TVOCall *)call didFailToConnectWithError:(nonnull NSError *)error

Parameters

call

The TVOCall that failed to connect.

error

The <NSError> that occurred.

See Also

Declared In

TVOCallDelegate.h

– call:didDisconnectWithError: required method

Notifies the delegate that a Call has disconnected.

- (void)call:(nonnull TVOCall *)call didDisconnectWithError:(nullable NSError *)error

Parameters

call

The TVOCall that was disconnected.

error

An NSError describing why disconnect occurred, or nil if the disconnect was expected.

See Also

Declared In

TVOCallDelegate.h

Optional Methods

– callDidStartRinging:

Notifies the delegate that the called party is being alerted of a Call.

- (void)callDidStartRinging:(nonnull TVOCall *)call

Parameters

call

The TVOCall that the called party is being alerted of.

Discussion

This callback is invoked once before the [TVOCallDelegate callDidConnect:] callback. If the answerOnBridge is true this represents the callee is being alerted of a Call.

See Also

Declared In

TVOCallDelegate.h

– call:isReconnectingWithError:

Notifies the delegate that a Call starts to reconnect due to network change event.

- (void)call:(nonnull TVOCall *)call isReconnectingWithError:(nonnull NSError *)error

Parameters

call

The TVOCall that is reconnecting.

error

The <NSError> that describes the reconnect reason. This would have one of the two possible values with error codes TVOErrorSignalingConnectionDisconnectedError and TVOErrorMediaConnectionError.

Discussion

Reconnect is triggered when a network change is detected and Call is already in TVOCallStateConnected state. If the call is either in TVOCallStateConnecting or in TVOCallStateRinging when network change happened then the current call will disconnect.

See Also

Declared In

TVOCallDelegate.h

– callDidReconnect:

Notifies the delegate that a Call is reconnected.

- (void)callDidReconnect:(nonnull TVOCall *)call

Parameters

call

The TVOCall that is reconnected.

See Also

Declared In

TVOCallDelegate.h