DesktopFirmwareUsbManager

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val supportsUf2Maintenance: Boolean = false

Desktop offers no maintenance affordance at all: with no way to vet a bootloader volume and no CDC unblock, every maintenance operation below is a no-op, so the section is hidden rather than shown and then dead-ended. ensureSerialPermission is the exception — desktop serial access has no permission model, so preflighting it succeeds trivially.

Functions

Link copied to clipboard
open override fun deviceDetachFlow(): Flow<Unit>
Link copied to clipboard
open suspend override fun ensureSerialPermission(waitMillis: Long): Boolean

Desktop serial access has no permission model; there is nothing to preflight.

Link copied to clipboard
open suspend override fun serialPortKeys(): Set<String>

Desktop has no UF2 maintenance flow — there is no Storage Access Framework to vet a volume with, so isRemovableDestination refuses before anything reaches here.

Link copied to clipboard
open suspend override fun unblockCdcPort(excluding: Set<String>, waitMillis: Long, holdMillis: Long): Boolean

Opens the port that appeared since excluding was captured and holds DTR asserted, so firmware waiting on a host will run.