BTProviderProps
No behavioral description is attached to this declaration. The public signature, parameter and return types, and source location below document its published contract.
Kind: Interface
Package: @ovok/native
Import
import { BTProviderProps } from '@ovok/native/bt-management';
TypeScript shape
interface BTProviderProps<T extends readonly AcceptedDevice[]> extends BTProviderChildWrapperProps<T> {
onAccessPermissionChanged?: (accessPermission: boolean) => void;
permissionFallback?: (permission: BTProviderPermissionFallbackProps) => React.ReactNode;
gateOnPermission?: boolean;
}
This is a type-level export; it has no call parameters.
Public members
| Member | Type | Details |
|---|---|---|
onAccessPermissionChanged | (accessPermission: boolean) => void | Optional. — |
permissionFallback | (permission: BTProviderPermissionFallbackProps) => React.ReactNode | Optional. Callback to be called when the access permission is not granted and the user is asked to open the settings |
gateOnPermission | boolean | Optional. Keep children mounted while permission is pending or denied when false (default). |
bleManager | BleManager | — |
acceptedDevices | T | — |
permissionStatus | BluetoothPermissionStatus | Optional. — |
oneReadingPerConnection | boolean | Optional. — |
deliveredEcgFileNames | readonly string[] | Optional. — |
deliveredFileNames | readonly string[] | Optional. — |
clearDeviceHistory | boolean | Optional. Clear supported device history after it has been downloaded. |
resultPolicies | Partial<Record<string, DeviceResultPolicy>> | Optional. — |
clockSync | ClockSyncOptions | Optional. — |
autoConnect | boolean | Optional. — |
autoConnectDelayMs | number | Optional. — |
onDeviceSelectionRequired | (selection: { devices: readonly BTDeviceSelection[]; select: (device: BTDeviceSelection) => Promise<void>; }) => void | Optional. — |
backgroundSync | BackgroundSyncOptions<DeviceKeyOf<T>> | Optional. — |
onDeviceFound | (device: BTManagedDevice<DeviceKeyOf<T>>, manager: BTManager<T>) => Promise<void> | Optional. — |
onError | (data: ErrorCallback) => void | Optional. — |
onDeviceStatusChanged | (data: DeviceStatusChangeCallback) => void | Optional. — |
onConnectionEvent | (data: DeviceConnectionEvent) => void | Optional. — |
onResult | (data: ResultCallback<DeviceKeyOf<T>>) => void | Optional. — |
Learn the workflow
Continue with Bluetooth for the workflow context and examples.