MiniProgramBluetoothManager class
Owns device handles, notifications, and stale completion for one mounted mini-program. Native adapters independently enforce process-wide ownership.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- provider → MiniProgramBluetoothProvider
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionGeneration → int
-
Changes when a new session starts. Trusted consumers use this to prevent
an older operation from updating state or releasing a replacement owner.
no setter
Methods
-
dispose(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
releaseFor(
String appId, {int? sessionGeneration}) → Future< void> -
run(
{required String miniProgramId, required String action, required Map< String, dynamic> arguments, required MiniProgramBluetoothPolicy policy, MiniProgramBluetoothValueHandler? onValue, MiniProgramBluetoothValueHandler? onConnection}) → Future<Map< String, dynamic> > -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited