Skip to main content

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​

MemberTypeDetails
setBackgroundScanEnabled(enabled: boolean): voidSwitches only the scan policy; the app can keep a foreground scan broad.
pauseScan(): voidPauses 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(): voidResumes 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.

Source​

View the declaration in the SDK source.