TxClientDelegate
public protocol TxClientDelegate : AnyObject
Delegate protocol asociated with the TxClient Methods for receiving TxClient events.
-
Tells the delegate when the Telnyx Client has successfully connected to the Telnyx Backend
Declaration
Swift
func onSocketConnected()
-
Tells the delegate when the Telnyx Client has disconnected from the Telnyx Backend
Declaration
Swift
func onSocketDisconnected()
-
Tells the delegate when there’s an error in the Telnyx Client
Declaration
Swift
func onClientError(error: Error)
Parameters
error
error occurred inside the Telnyx Client
-
Tells the delegate that the The Telnyx Client is ready to be used. Has successfully connected and logged in
Declaration
Swift
func onClientReady()
-
Push notification is disabled for the current user
Declaration
Swift
func onPushDisabled(success: Bool, message: String)
-
Tells the delegate that the Telnyx Client session has been updated.
Declaration
Swift
func onSessionUpdated(sessionId: String)
Parameters
sessionId
The new sessionId assigned to the client connection.
-
Tells the delegate that a call has been updated.
Declaration
Swift
func onCallStateUpdated(callState: CallState, callId: UUID)
Parameters
callState
The new call state
callId
The UUID of the affected call
-
Tells the delegate that someone is calling
Declaration
Swift
func onIncomingCall(call: Call)
Parameters
call
The call object of the incoming call.
-
Tells the delegate that a call has ended
Declaration
Swift
func onRemoteCallEnded(callId: UUID)
Parameters
callId
the UUID of the call that has ended.
-
Tells the delegate that an INVITE has been received for the incoming push
Declaration
Swift
func onPushCall(call: Call)
Parameters
call
The call object of the incoming call.