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 onConnect(boolean isSuccessful, String message)
This is the first callback to specify whether the attempt to connect to the room was successful.
abstract void onDisconnect(int errorCode, String message)
This is triggered when we disconnect from the room we were in.
abstract void onLockRoomStatusChange(String remotePeerId, boolean lockStatus)
This is triggered when the lock status of the room that we are in changes
abstract void onReceiveLog(String message)
Occasionally the framework sends some messages for the client to intimate about certain happenings.
abstract void onWarning(int errorCode, String message)
This is triggered when the framework issues a warning to the client.

Public Methods

public abstract void onConnect (boolean isSuccessful, String message)

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

Parameters
isSuccessful Specify success or failure
message A message in case of isSuccessful is 'false' describing the reason of failure

public abstract void onDisconnect (int errorCode, String message)

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

Parameters
errorCode
message Message specifying the reason for disconnection

public abstract void onLockRoomStatusChange (String remotePeerId, boolean lockStatus)

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

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

public abstract void onReceiveLog (String message)

Occasionally the framework sends some messages for the client to intimate about certain happenings.

Parameters
message Message from framework.

public abstract void onWarning (int errorCode, String message)

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

Parameters
errorCode
message Warning message