public interface

LifeCycleListener

sg.com.temasys.skylink.sdk.listener.LifeCycleListener
Known Indirect Subclasses

Class Overview

Listener comprises of callbacks related to the life cycle of the connection.

Summary

Public Methods
abstract void onChangeRoomLockStatus(boolean roomLockStatus, String peerId)
This is triggered when the lock status of the room that we are in is changed
abstract void onConnectToRoomFailed(String errorMessage)
This is the first callback to specify whether the attempt to connect to the room was UNSUCCESSFUL.
abstract void onConnectToRoomSucessful()
This is the first callback to specify whether the attempt to connect to the room was successful.
abstract void onDisconnectFromRoom(SkylinkEvent skylinkEvent, String contextDescription)
This is triggered when we disconnect from the room we were in.
abstract void onReceiveError(SkylinkError skylinkError, HashMap<String, Object> details)
This is triggered when the framework issues a error to the user.
abstract void onReceiveInfo(SkylinkInfo skylinkInfo, HashMap<String, Object> details)
This is to deliver framework messages that might be useful to the user.
abstract void onReceiveWarning(SkylinkError skylinkError, HashMap<String, Object> details)
This is triggered when the framework issues a warning to the user.

Public Methods

public abstract 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 abstract 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 abstract void onConnectToRoomSucessful ()

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

public abstract 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 abstract 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 abstract 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 abstract 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.