Disconnected

Device has disconnected.

If the reason is null, it means that no connection attempt was made. This is the initial state of the peripheral.

Note, that it doesn't mean that the peripheral is not connected, it may be connected using another Manager.

Parameters

reason

Reason of disconnection or null if the connection was never initiated. This is the initial state of the peripheral.

Constructors

Link copied to clipboard
constructor(reason: ConnectionState.Disconnected.Reason? = null)

Types

Link copied to clipboard
sealed class Reason

Reason of disconnection.

Properties

Link copied to clipboard

Whether the connection is open.

Link copied to clipboard

Whether the connection closed or getting closed.

Link copied to clipboard

A quick check whether the disconnection was initiated by the user.

Link copied to clipboard