public static interface SyncClient.SyncClientListener
| Modifier and Type | Method and Description |
|---|---|
default void |
onConnectionStateChanged(SyncClient.ConnectionState state)
Called when the client connection state changes.
|
default void |
onTokenAboutToExpire()
Called when the client's token will expire soon.
|
default void |
onTokenExpired()
Called when the client's token has expired.
|
default void onConnectionStateChanged(SyncClient.ConnectionState state)
state - The current connection state of the client.default void onTokenAboutToExpire()
SyncClient.updateToken(java.lang.String, com.twilio.sync.SuccessListener<java.lang.Void>) as soon as possible.default void onTokenExpired()
SyncClient.updateToken(java.lang.String, com.twilio.sync.SuccessListener<java.lang.Void>) immediately as connection to the server has been lost.