BluetoothRuntimeManager
No behavioral description is attached to this declaration. The public signature, parameter and return types, and source location below document its published contract.
Kind: Type alias
Package: @ovok/native
Import
import { BluetoothRuntimeManager } from '@ovok/native/bt-management';
TypeScript shape
type BluetoothRuntimeManager = Pick<BTManager<readonly never[]>, "setBackgroundScanEnabled" | "pauseScan" | "resumeScan" | "forget" | "disconnectDevice" | "setAutoConnect">;
This is a type-level export; it has no call parameters.
Public members
| Member | Type | Details |
|---|---|---|
setBackgroundScanEnabled | (enabled: boolean): void | Switches only the scan policy; the app can keep a foreground scan broad. |
pauseScan | (): void | Pauses discovery without tearing down devices or their callbacks. Use this when an app temporarily stops scanning, for example while it is in the background but an already-connected device may still deliver a measurement. |
resumeScan | (): void | Resumes discovery without clearing devices or callbacks. Restarting unconditionally also recovers when an app stopped the underlying BLE scan directly while BTManager still believed it was active. |
forget | (deviceId: string): Promise<void> | Disconnects one device and ignores later advertisements for this manager's lifetime. |
disconnectDevice | (deviceId: string): Promise<void> | Disconnects one device so it can be rediscovered by a later advertisement. |
setAutoConnect | (enabledOrOptions: boolean | { enabled: boolean; delayMs?: number; onDeviceSelectionRequired?: BTManagerOptions["onDeviceSelectionRequired"]; }, delayMs?: number, onDeviceSelectionRequired?: BTManagerOptions["onDeviceSelectionRequired"]): void | — |
Learn the workflow
Continue with Bluetooth for the workflow context and examples.