Rate this page:

IClientSessionListener

Interface that provides API to handle the Voximplant cloud's connection events.

Methods

onConnectionClosed

Copy URL
onConnectionClosed(): 

void

Triggered if the connection to the Voximplant cloud has been closed as a result of IClient.disconnect() method call or due to network problems.

Returns

  • type:

    void

onConnectionEstablished

Copy URL
onConnectionEstablished(): 

void

Triggered if the connection to the Voximplant cloud has been established successfully.

Returns

  • type:

    void

onConnectionFailed

Copy URL
onConnectionFailed(error: 

String

):

void

Triggered if the connection to the Voximplant cloud cannot be established.

Parameters

  • error:

    String

    Failure reason description

Returns

  • type:

    void

onReconnected

Since ver. 2.29.0
Copy URL
onReconnected(): 

void

Triggered if 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
onReconnecting(): 

void

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

Returns

  • type:

    void