sample_ConnectionListener( event, errorCode, errorMessage ) method

A sample anonymous.ConnectionStateListener callback function.

Syntax

<static> sample_ConnectionListener( 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 480.