ConnectionStateListener( event, errorCode, errorMessage ) method

Callback function that will be invoked when the connection state changes.

Connection listeners can be added with hwc.addConnectionListener.

Syntax

<static> ConnectionStateListener( event, errorCode, errorMessage )

Parameters

Name Type Description
event number A number indicating the event that occurred (will be hwc.CONNECTED or hwc.DISCONNECTED).
errorCode number An error code (0 indicating success).
errorMessage string Text of the error message.Will be empty of there is no error.

Source

hwc-api.js, line 3669.