Skip to main content

AppleHealthAuthorizationStatus

No behavioral description is attached to this declaration. The public signature, parameter and return types, and source location below document its published contract.

Kind: Type alias
Package: @ovok/native

Import​

import { AppleHealthAuthorizationStatus } from '@ovok/native/data-sync';

TypeScript shape​

type AppleHealthAuthorizationStatus = {
state: "unknown" | "shouldRequest" | "requesting" | "ready" | "error";
notRequestedReadIdentifiers: HKSampleTypeIdentifier[];
notRequestedWriteIdentifiers: HKSampleTypeIdentifier[];
notRequestedMeasurementTypes: HealthSyncKey[];
error?: Error;
};

This is a type-level export; it has no call parameters.

Public members​

MemberTypeDetails
state"unknown" | "shouldRequest" | "requesting" | "ready" | "error"—
notRequestedReadIdentifiersHKSampleTypeIdentifier[]HealthKit types that still need to be answered in Settings.
notRequestedWriteIdentifiersHKSampleTypeIdentifier[]HealthKit write types that still need to be answered in Settings.
notRequestedMeasurementTypesHealthSyncKey[]Configured measurement types with at least one unanswered read identifier.
errorErrorOptional. —

Learn the workflow​

Continue with Health Data for the workflow context and examples.

Source​

View the declaration in the SDK source.