Skip to main content

useMeasurements

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

TypeScript signatures​

(onResult?: (result: RuntimeResult) => void, { policy, maxResults }?: UseMeasurementsOptions): { measurements: readonly RuntimeResult[]; clear: () => void; }
ParameterTypeDetails
onResult(result: RuntimeResult) => void—
__1UseMeasurementsOptions—

Returns: { measurements: readonly RuntimeResult[]; clear: () => void; }.

Learn the workflow​

Continue with Bluetooth for the workflow context and examples.

Source​

View the declaration in the SDK source.