AppleConnectionOptions class

Apple options for connect.

Each flag maps to a CBConnectPeripheralOptionNotifyOn*Key connect option. When true, the system displays an alert for the corresponding event if the app is suspended while it occurs, relaunching the app into the background to handle it. This keeps a backgrounded central responsive — e.g. while reconnecting to a previously paired peripheral — without the user having to foreground the app. Requires the bluetooth-central background mode on iOS.

All flags default to false (no alerts, background events are not delivered while suspended).

Constructors

AppleConnectionOptions({bool? notifyOnConnection, bool? notifyOnDisconnection, bool? notifyOnNotification})

Properties

hashCode → int
The hash code for this object.
no setteroverride
notifyOnConnection ↔ bool?
CBConnectPeripheralOptionNotifyOnConnectionKey: notify when a connection to the device succeeds while the app is suspended.
getter/setter pair
notifyOnDisconnection ↔ bool?
CBConnectPeripheralOptionNotifyOnDisconnectionKey: notify when the peripheral disconnects while the app is suspended.
getter/setter pair
notifyOnNotification ↔ bool?
CBConnectPeripheralOptionNotifyOnNotificationKey: notify when a characteristic notification arrives while the app is suspended. Fires per notification.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

encode() → Object
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

decode(Object result) → AppleConnectionOptions