Skip to main content

useBluetoothState

No behavioral description is attached to this declaration. The public signature, parameter and return types, and source location below document its published contract.

Kind: React hook
Package: @ovok/native

Import​

import { useBluetoothState } from '@ovok/native/bt-management';

TypeScript signatures​

({ bleManager, requestPermission, }?: UseBluetoothStateOptions): { state: BluetoothState; requestPermission: () => Promise<boolean>; permissionStatus: BluetoothPermissionStatus; openSettings: () => void; }
ParameterTypeDetails
__0UseBluetoothStateOptions—

Returns: { state: BluetoothState; requestPermission: () => Promise<boolean>; permissionStatus: BluetoothPermissionStatus; openSettings: () => void; }.

Learn the workflow​

Continue with Bluetooth for the workflow context and examples.

Source​

View the declaration in the SDK source.