A sample anonymous.ConnectionStateListener callback function.
<static> sample_ConnectionListener( event, errorCode, errorMessage )
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. |