Using @capgo/capacitor-health
Capacitor 플러그인을 사용하여 애플 헬스 키트와 헬스 커넥트의 데이터와 상호 작용합니다.
설치
bun add @capgo/capacitor-health
bunx cap sync
What This Plugin Exposes
isAvailable- Returns whether the current platform supports the native health SDK.requestAuthorization- 현재 플랫폼이 네이티브 헬스 __CAPGO_KEEP_0__를 지원하는지 여부를 반환합니다.checkAuthorization- 제공된 데이터 유형에 대한 읽기/쓰기 접근을 요청합니다.readSamples- 사용자에게 프롬프트하지 않고 제공된 데이터 유형에 대한 인증 상태를 확인합니다.
- 지정된 시간 범위 내에서 지정된 데이터 유형의 샘플을 읽습니다.
isAvailable
- 현재 플랫폼이 네이티브 헬스 SDK를 지원하는지 여부를 반환합니다.
import { Health } from '@capgo/capacitor-health';
await Health.isAvailable();
requestAuthorization
__CAPGO_KEEP_0__:
import { Health } from '@capgo/capacitor-health';
await Health.requestAuthorization({} as AuthorizationOptions);
checkAuthorization
__CAPGO_KEEP_0__:
import { Health } from '@capgo/capacitor-health';
await Health.checkAuthorization({} as AuthorizationOptions);
readSamples
__CAPGO_KEEP_0__:
import { Health } from '@capgo/capacitor-health';
await Health.readSamples({} as QueryOptions);
__CAPGO_KEEP_0__:
- GitHub.com/__CAPGO_KEEP_1__-health/ https://github.com/Cap-go/capacitor-health/
- __CAPGO_KEEP_0__에서 __CAPGO_KEEP_1__-health를 계속 사용하세요.
Keep going from Using @capgo/capacitor-health
__CAPGO_KEEP_0__를 사용 중이라면 Using @capgo/capacitor-health __CAPGO_KEEP_0__ read/write 접근 권한을 제공된 데이터 타입에 대해 읽고 쓰기합니다. @capgo/capacitor-health for the implementation detail in @capgo/capacitor-health, 시작하기 Capacitor의 구현 세부 정보에 대해 Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, and 플러그인 추가 또는 업데이트에 대한 구현 세부 정보. 푸터