TelnyxClient class
Methods
acceptCall (IncomingInviteParams invite , String callerName , String callerNumber , String clientState , {bool isAttach = false , })
→ Call
Accepts the incoming call specified via the invite
parameter, sending
your local specified callerName
, callerNumber
and clientState
activeCalls ()
→ Map <String , Call >
checkReconnection ()
→ void
connect ()
→ void
connectWithCredential (CredentialConfig credentialConfig )
→ void
connectWithToken (TokenConfig tokenConfig )
→ void
credentialLogin (CredentialConfig config )
→ void
Uses the provided config
to send a credential login message to the Telnyx backend.
If successful, the gateway registration process will start.
disconnect ()
→ void
Closes the socket connection, effectively logging the user out.
disconnectWithCallBck (OnCloseCallback ? closeCallback )
→ void
Closes the socket connection, effectively logging the user out.
getCallOrNull (String callId )
→ Call ?
getGatewayStatus ()
→ String
Returns the current Gateway state for the socket connection
handlePushNotification (PushMetaData pushMetaData , CredentialConfig ? credentialConfig , TokenConfig ? tokenConfig )
→ void
Handles the push notification received from the backend
and initiates the connection with the provided pushMetaData
and credentialConfig
or tokenConfig
If the push notification is received while the client is not connected
Note: Do not call the connect method after calling this method, it implicitly calls the
connect method with the provided pushMetaData
and credentialConfig
or tokenConfig
isConnected ()
→ bool
Returns whether or not the client is connected to the socket connection
newInvite (String callerName , String callerNumber , String destinationNumber , String clientState , { })
→ Call
using the provided callerName
, callerNumber
and a clientState
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
tokenLogin (TokenConfig config )
→ void
Uses the provided config
to send a token login message to the Telnyx backend.
If successful, the gateway registration process will start.
toString ()
→ String
A string representation of this object.
inherited
updateCall (Call call )
→ void