Callback function that will be invoked when the connection state changes.
Connection listeners can be added with hwc.addConnectionListener.
<static> ConnectionStateListener( 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. |