Telnyx Client
The TelnyxClient class that can be used to control the SDK. Create / Answer calls, change audio device, etc.
Parameters
the Context that the application is using
Types
Functions
Connects to the socket using this client as the listener Will respond with 'No Network Connection' if there is no network available
Logs the user in with credentials provided via CredentialConfig
Disables push notifications for current user
Returns all active calls that have been stored in our calls MutableMap The MutableMap is converted into a Map - preventing any changes by the SDK User
Gets the currently configured ringback tone resource.
Gets the currently configured ringtone resource.
Returns the socket response in the form of LiveData The format of each message is provided in SocketResponse and ReceivedMessageBody
Returns the json messages from socket in the form of LiveData used for debugging purposes
Fires when a user has provided an answer to a call attempt
Fires once a connection has been reestablished during an ongoing call and a session is being reattached
Fires when the TxSocket has received an indication the a call has ended or been rejected
Fires once the client is ready and gateway status updates can be received
Fires when a socket connection is established
Fires when a disablePush response is recieved
Disconnect from the TxSocket and unregister the provided network callback
Fires when an error has occurred with the TxSocket
Fires once a Gateway state has been received. These are used to find a verified registration
Fires when a usable IceCandidate has been received
Fires when an answer has been provided with additional media
Fires when the TxSocket has received an invitation to communicate
Fires once we receive a ringing socket response, containing Telnyx information
Sets the audio device that the SDK should use
Fires when network has dropped during an ongoing call. Signifies that the SDK will attempt to recover once network has returned
Logs the user in with credentials provided via TokenConfig