DockManager

interface DockManager

Inheritors

Properties

Link copied to clipboard
abstract val dockConnectionState: StateFlow<DockState>

Current connected dock status DockState.Attached is only emitted if refreshConnectionStateForAttachedDock is (periodically) called

Functions

Link copied to clipboard
abstract suspend fun connectToDock(usbAccessory: UsbAccessory)

Connects to a USB Accessory (Dock).

Link copied to clipboard
abstract suspend fun disconnect()

Disconnects from the current connected device.

Link copied to clipboard

Returns information about updates available for the current connected dock.

Link copied to clipboard

Refreshes the connected and attached status of NYC1 Dock, only needed for DockState.Attached to be emitted best to be called in the onResume() of Device Management screens

Link copied to clipboard

Starts an update of the current connected dock's software