public static interface RespokeSignalingChannel.Listener
Modifier and Type | Method and Description |
---|---|
void |
callCreated(RespokeCall call)
Receive a notification from the signaling channel that a call has been created
|
void |
callTerminated(RespokeCall call)
Receive a notification from the signaling channel that a call has terminated
|
RespokeCall |
callWithID(java.lang.String sessionID)
Find a call with the specified session ID
|
void |
directConnectionAvailable(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 |
onConnect(RespokeSignalingChannel sender,
java.lang.String endpointID,
java.lang.String connectionID)
Receive a notification from the signaling channel that it has connected to the cloud infrastructure
|
void |
onDisconnect(RespokeSignalingChannel sender)
Receive a notification from the signaling channel that it has disconnected to the cloud infrastructure
|
void |
onError(java.lang.String errorMessage,
RespokeSignalingChannel sender)
Receive a notification from the signaling channel that an error has occurred
|
void |
onGroupMessage(java.lang.String message,
java.lang.String groupID,
java.lang.String endpointID,
RespokeSignalingChannel sender,
java.util.Date timestamp)
Receive a notification that a group message was received
|
void |
onIncomingCall(org.json.JSONObject sdp,
java.lang.String sessionID,
java.lang.String connectionID,
java.lang.String endpointID,
java.lang.String fromType,
java.util.Date timestamp,
RespokeSignalingChannel sender)
Receive a notification from the signaling channel that a remote endpoint is attempting to start a call
|
void |
onIncomingDirectConnection(org.json.JSONObject sdp,
java.lang.String sessionID,
java.lang.String connectionID,
java.lang.String endpointID,
java.util.Date timestamp,
RespokeSignalingChannel sender)
Receive a notification from the signaling channel that a remote endpoint is attempting to start a direct connection
|
void |
onJoinGroup(java.lang.String groupID,
java.lang.String endpointID,
java.lang.String connectionID,
RespokeSignalingChannel sender)
Receive a notification from the signaling channel that an endpoint has joined this group.
|
void |
onLeaveGroup(java.lang.String groupID,
java.lang.String endpointID,
java.lang.String connectionID,
RespokeSignalingChannel sender)
Receive a notification from the signaling channel that an endpoint has left this group.
|
void |
onMessage(java.lang.String message,
java.util.Date timestamp,
java.lang.String fromEndpointID,
java.lang.String toEndpointID,
RespokeSignalingChannel sender)
Receive a notification from the signaling channel that a message has been sent to this group
|
void |
onPresence(java.lang.Object presence,
java.lang.String connectionID,
java.lang.String endpointID,
RespokeSignalingChannel sender)
Receive a notification that a presence change message was received
|
void onConnect(RespokeSignalingChannel sender, java.lang.String endpointID, java.lang.String connectionID)
sender
- The signaling channel that triggered the eventendpointID
- The endpointID for this connection, as reported by the serverconnectionID
- The connectionID for this connection.void onDisconnect(RespokeSignalingChannel sender)
sender
- The signaling channel that triggered the eventvoid onIncomingCall(org.json.JSONObject sdp, java.lang.String sessionID, java.lang.String connectionID, java.lang.String endpointID, java.lang.String fromType, java.util.Date timestamp, RespokeSignalingChannel sender)
sdp
- The SDP data for the callsessionID
- The session ID of the callconnectionID
- The connectionID that is callingendpointID
- The endpointID that is callingtimestamp
- The timestamp when the call was initiatedfromType
- Type of the message source.sender
- The signaling channel that triggered the eventvoid onIncomingDirectConnection(org.json.JSONObject sdp, java.lang.String sessionID, java.lang.String connectionID, java.lang.String endpointID, java.util.Date timestamp, RespokeSignalingChannel sender)
sdp
- The SDP data for the directConnectionsessionID
- The session ID of the directConnectionconnectionID
- The connectionID that is callingendpointID
- The endpointID that is callingtimestamp
- The timestamp when the call was initiatedsender
- The signaling channel that triggered the eventvoid onError(java.lang.String errorMessage, RespokeSignalingChannel sender)
errorMessage
- Error messagesender
- The signaling channel that triggered the eventvoid onJoinGroup(java.lang.String groupID, java.lang.String endpointID, java.lang.String connectionID, RespokeSignalingChannel sender)
groupID
- The ID of the group triggering the join messageendpointID
- The ID of the endpoint that to which the connection belongsconnectionID
- The ID of the connection that has joined the groupsender
- The signaling channel that triggered the eventvoid onLeaveGroup(java.lang.String groupID, java.lang.String endpointID, java.lang.String connectionID, RespokeSignalingChannel sender)
groupID
- The ID of the group triggering the leave messageendpointID
- The ID of the endpoint that to which the connection belongsconnectionID
- The ID of the connection that has left the groupsender
- The signaling channel that triggered the eventvoid onMessage(java.lang.String message, java.util.Date timestamp, java.lang.String fromEndpointID, java.lang.String toEndpointID, RespokeSignalingChannel sender)
message
- The body of the messagetimestamp
- The timestamp of the messagefromEndpointID
- The ID of the endpoint sending the messagetoEndpointID
- The ID of the original recipient of the message if being cc'd to self, otherwise nullsender
- The signaling channel that triggered the eventvoid onGroupMessage(java.lang.String message, java.lang.String groupID, java.lang.String endpointID, RespokeSignalingChannel sender, java.util.Date timestamp)
message
- The body of the messagegroupID
- The ID of the group to which the message was sentendpointID
- The ID of the endpoint that sent the messagesender
- The signaling channel that triggered the eventtimestamp
- The time at which the message was sentvoid onPresence(java.lang.Object presence, java.lang.String connectionID, java.lang.String endpointID, RespokeSignalingChannel sender)
presence
- The new presence valueconnectionID
- The connection ID whose presence changedendpointID
- The endpoint ID to which the connection belongssender
- The signaling channel that triggered the eventvoid callCreated(RespokeCall call)
call
- The RespokeCall instance that was createdvoid callTerminated(RespokeCall call)
call
- The RespokeCall instance that was terminatedRespokeCall callWithID(java.lang.String sessionID)
sessionID
- SessionID to findvoid directConnectionAvailable(RespokeDirectConnection directConnection, RespokeEndpoint endpoint)
directConnection
- The direct connection objectendpoint
- The remote endpoint