expo-healthkit-module
Version:
Expo module providing Apple HealthKit / Android Health Connect integration for RN / expo apps.
22 lines • 1.65 kB
TypeScript
import { NativeModule } from "expo";
import { AuthorizeResult, BackgroundSyncOptions, BackgroundSyncResult, BackgroundSyncStatus, ExpoHealthkitModuleEvents, GetHealthDataOptions, GetHealthDataResult, HealthDataQuery, HealthDataType, TypedHealthDataResult } from "./ExpoHealthkitModule.types";
declare class ExpoHealthkitModule extends NativeModule<ExpoHealthkitModuleEvents> {
PI: number;
hello(): string;
setValueAsync(value: string): Promise<void>;
authorizeHealthKit(): Promise<AuthorizeResult>;
getHealthData(options: GetHealthDataOptions): Promise<GetHealthDataResult>;
testGetHealthData(options: GetHealthDataOptions): Promise<GetHealthDataResult>;
registerBackgroundTaskHandler(): Promise<BackgroundSyncResult>;
enableBackgroundSync(options: BackgroundSyncOptions): Promise<BackgroundSyncResult>;
getBackgroundSyncStatus(): Promise<BackgroundSyncStatus>;
disableBackgroundSync(): Promise<BackgroundSyncResult>;
notifyBackgroundSyncComplete(success: boolean): Promise<void>;
getTypedHealthData<T extends HealthDataType>(options: HealthDataQuery & {
identifier: T;
}): Promise<TypedHealthDataResult<T>>;
}
declare const _default: ExpoHealthkitModule;
export default _default;
export { AuthorizeResult, BackgroundSyncCompletePayload, BackgroundSyncOptions, BackgroundSyncResult, BackgroundSyncStatus, GetHealthDataOptions, GetHealthDataResult, HealthDataChangePayload, HealthDataError, HealthDataQuery, HealthDataSample, HealthDataType, HealthKitEventListener, HealthUnit, TypedHealthDataResult, } from "./ExpoHealthkitModule.types";
//# sourceMappingURL=ExpoHealthkitModule.d.ts.map