Rate this page:

IClientSessionListener

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

Methods

onConnectionClosed

Copy URL

void

onConnectionClosed()

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

void

onConnectionEstablished()

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

Returns

  • type:

    void

onConnectionFailed

Copy URL

void

onConnectionFailed(

String

error
)

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

void

onReconnected()

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

void

onReconnecting()

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

Returns

  • type:

    void