BTProviderChildWrapperProps
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 { BTProviderChildWrapperProps } from '@ovok/native/bt-management';
TypeScript shape
interface BTProviderChildWrapperProps<T extends readonly AcceptedDevice[]> {
bleManager: BleManager;
acceptedDevices: T;
permissionStatus?: BluetoothPermissionStatus;
oneReadingPerConnection?: boolean;
deliveredEcgFileNames?: readonly string[];
deliveredFileNames?: readonly string[];
clearDeviceHistory?: boolean;
resultPolicies?: Partial<Record<string, DeviceResultPolicy>>;
clockSync?: ClockSyncOptions;
autoConnect?: boolean;
autoConnectDelayMs?: number;
onDeviceSelectionRequired?: (selection: {
devices: readonly BTDeviceSelection[];
select: (device: BTDeviceSelection) => Promise<void>;
}) => void;
backgroundSync?: BackgroundSyncOptions<DeviceKeyOf<T>>;
onDeviceFound?: (device: BTManagedDevice<DeviceKeyOf<T>>, manager: BTManager<T>) => Promise<void>;
onError?: (data: ErrorCallback) => void;
onDeviceStatusChanged?: (data: DeviceStatusChangeCallback) => void;
onConnectionEvent?: (data: DeviceConnectionEvent) => void;
onResult?: (data: ResultCallback<DeviceKeyOf<T>>) => void;
}
This is a type-level export; it has no call parameters.
Public members
| Member | Type | Details |
|---|---|---|
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.