Package com.sinch.android.rtc
Interface SinchClientListener
-
- All Superinterfaces:
PushTokenRegistrationCallback
,PushTokenUnregistrationCallback
,UserRegistrationCallback
public interface SinchClientListener extends UserRegistrationCallback, PushTokenRegistrationCallback, PushTokenUnregistrationCallback
ASinchClientListener
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onClientFailed(SinchClient client, SinchError error)
Tells the listener that there was an error in theSinchClient
.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.-
Methods inherited from interface com.sinch.android.rtc.PushTokenRegistrationCallback
onPushTokenRegistered, onPushTokenRegistrationFailed
-
Methods inherited from interface com.sinch.android.rtc.PushTokenUnregistrationCallback
onPushTokenUnregistered, onPushTokenUnregistrationFailed
-
Methods inherited from interface com.sinch.android.rtc.UserRegistrationCallback
onCredentialsRequired, onUserRegistered, onUserRegistrationFailed
-
-
-
-
Method Detail
-
onClientStarted
void 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
void onClientFailed(SinchClient client, SinchError error)
Tells the listener that there was an error in theSinchClient
.- Parameters:
client
- TheSinchClient
informing the listener that an error occurred.error
-SinchError
object that describes the problem.
-
onLogMessage
void onLogMessage(int level, java.lang.String area, java.lang.String message)
Optional method for handling log messages from the underlying calling functionality.- Parameters:
level
- the severity level. Same levels asLog
area
- the underlying functionality reporting the messagemessage
- the log message
-
-