MiniProgramBluetoothPolicy class

Host-accepted authority for foreground BLE. Empty allowedServices means any service after explicit acceptance; writes require separate opt-in.

Annotations

Constructors

MiniProgramBluetoothPolicy({bool enabled = false, bool allowWrite = false, bool allowNotifications = true, List<String> allowedServices = const [], int maxScanMs = 10000, int maxDevices = 20, int maxValueBytes = 512})
const

Properties

allowedServices → List<String>
final
allowNotifications → bool
final
allowWrite → bool
final
enabled → bool
final
hashCode → int
The hash code for this object.
no setteroverride
maxDevices → int
final
maxScanMs → int
final
maxValueBytes → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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