public interface

LifeCycleListener

sg.com.temasys.skylink.sdk.listener.LifeCycleListener

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(String message)
This is triggered when we disconnect from the room we were in.
abstract void onReceiveLog(String message)
Occasionally the framework sends some messages for the client to intimate about certain happenings.
abstract void onWarning(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 (String message)

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

Parameters
message Message specifying the reason for disconnection

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 (String message)

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

Parameters
message Warning message