-
- All Implemented Interfaces:
-
com.sinch.android.rtc.PushTokenRegistrationCallback,com.sinch.android.rtc.PushTokenUnregistrationCallback,com.sinch.android.rtc.UserRegistrationCallback
public interface SinchClientListener implements UserRegistrationCallback, PushTokenRegistrationCallback, PushTokenUnregistrationCallback
A 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.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonClientStarted(SinchClient client)Tells the listener that the client has started and ready for initiating outgoing calls. abstract UnitonClientFailed(SinchClient client, SinchError error)Tells the listener that there was an error in the SinchClient. abstract UnitonLogMessage(Integer level, String area, String message)Optional method for handling log messages from the underlying calling functionality. -
Methods inherited from class com.sinch.android.rtc.UserRegistrationCallback
onCredentialsRequired, onUserRegistered, onUserRegistrationFailed -
Methods inherited from class com.sinch.android.rtc.PushTokenRegistrationCallback
onPushTokenRegistered, onPushTokenRegistrationFailed -
Methods inherited from class com.sinch.android.rtc.PushTokenUnregistrationCallback
onPushTokenUnregistered, onPushTokenUnregistrationFailed -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onClientStarted
abstract Unit onClientStarted(SinchClient client)
Tells the listener that the client has started and ready for initiating outgoing calls.
- Parameters:
client- The client informing the listener that it started.
-
onClientFailed
abstract Unit onClientFailed(SinchClient client, SinchError error)
Tells the listener that there was an error in the SinchClient.
- Parameters:
client- The SinchClient informing the listener that an error occurred.error- SinchError object that describes the problem.
-
onLogMessage
abstract Unit onLogMessage(Integer level, String area, String message)
Optional method for handling log messages from the underlying calling functionality.
- Parameters:
level- the severity level.area- the underlying functionality reporting the messagemessage- the log message
-
-
-
-