ConnectionManagerInterface
This class reflects a connection to DeviceGateway and how it may be observed.
Functions
Link copied to clipboard
abstract fun addConnectionStatusListener(listener: ConnectionStatusListener)
Content copied to clipboard
Add listener to be notified when connection status changed for NUGU
Link copied to clipboard
Adds an observer to be notified when a message arrives from DeviceGateway.
Link copied to clipboard
Link copied to clipboard
Returns whether this object is currently connected to DeviceGateway.
Link copied to clipboard
Return whether the connection-oriented has been started.
Link copied to clipboard
abstract fun removeConnectionStatusListener(listener: ConnectionStatusListener)
Content copied to clipboard
Remove listener
Link copied to clipboard
Removes an observer to be notified when a message arrives from DeviceGateway.
Link copied to clipboard
Resets the connection immediately.
Link copied to clipboard
abstract fun startReceiveServerInitiatedDirective(onCompletion: () -> Unit? = null): Boolean
Content copied to clipboard
Start the connection-oriented feature.
Link copied to clipboard
Stop the connection-oriented feature.