-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/#122-watch-workout
- Loading branch information
Showing
50 changed files
with
506 additions
and
720 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 0 additions & 32 deletions
32
Projects/Core/HealthKit/Interface/Sources/HealthKitError.swift
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
Projects/Core/HealthKit/Interface/Sources/HealthKitManagerInterface.swift
This file was deleted.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
Projects/Core/HealthKit/Interface/Sources/HealthKitManagerType.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// | ||
// HealthKitManagerType.swift | ||
// CoreHealthKitInterface | ||
// | ||
// Created by 송영모 on 2023/07/03. | ||
// | ||
|
||
import Foundation | ||
|
||
import HealthKit | ||
|
||
public protocol HealthKitManagerType { | ||
/// HealthKit에 대한 인증을 진행하고, 백그라운드 딜리버리를 등록합니다. | ||
/// | ||
/// - Parameters: | ||
/// - toShare: 쓰기 목록 | ||
/// - toRead: 읽기 목록 | ||
func requestAuthorizationAndRegisterBackgroundDelivery( | ||
toShare: Set<HKSampleType>?, | ||
toRead: Set<HKSampleType>? | ||
) | ||
|
||
/// HKSampleType에 대한 변경 점을 Observe 하여, 데이터를 계속해서 받아옵니다. | ||
/// | ||
/// - Parameters: | ||
/// - toObserve: 구독 목록 | ||
/// - updateAnchorQueryHandler: 업데이트 핸들러 | ||
func requestObserverQuery( | ||
toObserve: Set<HKSampleType>?, | ||
updateAnchorQueryHandler: @escaping (HKAnchoredObjectQuery, [HKSample]?, [HKDeletedObject]?, HKQueryAnchor?, Error?) -> Void | ||
) | ||
} |
Oops, something went wrong.