GuidesComponentsBluetooth management

BluetoothRuntimeProvider

Low-level provider for composing Bluetooth runtime hooks outside BTProvider.

  • Stable unknown
  • Release candidate since 1.16.1-rc.3
  • Development since 1.16.1-dev.2111+9796905

BluetoothRuntimeProvider supplies a BluetoothRuntime object to Bluetooth runtime hooks. It is a low-level context primitive; application flows should normally use BTProvider, which also handles permissions, manager creation, scanning, event wiring, and teardown.

Import it from @ovok/native/bt-management.

import {
  BluetoothRuntimeProvider,
  createBluetoothRuntime,
} from "@ovok/native/bt-management";

const runtime = createBluetoothRuntime(bleManager);

<BluetoothRuntimeProvider runtime={runtime}>
  <AdvancedBluetoothSurface />
</BluetoothRuntimeProvider>;

Props

Every prop, with its type and description, is listed in the @ovok/native/bt-management API reference.

Last updated on

On this page