CommunicationsClientListener

Listener for CommunicationsClient that is notified on connection and disconnection of a remote service.

This listener is used to signal connection or disconnection to a particular service.

See also

Functions

Link copied to clipboard
abstract fun onServiceConnected(serviceProviderId: ServiceProviderId, client: CommunicationsServiceBase)

Called when a new connection is made to the service. The specified serviceProviderId will contain a unique identifier for the service connection and the specified client will contain the proxy object, that can be used to interact with the service.

Link copied to clipboard
abstract fun onServiceDisconnected(serviceProviderId: ServiceProviderId)

Called when the connection to the service is lost. The connection that was lost is identified by the specified serviceProviderId. Right after this call all suspended method calls into the proxy object will be canceled and any new calls will fail.