Skip to main content

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​

MemberTypeDetails
bleManagerBleManager—
acceptedDevicesT—
permissionStatusBluetoothPermissionStatusOptional. —
oneReadingPerConnectionbooleanOptional. —
deliveredEcgFileNamesreadonly string[]Optional. —
deliveredFileNamesreadonly string[]Optional. —
clearDeviceHistorybooleanOptional. Clear supported device history after it has been downloaded.
resultPoliciesPartial<Record<string, DeviceResultPolicy>>Optional. —
clockSyncClockSyncOptionsOptional. —
autoConnectbooleanOptional. —
autoConnectDelayMsnumberOptional. —
onDeviceSelectionRequired(selection: { devices: readonly BTDeviceSelection[]; select: (device: BTDeviceSelection) => Promise<void>; }) => voidOptional. —
backgroundSyncBackgroundSyncOptions<DeviceKeyOf<T>>Optional. —
onDeviceFound(device: BTManagedDevice<DeviceKeyOf<T>>, manager: BTManager<T>) => Promise<void>Optional. —
onError(data: ErrorCallback) => voidOptional. —
onDeviceStatusChanged(data: DeviceStatusChangeCallback) => voidOptional. —
onConnectionEvent(data: DeviceConnectionEvent) => voidOptional. —
onResult(data: ResultCallback<DeviceKeyOf<T>>) => voidOptional. —

Learn the workflow​

Continue with Bluetooth for the workflow context and examples.

Source​

View the declaration in the SDK source.