bluetooth/mini_program_bluetooth
library
Classes
-
MiniProgramBluetoothEvent
-
A trusted host's bounded native event, scoped to one opaque session.
-
MiniProgramBluetoothManager
-
Owns device handles, notifications, and stale completion for one mounted
mini-program. Native adapters independently enforce process-wide ownership.
-
MiniProgramBluetoothPolicy
-
Host-accepted authority for foreground BLE. Empty allowedServices means
any service after explicit acceptance; writes require separate opt-in.
-
MiniProgramBluetoothPolicyProvider
-
-
MiniProgramBluetoothProvider
-
Optional native BLE central adapter. Operations use canonical bluetooth.*
action names and validated arguments. release must be idempotent and cancel
permission waits, scans, pending GATT operations, notifications and connections
for the exact session only. Implementations must isolate engines/tasks.