PeripheralBuilder

expect class PeripheralBuilder
actual class PeripheralBuilder
actual class PeripheralBuilder

Properties

Link copied to clipboard

Amount of time to allow system to gracefully disconnect before forcefully closing the peripheral.

Functions

Link copied to clipboard
expect fun logging(init: LoggingBuilder)
actual fun logging(init: LoggingBuilder)
actual fun logging(init: LoggingBuilder)
Link copied to clipboard

Registers an ObservationExceptionHandler for the Peripheral. When registered, observation failures are passed to the ObservationExceptionHandler instead of through observation flows. Any exceptions in the ObservationExceptionHandler will propagate through (and terminate) the associated observation flow.

Link copied to clipboard

Registers a ServicesDiscoveredAction for the Peripheral that is invoked after initial service discovery (upon establishing a connection).