Rate this page:

IClientSessionListener

Interface that may be used to handle events for connection with the Voximplant Cloud.

Methods

onConnectionClosed

Copy URL

void

onConnectionClosed()

Invoked if the connection to the Voximplant Cloud was closed as a result of IClient.disconnect() method call or due to network problems

Returns

  • type:

    void

onConnectionEstablished

Copy URL

void

onConnectionEstablished()

Invoked after the connection to the Voximplant Cloud was established successfully

Returns

  • type:

    void

onConnectionFailed

Copy URL

void

onConnectionFailed(

String

error
)

Invoked if the connection to the Voximplant Cloud could not be established

Parameters

  • error:

    String

    Failure reason description

Returns

  • type:

    void

onReconnected

Since ver. 2.29.0
Copy URL

void

onReconnected()

Invoked after the connection to the Voximplant Cloud is restored during a call.

After the client is reconnected, IClient.getClientState() is changed to ClientState.LOGGED_IN.

Returns

  • type:

    void

onReconnecting

Since ver. 2.29.0
Copy URL

void

onReconnecting()

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

Returns

  • type:

    void