com.biocomfort.SDK.event
Interface SDKListener


public interface SDKListener

The listener interface for receiving general SDK events. The class that is interested in processing a general SDK event implements this interface, and the object created with that class is registered with the SDK, using the method addSDKListener. When the SDK is successfully started or exited the relevant method in the listener object is invoked. Also if the dongle is plugged or unplugged the relevant method of the listener object is fired.

See Also:
SDK.addSDKListener(SDKListener), SDK.removeSDKListener(SDKListener)

Method Summary
 void onExited()
          Invoked when the SDK was successfully exited.
 void onPlug()
          Invoked when the dongle is plugged.
 void onStarted()
          Invoked when the SDK was successfully started.
 void onUnplug()
          Invoked when the dongle is unplugged.
 

Method Detail

onStarted

void onStarted()
Invoked when the SDK was successfully started.

If an error occurs when starting the SDK the method onStartError() of the SDKErrorListener is invoked.

See Also:
SDKErrorListener.onStartError(ErrorEvent)

onExited

void onExited()
Invoked when the SDK was successfully exited.

If an error occurs when exiting the SDK the method onExitError() of the SDKErrorListener is invoked.

See Also:
SDKErrorListener.onExitError(ErrorEvent)

onPlug

void onPlug()
Invoked when the dongle is plugged.


onUnplug

void onUnplug()
Invoked when the dongle is unplugged.