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
callThe
ActiveVoiceCall -
Notifies the delegate that the call failed to connect
Declaration
Swift
func activeVoiceCallDidFailToConnect(withError error: CallingError)Parameters
errorCallingErrorthat occurred. -
Notifies the delegate that the call has been disconnected
Declaration
Swift
func activeVoiceCall(_ call: ActiveVoiceCall, didDisconnectWithError error: Error?)Parameters
callThe
ActiveVoiceCallerrorError 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
callThe
ActiveVoiceCallisMutedWhether outgoing call audio is muted
-
Called when the system audio route has changed.
Use
call.isOnSpeakerto determine if the call is on speaker.Declaration
Swift
func activeVoiceCallAudioRouteDidChange(_ call: ActiveVoiceCall)Parameters
callThe
ActiveVoiceCall
ActiveCallDelegate Protocol Reference