ApplicationProtocolHandler

Interface for application layer protocol handlers.

Implementations of this interface provide a handler for the protocol used to encode interactions with service proxies. Incoming data should be pass to instances of this interface by calling its onMessageReceived function.

Properties

Link copied to clipboard

The communication service used by the application protocol handler. This is the actual service proxy object.

Functions

Link copied to clipboard
abstract fun onCreate()

Starts the lifecycle of the object.

Link copied to clipboard
abstract fun onDestroy()

Ends the lifecycle of the object.

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

Should be called for incoming data.