public class

LifeCycleAdapter

extends Object
implements LifeCycleListener
java.lang.Object
   ↳ sg.com.temasys.skylink.sdk.adapter.LifeCycleAdapter

Summary

Public Constructors
LifeCycleAdapter()
Public Methods
void onChangeRoomLockStatus(boolean roomLockStatus, String peerId)
This is triggered when the lock status of the room that we are in is changed
void onConnectToRoomFailed(String errorMessage)
This is the first callback to specify whether the attempt to connect to the room was UNSUCCESSFUL.
void onConnectToRoomSucessful()
This is the first callback to specify whether the attempt to connect to the room was successful.
void onDisconnectFromRoom(SkylinkEvent skylinkEvent, String contextDescription)
This is triggered when we disconnect from the room we were in.
void onReceiveError(SkylinkError skylinkError, HashMap<String, Object> details)
This is triggered when the framework issues a error to the user.
void onReceiveInfo(SkylinkInfo skylinkInfo, HashMap<String, Object> details)
This is to deliver framework messages that might be useful to the user.
void onReceiveWarning(SkylinkError skylinkError, HashMap<String, Object> details)
This is triggered when the framework issues a warning to the user.
[Expand]
Inherited Methods
From class java.lang.Object
From interface sg.com.temasys.skylink.sdk.listener.LifeCycleListener

Public Constructors

public LifeCycleAdapter ()

Public Methods

public void onChangeRoomLockStatus (boolean roomLockStatus, String peerId)

This is triggered when the lock status of the room that we are in is changed

Parameters
roomLockStatus True if the room is locked & false if the room has been unlocked
peerId The id of the peer that changed the lock status.

public void onConnectToRoomFailed (String errorMessage)

This is the first callback to specify whether the attempt to connect to the room was UNSUCCESSFUL.

Parameters
errorMessage The error description for failed connection

public void onConnectToRoomSucessful ()

This is the first callback to specify whether the attempt to connect to the room was successful.

public void onDisconnectFromRoom (SkylinkEvent skylinkEvent, String contextDescription)

This is triggered when we disconnect from the room we were in.

Parameters
skylinkEvent SkylinkEvent with more details about this disconnection.
contextDescription Message specifying the reason for disconnection

public void onReceiveError (SkylinkError skylinkError, HashMap<String, Object> details)

This is triggered when the framework issues a error to the user.

Parameters
skylinkError SkylinkError with more details about this error.
details Error message from framework with content delivered as a map.

public void onReceiveInfo (SkylinkInfo skylinkInfo, HashMap<String, Object> details)

This is to deliver framework messages that might be useful to the user.

Parameters
skylinkInfo SkylinkInfo with more details about this info.
details Info message from framework with content delivered as a map.

public void onReceiveWarning (SkylinkError skylinkError, HashMap<String, Object> details)

This is triggered when the framework issues a warning to the user.

Parameters
skylinkError SkylinkError with more details about this warning.
details Warning message from framework with content delivered as a map.