sg.com.temasys.skylink.sdk.listener.MessagesListener |
Known Indirect Subclasses |
Listener comprises of callbacks upon receiving various messages from remote peers.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
onReceiveP2PMessage(Object message, boolean isPublic, Long timeStamp, String remotePeerId)
This is triggered when a broadcast or private message is received directly from a remote peer
,i.e.
| ||||||||||
abstract void |
onReceiveServerMessage(Object message, boolean isPublic, Long timeStamp, String remotePeerId)
This is triggered when a broadcast or private message is received from a remote peer via a
server.
|
This is triggered when a broadcast or private message is received directly from a remote peer ,i.e. in a peer to peer manner.
message | User defined message. May be a 'java.lang.String', 'org.json.JSONObject' or 'org.json.JSONArray'. |
---|---|
isPublic | Flag to specify whether message was broadcast to all peers in the room, (as opposed to sent to us only). |
timeStamp | The timestamp of the message, in the number of milliseconds since the epoch of 1970-01-01T00:00:00Z (midnight, January 1, 1970 UTC). |
remotePeerId | The id of the remote peer |
This is triggered when a broadcast or private message is received from a remote peer via a server.
message | User defined message. May be a 'java.lang.String', 'org.json.JSONObject' or 'org.json.JSONArray'. |
---|---|
isPublic | Flag to specify whether message was broadcast to all peers in the room, (as opposed to sent to us only). |
timeStamp | The timestamp of the message when it was received by Temasys server, in the number of milliseconds since the epoch of 1970-01-01T00:00:00Z (midnight, January 1, 1970 UTC). |
remotePeerId | The id of the remote peer |