public class CommunicationSignalingClient extends java.lang.Object implements SignalingClient
Constructor and Description |
---|
CommunicationSignalingClient(com.azure.android.communication.common.CommunicationTokenCredential communicationTokenCredential) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasStarted()
flag to indicate if signaling client has started
|
void |
off(ChatEventType chatEventType,
RealTimeNotificationCallback listener)
Stop listening to Chat events.
|
void |
on(ChatEventType chatEventType,
RealTimeNotificationCallback listener)
Listen to Chat events.
|
void |
start(android.content.Context context,
java9.util.function.Consumer<java.lang.Throwable> errorHandler)
Start the realtime connection.
|
void |
start(java.lang.String skypeUserToken,
android.content.Context context)
Start the realtime connection.
|
void |
stop()
Stop the realtime connection and unsubscribe all event handlers.
|
public CommunicationSignalingClient(com.azure.android.communication.common.CommunicationTokenCredential communicationTokenCredential)
public boolean hasStarted()
hasStarted
in interface SignalingClient
public void start(java.lang.String skypeUserToken, android.content.Context context)
start
in interface SignalingClient
skypeUserToken
- the skype user tokencontext
- the android application contextpublic void start(android.content.Context context, java9.util.function.Consumer<java.lang.Throwable> errorHandler)
start
in interface SignalingClient
context
- the android application contexterrorHandler
- error handler callback for registration failurespublic void stop()
stop
in interface SignalingClient
public void on(ChatEventType chatEventType, RealTimeNotificationCallback listener)
SignalingClient
on
in interface SignalingClient
chatEventType
- the chat event kindlistener
- the listener callback functionpublic void off(ChatEventType chatEventType, RealTimeNotificationCallback listener)
SignalingClient
off
in interface SignalingClient
chatEventType
- the chat event kindlistener
- the listener callback function