public interface SinchClientListener extends UserRegistrationCallback, PushTokenRegistrationCallback
SinchClientListener
handles client state changes and the optional log
method allows the listener to log messages from the underlying calling
functionality.
Note: The listener will be called on the same thread as the SinchClient is instantiated on.Modifier and Type | Method and Description |
---|---|
void |
onClientFailed(SinchClient client,
SinchError error)
Tells the listener that there was an error in the
SinchClient . |
void |
onClientStarted(SinchClient client)
Tells the listener that the client has started and ready for initiating
outgoing calls.
|
void |
onLogMessage(int level,
java.lang.String area,
java.lang.String message)
Optional method for handling log messages from the underlying calling
functionality.
|
onCredentialsRequired, onUserRegistered, onUserRegistrationFailed
onPushTokenRegistered, onPushTokenRegistrationFailed
void onClientStarted(SinchClient client)
SinchClient.startListeningOnActiveConnection()
must be called.client
- The client informing the listener that it started.void onClientFailed(SinchClient client, SinchError error)
SinchClient
.client
- The SinchClient
informing the listener that an error
occurred.error
- SinchError
object that describes the problem.void onLogMessage(int level, java.lang.String area, java.lang.String message)
level
- the severity level. Same levels as Log
area
- the underlying functionality reporting the messagemessage
- the log messageCopyright 2016, Sinch AB