Rate this page:

ClientSessionListener

This API is in beta and subject to change.

Interface that handles events related to the connection with the Voximplant Cloud.

Methods

onConnectionClosed

Copy URL
fun onConnectionClosed(reason: 

DisconnectReason

):

Unit

This API is in beta and subject to change.

Triggered when connection to the Voximplant Cloud is closed as a result of Client.disconnect method call or due to network issues.

Parameters

  • Specifies the reason why the connection to the Voximplant Cloud is closed

Returns

  • type:

    Unit

onReconnecting

Copy URL
fun onReconnecting(): 

Unit

This API is in beta and subject to change.

Triggered when the connection to the Voximplant Cloud is lost during a call and the client tries to restore it.

Returns

  • type:

    Unit

onReconnected

Copy URL
fun onReconnected(): 

Unit

This API is in beta and subject to change.

Triggered when the connection to the Voximplant Cloud is restored during a call.

After the client is reconnected, Client.clientState is changed to ClientState.LoggedIn.

Returns

  • type:

    Unit