TransportFailureKind

Why a connection attempt failed, in terms a user can act on.

Entries

Link copied to clipboard

The radio was not found nearby, or the platform says it went out of range.

Link copied to clipboard

The link could not be opened: the radio is in use elsewhere, too far, or holds a stale pairing.

Link copied to clipboard

The radio requires an encrypted link and this device is not paired with it.

Link copied to clipboard

The radio refused an operation for a reason the platform does not name; a missing pairing is the usual one.

Link copied to clipboard

Pairing was attempted and failed, was rejected or timed out.

Link copied to clipboard

An open link dropped before setup finished.

Link copied to clipboard

Bluetooth, or the location services a scan needs, is off.

Link copied to clipboard

Nothing above matched; TransportFailure.detail carries the platform message.

Companion properties

Link copied to clipboard

Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.

Companion functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
fun Enum<*>.schemaDescriptionRes(): StringResource?

The schema's one-sentence explanation of this enum value, or null where it has none.

Link copied to clipboard
fun Enum<*>.schemaLabelRes(): StringResource?

The schema's label for this enum value, or null where the schema does not name it. A picker shows this in place of the constant's Kotlin name, and falls back to that name when it is null, so a value the schema has not reached still renders.