ConnectionManagerInterface

interface ConnectionManagerInterface : NetworkManagerInterface

This class reflects a connection to DeviceGateway and how it may be observed.

Functions

Link copied to clipboard
abstract fun addConnectionStatusListener(listener: ConnectionStatusListener)

Add listener to be notified when connection status changed for NUGU

Link copied to clipboard
abstract fun addMessageObserver(observer: MessageObserver)

Adds an observer to be notified when a message arrives from DeviceGateway.

Link copied to clipboard
abstract fun disable()

Disable network manager

Link copied to clipboard
abstract fun enable(quiet: Boolean = false)

Enable network manager.

Link copied to clipboard
abstract fun handoffConnection(    protocol: String,     hostname: String,     address: String,     port: Int,     retryCountLimit: Int,     connectionTimeout: Int,     charge: String)

the device to disconnect and connect Registry Connection Handoff from SystemCapabilityAgent#handleHandoffConnection

Link copied to clipboard
abstract fun isConnected(): Boolean

Returns whether this object is currently connected to DeviceGateway.

Link copied to clipboard
abstract fun isStartReceiveServerInitiatedDirective(): Boolean

Return whether the connection-oriented has been started.

Link copied to clipboard
abstract fun removeConnectionStatusListener(listener: ConnectionStatusListener)

Remove listener

Link copied to clipboard
abstract fun removeMessageObserver(observer: MessageObserver)

Removes an observer to be notified when a message arrives from DeviceGateway.

Link copied to clipboard
abstract fun resetConnection(description: String?)

Resets the connection immediately.

Link copied to clipboard
abstract fun shutdown()

Shutdown network manager Shut down all connections and clean up.

Link copied to clipboard
abstract fun startReceiveServerInitiatedDirective(onCompletion: () -> Unit? = null): Boolean

Start the connection-oriented feature.

Link copied to clipboard
abstract fun stopReceiveServerInitiatedDirective()

Stop the connection-oriented feature.