Skip to main content

request_ble_permissions

Function request_ble_permissions 

Source
pub fn request_ble_permissions()
Expand description

Trigger the Android BLE runtime permissions dialog.

Fire-and-forget — the dialog is presented asynchronously on the host activity’s UI thread. Use [permission_events] to observe when the user responds (or check are_ble_permissions_granted).

Must be called after the Tauri app has finished initializing the plugin (the Android side needs the host Activity, which is captured during plugin load). No-op on non-Android platforms.