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 SignalingClientpublic void start(java.lang.String skypeUserToken,
android.content.Context context)
start in interface SignalingClientskypeUserToken - 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 SignalingClientcontext - the android application contexterrorHandler - error handler callback for registration failurespublic void stop()
stop in interface SignalingClientpublic void on(ChatEventType chatEventType, RealTimeNotificationCallback listener)
SignalingClienton in interface SignalingClientchatEventType - the chat event kindlistener - the listener callback functionpublic void off(ChatEventType chatEventType, RealTimeNotificationCallback listener)
SignalingClientoff in interface SignalingClientchatEventType - the chat event kindlistener - the listener callback function