Skip to main content

useHealthImport

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 { useHealthImport } from '@ovok/native/bt-management';

This symbol is also available from: @ovok/native/data-sync.

TypeScript signatures​

<TType extends string>({ types, background, adapter, }: { types: readonly TType[]; background?: boolean; adapter: HealthImportAdapter<TType>; }): { enabled: boolean; setEnabled: (enabled: boolean) => Promise<void>; statusByType: Partial<Record<TType, Awaited<ReturnType<HealthImportAdapter<TType>["getStatus"]>>>>; notShared: readonly TType[]; error?: Error; }
ParameterTypeDetails
__0{ types: readonly TType[]; background?: boolean; adapter: HealthImportAdapter<TType>; }—

Returns: { enabled: boolean; setEnabled: (enabled: boolean) => Promise<void>; statusByType: Partial<Record<TType, Awaited<ReturnType<HealthImportAdapter<TType>["getStatus"]>>>>; notShared: readonly TType[]; error?: Error; }.

Learn the workflow​

Continue with Health Data for the workflow context and examples.

Source​

View the declaration in the SDK source.