ActiveCallDelegate
public protocol ActiveCallDelegate
Delegate for receiving notifications about new ActiveVoiceCall
events.
Note
ActiveCallDelegate
methods are called on the main thread.
-
Notifies the delegate that the call has connected
Declaration
Swift
func activeVoiceCallDidConnect(_ call: ActiveVoiceCall)
Parameters
call
The
ActiveVoiceCall
-
Notifies the delegate that the call failed to connect
Declaration
Swift
func activeVoiceCallDidFailToConnect(withError error: CallingError)
Parameters
error
CallingError
that occurred. -
Notifies the delegate that the call has been disconnected
Declaration
Swift
func activeVoiceCall(_ call: ActiveVoiceCall, didDisconnectWithError error: Error?)
Parameters
call
The
ActiveVoiceCall
error
Error that caused the call to disconnect if one occurred.
-
Notifies the delegate that the call has been disconnected
Declaration
Swift
func activeVoiceCall(_ call: ActiveVoiceCall, didChangeMuteState isMuted: Bool)
Parameters
call
The
ActiveVoiceCall
isMuted
Whether outgoing call audio is muted
-
Called when the system audio route has changed.
Use
call.isOnSpeaker
to determine if the call is on speaker.Declaration
Swift
func activeVoiceCallAudioRouteDidChange(_ call: ActiveVoiceCall)
Parameters
call
The
ActiveVoiceCall