CentralState

@Serializable(with = CentralStateSerializer::class)
sealed interface CentralState

Indicates the various states of Central.

Official doc

Inheritors

Types

Link copied to clipboard
@Serializable(with = CentralStateSerializer::class)
data object absent : CentralState
Link copied to clipboard
@Serializable(with = CentralStateSerializer::class)
data class NotDefinedInProtocol(val value: String) : CentralState

This extra enum entry represents values returned by Chrome that were not defined in the protocol (for instance new values that were added later).

Link copied to clipboard
@Serializable(with = CentralStateSerializer::class)
data object poweredOff : CentralState
Link copied to clipboard
@Serializable(with = CentralStateSerializer::class)
data object poweredOn : CentralState