public static interface RespokeClient.Listener
Modifier and Type | Method and Description |
---|---|
void |
onCall(RespokeClient sender,
RespokeCall call)
Receive a notification that the client is receiving a call from a remote party.
|
void |
onConnect(RespokeClient sender)
Receive a notification Respoke has successfully connected to the cloud.
|
void |
onDisconnect(RespokeClient sender,
boolean reconnecting)
Receive a notification Respoke has successfully disconnected from the cloud.
|
void |
onError(RespokeClient sender,
java.lang.String errorMessage)
Handle an error that resulted from a method call.
|
void |
onIncomingDirectConnection(RespokeDirectConnection directConnection,
RespokeEndpoint endpoint)
This event is fired when the logged-in endpoint is receiving a request to open a direct connection
to another endpoint.
|
void |
onMessage(java.lang.String message,
RespokeEndpoint endpoint,
RespokeGroup group,
java.util.Date timestamp,
java.lang.Boolean didSend)
Receive a notification that a message addressed to this group has been received
|
void onConnect(RespokeClient sender)
sender
- The RespokeClient that has connectedvoid onDisconnect(RespokeClient sender, boolean reconnecting)
sender
- The RespokeClient that has disconnectedreconnecting
- Indicates if the Respoke SDK is attempting to automatically reconnectvoid onError(RespokeClient sender, java.lang.String errorMessage)
sender
- The RespokeClient that is reporting the errorerrorMessage
- The error that has occurredvoid onCall(RespokeClient sender, RespokeCall call)
sender
- The RespokeClient that is receiving the callcall
- A reference to the incoming RespokeCall objectvoid onIncomingDirectConnection(RespokeDirectConnection directConnection, RespokeEndpoint endpoint)
directConnection
- The incoming direct connection objectendpoint
- The remote endpoint initiating the direct connectionvoid onMessage(java.lang.String message, RespokeEndpoint endpoint, RespokeGroup group, java.util.Date timestamp, java.lang.Boolean didSend)
message
- The messageendpoint
- The remote endpoint the message is related togroup
- If this was a group message, the group to which this group message was posted.timestamp
- The timestamp of the messagedidSend
- True if the specified endpoint sent the message, False if it received the message. Null for group messages.