ConnectivityClientServiceListener

interface ConnectivityClientServiceListener

Listener for service level events.

Functions

Link copied to clipboard
abstract fun onMessageReceived(serviceConnectionId: ServiceConnectionId, data: ByteArray)

Called when a message with the specified data is received from the connection with the specified serviceConnectionId.

Link copied to clipboard
abstract fun onServiceConnected(serviceConnectionId: ServiceConnectionId, serviceUuid: ServiceUuid)

Called when a connection is established to the service with the specified serviceUuid.

Link copied to clipboard
abstract fun onServiceDisconnected(serviceConnectionId: ServiceConnectionId)

Called when the connection with the specified serviceConnectionId is lost.