HealthKit Changes for Swift
HealthKit
Removed HKQueryOptions.None
Removed HKStatisticsOptions.None
Added HKCDADocument
Added HKCDADocument.authorName
Added HKCDADocument.title
Added HKDocumentSample
Added HKError [struct]
Added HKError.init(_nsError: NSError)
Added HKError.noError
Added HKWeatherCondition.clear
Added HKWeatherCondition.dust
Added HKWeatherCondition.fair
Added HKWeatherCondition.foggy
Added HKWeatherCondition.hail
Added HKWeatherCondition.haze
Added HKWeatherCondition.none
Added HKWeatherCondition.sleet
Added HKWeatherCondition.smoky
Added HKWeatherCondition.snow
Added HKWeatherCondition.windy
Added HKWheelchairUse [enum]
Added HKWheelchairUse.no
Added HKWheelchairUse.notSet
Added HKWheelchairUse.yes
Added HKWheelchairUseObject
Added HKWorkoutConfiguration
Added HKWorkoutEvent.metadata
Added HKWorkoutEventType.lap
Added HKMetadataKeyLapLength
Modified HKActivitySummary
| Declaration | Protocols | |
|---|---|---|
| From | class HKActivitySummary : NSObject, NSSecureCoding, NSCopying {
func dateComponentsForCalendar(_ calendar: NSCalendar) -> NSDateComponents
var activeEnergyBurned: HKQuantity
var appleExerciseTime: HKQuantity
var appleStandHours: HKQuantity
var activeEnergyBurnedGoal: HKQuantity
var appleExerciseTimeGoal: HKQuantity
var appleStandHoursGoal: HKQuantity
} | NSCopying, NSSecureCoding |
| To | class HKActivitySummary : NSObject, NSSecureCoding, NSCopying {
func dateComponents(for calendar: Calendar) -> DateComponents
var activeEnergyBurned: HKQuantity
var appleExerciseTime: HKQuantity
var appleStandHours: HKQuantity
var activeEnergyBurnedGoal: HKQuantity
var appleExerciseTimeGoal: HKQuantity
var appleStandHoursGoal: HKQuantity
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKActivitySummary : CVarArg {
}
extension HKActivitySummary : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding |
| Declaration | |
|---|---|
| From | func dateComponentsForCalendar(_ calendar: NSCalendar) -> NSDateComponents |
| To | func dateComponents(for calendar: Calendar) -> DateComponents |
Modified HKActivitySummaryQuery
| Declaration | Protocols | |
|---|---|---|
| From | class HKActivitySummaryQuery : HKQuery {
var updateHandler: ((HKActivitySummaryQuery, [HKActivitySummary]?, NSError?) -> Void)?
init(predicate predicate: NSPredicate?, resultsHandler handler: (HKActivitySummaryQuery, [HKActivitySummary]?, NSError?) -> Void)
} | -- |
| To | class HKActivitySummaryQuery : HKQuery {
var updateHandler: ((HKActivitySummaryQuery, [HKActivitySummary]?, Error?) -> Swift.Void)?
init(predicate predicate: NSPredicate?, resultsHandler handler: @escaping (HKActivitySummaryQuery, [HKActivitySummary]?, Error?) -> Swift.Void)
class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
class func predicateForObjects(from source: HKSource) -> NSPredicate
class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
class func predicateForObject(with UUID: UUID) -> NSPredicate
class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
class func predicateForObjectsWithNoCorrelation() -> NSPredicate
class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKActivitySummaryQuery : CVarArg {
}
extension HKActivitySummaryQuery : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable |
| Declaration | |
|---|---|
| From | init(predicate predicate: NSPredicate?, resultsHandler handler: (HKActivitySummaryQuery, [HKActivitySummary]?, NSError?) -> Void) |
| To | init(predicate predicate: NSPredicate?, resultsHandler handler: @escaping (HKActivitySummaryQuery, [HKActivitySummary]?, Error?) -> Swift.Void) |
Modified HKActivitySummaryQuery.updateHandler
| Declaration | |
|---|---|
| From | var updateHandler: ((HKActivitySummaryQuery, [HKActivitySummary]?, NSError?) -> Void)? |
| To | var updateHandler: ((HKActivitySummaryQuery, [HKActivitySummary]?, Error?) -> Swift.Void)? |
Modified HKAnchoredObjectQuery
| Declaration | Protocols | |
|---|---|---|
| From | class HKAnchoredObjectQuery : HKQuery {
var updateHandler: ((HKAnchoredObjectQuery, [HKSample]?, [HKDeletedObject]?, HKQueryAnchor?, NSError?) -> Void)?
init(type type: HKSampleType, predicate predicate: NSPredicate?, anchor anchor: Int, limit limit: Int, completionHandler handler: (HKAnchoredObjectQuery, [HKSample]?, Int, NSError?) -> Void)
init(type type: HKSampleType, predicate predicate: NSPredicate?, anchor anchor: HKQueryAnchor?, limit limit: Int, resultsHandler handler: (HKAnchoredObjectQuery, [HKSample]?, [HKDeletedObject]?, HKQueryAnchor?, NSError?) -> Void)
} | -- |
| To | class HKAnchoredObjectQuery : HKQuery {
var updateHandler: ((HKAnchoredObjectQuery, [HKSample]?, [HKDeletedObject]?, HKQueryAnchor?, Error?) -> Swift.Void)?
init(type type: HKSampleType, predicate predicate: NSPredicate?, anchor anchor: HKQueryAnchor?, limit limit: Int, resultsHandler handler: @escaping (HKAnchoredObjectQuery, [HKSample]?, [HKDeletedObject]?, HKQueryAnchor?, Error?) -> Swift.Void)
init(type type: HKSampleType, predicate predicate: NSPredicate?, anchor anchor: Int, limit limit: Int, completionHandler handler: @escaping (HKAnchoredObjectQuery, [HKSample]?, Int, Error?) -> Swift.Void)
class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
class func predicateForObjects(from source: HKSource) -> NSPredicate
class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
class func predicateForObject(with UUID: UUID) -> NSPredicate
class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
class func predicateForObjectsWithNoCorrelation() -> NSPredicate
class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKAnchoredObjectQuery : CVarArg {
}
extension HKAnchoredObjectQuery : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable |
| Declaration | |
|---|---|
| From | init(type type: HKSampleType, predicate predicate: NSPredicate?, anchor anchor: Int, limit limit: Int, completionHandler handler: (HKAnchoredObjectQuery, [HKSample]?, Int, NSError?) -> Void) |
| To | init(type type: HKSampleType, predicate predicate: NSPredicate?, anchor anchor: Int, limit limit: Int, completionHandler handler: @escaping (HKAnchoredObjectQuery, [HKSample]?, Int, Error?) -> Swift.Void) |
| Declaration | |
|---|---|
| From | init(type type: HKSampleType, predicate predicate: NSPredicate?, anchor anchor: HKQueryAnchor?, limit limit: Int, resultsHandler handler: (HKAnchoredObjectQuery, [HKSample]?, [HKDeletedObject]?, HKQueryAnchor?, NSError?) -> Void) |
| To | init(type type: HKSampleType, predicate predicate: NSPredicate?, anchor anchor: HKQueryAnchor?, limit limit: Int, resultsHandler handler: @escaping (HKAnchoredObjectQuery, [HKSample]?, [HKDeletedObject]?, HKQueryAnchor?, Error?) -> Swift.Void) |
Modified HKAnchoredObjectQuery.updateHandler
| Declaration | |
|---|---|
| From | var updateHandler: ((HKAnchoredObjectQuery, [HKSample]?, [HKDeletedObject]?, HKQueryAnchor?, NSError?) -> Void)? |
| To | var updateHandler: ((HKAnchoredObjectQuery, [HKSample]?, [HKDeletedObject]?, HKQueryAnchor?, Error?) -> Swift.Void)? |
Modified HKAuthorizationStatus [enum]
| Declaration | |
|---|---|
| From | enum HKAuthorizationStatus : Int {
case NotDetermined
case SharingDenied
case SharingAuthorized
} |
| To | enum HKAuthorizationStatus : Int {
case notDetermined
case sharingDenied
case sharingAuthorized
} |
Modified HKAuthorizationStatus.notDetermined
| Declaration | |
|---|---|
| From | case NotDetermined |
| To | case notDetermined |
| Declaration | |
|---|---|
| From | case SharingAuthorized |
| To | case sharingAuthorized |
Modified HKAuthorizationStatus.sharingDenied
| Declaration | |
|---|---|
| From | case SharingDenied |
| To | case sharingDenied |
Modified HKBiologicalSex [enum]
| Declaration | |
|---|---|
| From | enum HKBiologicalSex : Int {
case NotSet
case Female
case Male
case Other
} |
| To | enum HKBiologicalSex : Int {
case notSet
case female
case male
case other
} |
Modified HKBiologicalSex.female
| Declaration | |
|---|---|
| From | case Female |
| To | case female |
Modified HKBiologicalSex.male
| Declaration | |
|---|---|
| From | case Male |
| To | case male |
Modified HKBiologicalSex.notSet
| Declaration | |
|---|---|
| From | case NotSet |
| To | case notSet |
Modified HKBiologicalSex.other
| Declaration | |
|---|---|
| From | case Other |
| To | case other |
Modified HKBiologicalSexObject
| Declaration | Protocols | |
|---|---|---|
| From | class HKBiologicalSexObject : NSObject, NSCopying, NSSecureCoding {
var biologicalSex: HKBiologicalSex { get }
} | NSCopying, NSSecureCoding |
| To | class HKBiologicalSexObject : NSObject, NSCopying, NSSecureCoding {
var biologicalSex: HKBiologicalSex { get }
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKBiologicalSexObject : CVarArg {
}
extension HKBiologicalSexObject : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding |
Modified HKBloodType [enum]
| Declaration | |
|---|---|
| From | enum HKBloodType : Int {
case NotSet
case APositive
case ANegative
case BPositive
case BNegative
case ABPositive
case ABNegative
case OPositive
case ONegative
} |
| To | enum HKBloodType : Int {
case notSet
case aPositive
case aNegative
case bPositive
case bNegative
case abPositive
case abNegative
case oPositive
case oNegative
} |
Modified HKBloodType.abNegative
| Declaration | |
|---|---|
| From | case ABNegative |
| To | case abNegative |
Modified HKBloodType.abPositive
| Declaration | |
|---|---|
| From | case ABPositive |
| To | case abPositive |
Modified HKBloodType.aNegative
| Declaration | |
|---|---|
| From | case ANegative |
| To | case aNegative |
Modified HKBloodType.aPositive
| Declaration | |
|---|---|
| From | case APositive |
| To | case aPositive |
Modified HKBloodType.bNegative
| Declaration | |
|---|---|
| From | case BNegative |
| To | case bNegative |
Modified HKBloodType.bPositive
| Declaration | |
|---|---|
| From | case BPositive |
| To | case bPositive |
Modified HKBloodType.notSet
| Declaration | |
|---|---|
| From | case NotSet |
| To | case notSet |
Modified HKBloodType.oNegative
| Declaration | |
|---|---|
| From | case ONegative |
| To | case oNegative |
Modified HKBloodType.oPositive
| Declaration | |
|---|---|
| From | case OPositive |
| To | case oPositive |
Modified HKBloodTypeObject
| Declaration | Protocols | |
|---|---|---|
| From | class HKBloodTypeObject : NSObject, NSCopying, NSSecureCoding {
var bloodType: HKBloodType { get }
} | NSCopying, NSSecureCoding |
| To | class HKBloodTypeObject : NSObject, NSCopying, NSSecureCoding {
var bloodType: HKBloodType { get }
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKBloodTypeObject : CVarArg {
}
extension HKBloodTypeObject : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding |
| Declaration | |
|---|---|
| From | enum HKBodyTemperatureSensorLocation : Int {
case Other
case Armpit
case Body
case Ear
case Finger
case GastroIntestinal
case Mouth
case Rectum
case Toe
case EarDrum
case TemporalArtery
case Forehead
} |
| To | enum HKBodyTemperatureSensorLocation : Int {
case other
case armpit
case body
case ear
case finger
case gastroIntestinal
case mouth
case rectum
case toe
case earDrum
case temporalArtery
case forehead
} |
| Declaration | |
|---|---|
| From | case Armpit |
| To | case armpit |
Modified HKBodyTemperatureSensorLocation.body
| Declaration | |
|---|---|
| From | case Body |
| To | case body |
Modified HKBodyTemperatureSensorLocation.ear
| Declaration | |
|---|---|
| From | case Ear |
| To | case ear |
| Declaration | |
|---|---|
| From | case EarDrum |
| To | case earDrum |
| Declaration | |
|---|---|
| From | case Finger |
| To | case finger |
| Declaration | |
|---|---|
| From | case Forehead |
| To | case forehead |
| Declaration | |
|---|---|
| From | case GastroIntestinal |
| To | case gastroIntestinal |
| Declaration | |
|---|---|
| From | case Mouth |
| To | case mouth |
| Declaration | |
|---|---|
| From | case Other |
| To | case other |
| Declaration | |
|---|---|
| From | case Rectum |
| To | case rectum |
| Declaration | |
|---|---|
| From | case TemporalArtery |
| To | case temporalArtery |
Modified HKBodyTemperatureSensorLocation.toe
| Declaration | |
|---|---|
| From | case Toe |
| To | case toe |
Modified HKCategorySample
| Declaration | |
|---|---|
| From | class HKCategorySample : HKSample {
var categoryType: HKCategoryType { get }
var value: Int { get }
init()
convenience init(type type: HKCategoryType, value value: Int, startDate startDate: NSDate, endDate endDate: NSDate, metadata metadata: [String : AnyObject]?)
class func categorySampleWithType(_ type: HKCategoryType, value value: Int, startDate startDate: NSDate, endDate endDate: NSDate, metadata metadata: [String : AnyObject]?) -> Self
convenience init(type type: HKCategoryType, value value: Int, startDate startDate: NSDate, endDate endDate: NSDate)
class func categorySampleWithType(_ type: HKCategoryType, value value: Int, startDate startDate: NSDate, endDate endDate: NSDate) -> Self
convenience init(type type: HKCategoryType, value value: Int, startDate startDate: NSDate, endDate endDate: NSDate, device device: HKDevice?, metadata metadata: [String : AnyObject]?)
class func categorySampleWithType(_ type: HKCategoryType, value value: Int, startDate startDate: NSDate, endDate endDate: NSDate, device device: HKDevice?, metadata metadata: [String : AnyObject]?) -> Self
} |
| To | class HKCategorySample : HKSample {
var categoryType: HKCategoryType { get }
var value: Int { get }
init()
convenience init(type type: HKCategoryType, value value: Int, start startDate: Date, end endDate: Date, metadata metadata: [String : Any]?)
class func withType(_ type: HKCategoryType, value value: Int, start startDate: Date, end endDate: Date, metadata metadata: [String : Any]?) -> Self
convenience init(type type: HKCategoryType, value value: Int, start startDate: Date, end endDate: Date)
class func withType(_ type: HKCategoryType, value value: Int, start startDate: Date, end endDate: Date) -> Self
convenience init(type type: HKCategoryType, value value: Int, start startDate: Date, end endDate: Date, device device: HKDevice?, metadata metadata: [String : Any]?)
class func withType(_ type: HKCategoryType, value value: Int, start startDate: Date, end endDate: Date, device device: HKDevice?, metadata metadata: [String : Any]?) -> Self
} |
| Declaration | |
|---|---|
| From | convenience init(type type: HKCategoryType, value value: Int, startDate startDate: NSDate, endDate endDate: NSDate) |
| To | convenience init(type type: HKCategoryType, value value: Int, start startDate: Date, end endDate: Date) |
| Declaration | |
|---|---|
| From | convenience init(type type: HKCategoryType, value value: Int, startDate startDate: NSDate, endDate endDate: NSDate, device device: HKDevice?, metadata metadata: [String : AnyObject]?) |
| To | convenience init(type type: HKCategoryType, value value: Int, start startDate: Date, end endDate: Date, device device: HKDevice?, metadata metadata: [String : Any]?) |
| Declaration | |
|---|---|
| From | convenience init(type type: HKCategoryType, value value: Int, startDate startDate: NSDate, endDate endDate: NSDate, metadata metadata: [String : AnyObject]?) |
| To | convenience init(type type: HKCategoryType, value value: Int, start startDate: Date, end endDate: Date, metadata metadata: [String : Any]?) |
| Name | Declaration | |
|---|---|---|
| From | HKCategoryTypeIdentifierAppleStandHour | let HKCategoryTypeIdentifierAppleStandHour: String |
| To | appleStandHour | static let appleStandHour: HKCategoryTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKCategoryTypeIdentifierCervicalMucusQuality | let HKCategoryTypeIdentifierCervicalMucusQuality: String |
| To | cervicalMucusQuality | static let cervicalMucusQuality: HKCategoryTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKCategoryTypeIdentifierIntermenstrualBleeding | let HKCategoryTypeIdentifierIntermenstrualBleeding: String |
| To | intermenstrualBleeding | static let intermenstrualBleeding: HKCategoryTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKCategoryTypeIdentifierMenstrualFlow | let HKCategoryTypeIdentifierMenstrualFlow: String |
| To | menstrualFlow | static let menstrualFlow: HKCategoryTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKCategoryTypeIdentifierOvulationTestResult | let HKCategoryTypeIdentifierOvulationTestResult: String |
| To | ovulationTestResult | static let ovulationTestResult: HKCategoryTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKCategoryTypeIdentifierSexualActivity | let HKCategoryTypeIdentifierSexualActivity: String |
| To | sexualActivity | static let sexualActivity: HKCategoryTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKCategoryTypeIdentifierSleepAnalysis | let HKCategoryTypeIdentifierSleepAnalysis: String |
| To | sleepAnalysis | static let sleepAnalysis: HKCategoryTypeIdentifier |
Modified HKCategoryValue [enum]
| Declaration | |
|---|---|
| From | enum HKCategoryValue : Int {
case NotApplicable
} |
| To | enum HKCategoryValue : Int {
case notApplicable
} |
Modified HKCategoryValue.notApplicable
| Declaration | |
|---|---|
| From | case NotApplicable |
| To | case notApplicable |
Modified HKCategoryValueAppleStandHour [enum]
| Declaration | |
|---|---|
| From | enum HKCategoryValueAppleStandHour : Int {
case Stood
case Idle
} |
| To | enum HKCategoryValueAppleStandHour : Int {
case stood
case idle
} |
Modified HKCategoryValueAppleStandHour.idle
| Declaration | |
|---|---|
| From | case Idle |
| To | case idle |
Modified HKCategoryValueAppleStandHour.stood
| Declaration | |
|---|---|
| From | case Stood |
| To | case stood |
| Declaration | |
|---|---|
| From | enum HKCategoryValueCervicalMucusQuality : Int {
case Dry
case Sticky
case Creamy
case Watery
case EggWhite
} |
| To | enum HKCategoryValueCervicalMucusQuality : Int {
case dry
case sticky
case creamy
case watery
case eggWhite
} |
| Declaration | |
|---|---|
| From | case Creamy |
| To | case creamy |
| Declaration | |
|---|---|
| From | case Dry |
| To | case dry |
| Declaration | |
|---|---|
| From | case EggWhite |
| To | case eggWhite |
| Declaration | |
|---|---|
| From | case Sticky |
| To | case sticky |
| Declaration | |
|---|---|
| From | case Watery |
| To | case watery |
Modified HKCategoryValueMenstrualFlow [enum]
| Declaration | |
|---|---|
| From | enum HKCategoryValueMenstrualFlow : Int {
case Unspecified
case Light
case Medium
case Heavy
} |
| To | enum HKCategoryValueMenstrualFlow : Int {
case unspecified
case light
case medium
case heavy
} |
Modified HKCategoryValueMenstrualFlow.heavy
| Declaration | |
|---|---|
| From | case Heavy |
| To | case heavy |
Modified HKCategoryValueMenstrualFlow.light
| Declaration | |
|---|---|
| From | case Light |
| To | case light |
Modified HKCategoryValueMenstrualFlow.medium
| Declaration | |
|---|---|
| From | case Medium |
| To | case medium |
| Declaration | |
|---|---|
| From | case Unspecified |
| To | case unspecified |
| Declaration | |
|---|---|
| From | enum HKCategoryValueOvulationTestResult : Int {
case Negative
case Positive
case Indeterminate
} |
| To | enum HKCategoryValueOvulationTestResult : Int {
case negative
case positive
case indeterminate
} |
| Declaration | |
|---|---|
| From | case Indeterminate |
| To | case indeterminate |
| Declaration | |
|---|---|
| From | case Negative |
| To | case negative |
| Declaration | |
|---|---|
| From | case Positive |
| To | case positive |
Modified HKCategoryValueSleepAnalysis [enum]
| Declaration | |
|---|---|
| From | enum HKCategoryValueSleepAnalysis : Int {
case InBed
case Asleep
} |
| To | enum HKCategoryValueSleepAnalysis : Int {
case inBed
case asleep
case awake
} |
Modified HKCategoryValueSleepAnalysis.asleep
| Declaration | |
|---|---|
| From | case Asleep |
| To | case asleep |
Modified HKCategoryValueSleepAnalysis.inBed
| Declaration | |
|---|---|
| From | case InBed |
| To | case inBed |
| Name | Declaration | |
|---|---|---|
| From | HKCharacteristicTypeIdentifierBiologicalSex | let HKCharacteristicTypeIdentifierBiologicalSex: String |
| To | biologicalSex | static let biologicalSex: HKCharacteristicTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKCharacteristicTypeIdentifierBloodType | let HKCharacteristicTypeIdentifierBloodType: String |
| To | bloodType | static let bloodType: HKCharacteristicTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKCharacteristicTypeIdentifierDateOfBirth | let HKCharacteristicTypeIdentifierDateOfBirth: String |
| To | dateOfBirth | static let dateOfBirth: HKCharacteristicTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKCharacteristicTypeIdentifierFitzpatrickSkinType | let HKCharacteristicTypeIdentifierFitzpatrickSkinType: String |
| To | fitzpatrickSkinType | static let fitzpatrickSkinType: HKCharacteristicTypeIdentifier |
Modified HKCorrelation
| Declaration | |
|---|---|
| From | class HKCorrelation : HKSample {
var correlationType: HKCorrelationType { get }
var objects: Set<HKSample> { get }
convenience init(type correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>)
class func correlationWithType(_ correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>) -> Self
convenience init(type correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>, metadata metadata: [String : AnyObject]?)
class func correlationWithType(_ correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>, metadata metadata: [String : AnyObject]?) -> Self
convenience init(type correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>, device device: HKDevice?, metadata metadata: [String : AnyObject]?)
class func correlationWithType(_ correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>, device device: HKDevice?, metadata metadata: [String : AnyObject]?) -> Self
func objectsForType(_ objectType: HKObjectType) -> Set<HKSample>
} |
| To | class HKCorrelation : HKSample {
var correlationType: HKCorrelationType { get }
var objects: Set<HKSample> { get }
convenience init(type correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects objects: Set<HKSample>)
class func withType(_ correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects objects: Set<HKSample>) -> Self
convenience init(type correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects objects: Set<HKSample>, metadata metadata: [String : Any]?)
class func withType(_ correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects objects: Set<HKSample>, metadata metadata: [String : Any]?) -> Self
convenience init(type correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects objects: Set<HKSample>, device device: HKDevice?, metadata metadata: [String : Any]?)
class func withType(_ correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects objects: Set<HKSample>, device device: HKDevice?, metadata metadata: [String : Any]?) -> Self
func objects(for objectType: HKObjectType) -> Set<HKSample>
} |
Modified HKCorrelation.init(type: HKCorrelationType, start: Date, end: Date, objects: Set<HKSample>)
| Declaration | |
|---|---|
| From | convenience init(type correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>) |
| To | convenience init(type correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects objects: Set<HKSample>) |
| Declaration | |
|---|---|
| From | convenience init(type correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>, device device: HKDevice?, metadata metadata: [String : AnyObject]?) |
| To | convenience init(type correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects objects: Set<HKSample>, device device: HKDevice?, metadata metadata: [String : Any]?) |
| Declaration | |
|---|---|
| From | convenience init(type correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>, metadata metadata: [String : AnyObject]?) |
| To | convenience init(type correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects objects: Set<HKSample>, metadata metadata: [String : Any]?) |
| Declaration | |
|---|---|
| From | func objectsForType(_ objectType: HKObjectType) -> Set<HKSample> |
| To | func objects(for objectType: HKObjectType) -> Set<HKSample> |
Modified HKCorrelationQuery
| Declaration | Protocols | |
|---|---|---|
| From | class HKCorrelationQuery : HKQuery {
@NSCopying var correlationType: HKCorrelationType { get }
var samplePredicates: [HKSampleType : NSPredicate]? { get }
init(type correlationType: HKCorrelationType, predicate predicate: NSPredicate?, samplePredicates samplePredicates: [HKSampleType : NSPredicate]?, completion completion: (HKCorrelationQuery, [HKCorrelation]?, NSError?) -> Void)
} | -- |
| To | class HKCorrelationQuery : HKQuery {
@NSCopying var correlationType: HKCorrelationType { get }
var samplePredicates: [HKSampleType : NSPredicate]? { get }
init(type correlationType: HKCorrelationType, predicate predicate: NSPredicate?, samplePredicates samplePredicates: [HKSampleType : NSPredicate]?, completion completion: @escaping (HKCorrelationQuery, [HKCorrelation]?, Error?) -> Swift.Void)
class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
class func predicateForObjects(from source: HKSource) -> NSPredicate
class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
class func predicateForObject(with UUID: UUID) -> NSPredicate
class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
class func predicateForObjectsWithNoCorrelation() -> NSPredicate
class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKCorrelationQuery : CVarArg {
}
extension HKCorrelationQuery : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable |
| Declaration | |
|---|---|
| From | init(type correlationType: HKCorrelationType, predicate predicate: NSPredicate?, samplePredicates samplePredicates: [HKSampleType : NSPredicate]?, completion completion: (HKCorrelationQuery, [HKCorrelation]?, NSError?) -> Void) |
| To | init(type correlationType: HKCorrelationType, predicate predicate: NSPredicate?, samplePredicates samplePredicates: [HKSampleType : NSPredicate]?, completion completion: @escaping (HKCorrelationQuery, [HKCorrelation]?, Error?) -> Swift.Void) |
| Name | Declaration | |
|---|---|---|
| From | HKCorrelationTypeIdentifierBloodPressure | let HKCorrelationTypeIdentifierBloodPressure: String |
| To | bloodPressure | static let bloodPressure: HKCorrelationTypeIdentifier |
Modified HKCorrelationTypeIdentifier.food
| Name | Declaration | |
|---|---|---|
| From | HKCorrelationTypeIdentifierFood | let HKCorrelationTypeIdentifierFood: String |
| To | food | static let food: HKCorrelationTypeIdentifier |
Modified HKDeletedObject
| Declaration | Protocols | |
|---|---|---|
| From | class HKDeletedObject : NSObject, NSSecureCoding {
var UUID: NSUUID { get }
init()
} | NSSecureCoding |
| To | class HKDeletedObject : NSObject, NSSecureCoding {
var uuid: UUID { get }
init()
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKDeletedObject : CVarArg {
}
extension HKDeletedObject : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable, NSSecureCoding |
Modified HKDeletedObject.uuid
| Declaration | |
|---|---|
| From | var UUID: NSUUID { get } |
| To | var uuid: UUID { get } |
Modified HKDevice
| Declaration | Protocols | |
|---|---|---|
| From | class HKDevice : NSObject, NSSecureCoding, NSCopying {
var name: String { get }
var manufacturer: String? { get }
var model: String? { get }
var hardwareVersion: String? { get }
var firmwareVersion: String? { get }
var softwareVersion: String? { get }
var localIdentifier: String? { get }
var UDIDeviceIdentifier: String? { get }
init(name name: String?, manufacturer manufacturer: String?, model model: String?, hardwareVersion hardwareVersion: String?, firmwareVersion firmwareVersion: String?, softwareVersion softwareVersion: String?, localIdentifier localIdentifier: String?, UDIDeviceIdentifier UDIDeviceIdentifier: String?)
init()
class func localDevice() -> HKDevice
} | NSCopying, NSSecureCoding |
| To | class HKDevice : NSObject, NSSecureCoding, NSCopying {
var name: String? { get }
var manufacturer: String? { get }
var model: String? { get }
var hardwareVersion: String? { get }
var firmwareVersion: String? { get }
var softwareVersion: String? { get }
var localIdentifier: String? { get }
var udiDeviceIdentifier: String? { get }
init(name name: String?, manufacturer manufacturer: String?, model model: String?, hardwareVersion hardwareVersion: String?, firmwareVersion firmwareVersion: String?, softwareVersion softwareVersion: String?, localIdentifier localIdentifier: String?, udiDeviceIdentifier UDIDeviceIdentifier: String?)
init()
class func local() -> HKDevice
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKDevice : CVarArg {
}
extension HKDevice : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding |
| Declaration | |
|---|---|
| From | init(name name: String?, manufacturer manufacturer: String?, model model: String?, hardwareVersion hardwareVersion: String?, firmwareVersion firmwareVersion: String?, softwareVersion softwareVersion: String?, localIdentifier localIdentifier: String?, UDIDeviceIdentifier UDIDeviceIdentifier: String?) |
| To | init(name name: String?, manufacturer manufacturer: String?, model model: String?, hardwareVersion hardwareVersion: String?, firmwareVersion firmwareVersion: String?, softwareVersion softwareVersion: String?, localIdentifier localIdentifier: String?, udiDeviceIdentifier UDIDeviceIdentifier: String?) |
Modified HKDevice.local() -> HKDevice [class]
| Declaration | |
|---|---|
| From | class func localDevice() -> HKDevice |
| To | class func local() -> HKDevice |
Modified HKDevice.name
| Declaration | |
|---|---|
| From | var name: String { get } |
| To | var name: String? { get } |
Modified HKDevice.udiDeviceIdentifier
| Declaration | |
|---|---|
| From | var UDIDeviceIdentifier: String? { get } |
| To | var udiDeviceIdentifier: String? { get } |
Modified HKError.Code [enum]
| Declaration | |
|---|---|
| From | enum HKErrorCode : Int {
case NoError
case ErrorHealthDataUnavailable
case ErrorHealthDataRestricted
case ErrorInvalidArgument
case ErrorAuthorizationDenied
case ErrorAuthorizationNotDetermined
case ErrorDatabaseInaccessible
case ErrorUserCanceled
case ErrorAnotherWorkoutSessionStarted
case ErrorUserExitedWorkoutSession
} |
| To | enum Code : Int {
typealias _ErrorType = HKError
case noError
case errorHealthDataUnavailable
case errorHealthDataRestricted
case errorInvalidArgument
case errorAuthorizationDenied
case errorAuthorizationNotDetermined
case errorDatabaseInaccessible
case errorUserCanceled
case errorAnotherWorkoutSessionStarted
case errorUserExitedWorkoutSession
} |
| Declaration | |
|---|---|
| From | case ErrorAnotherWorkoutSessionStarted |
| To | case errorAnotherWorkoutSessionStarted |
| Declaration | |
|---|---|
| From | case ErrorAuthorizationDenied |
| To | case errorAuthorizationDenied |
| Declaration | |
|---|---|
| From | case ErrorAuthorizationNotDetermined |
| To | case errorAuthorizationNotDetermined |
| Declaration | |
|---|---|
| From | case ErrorDatabaseInaccessible |
| To | case errorDatabaseInaccessible |
| Declaration | |
|---|---|
| From | case ErrorHealthDataRestricted |
| To | case errorHealthDataRestricted |
| Declaration | |
|---|---|
| From | case ErrorHealthDataUnavailable |
| To | case errorHealthDataUnavailable |
Modified HKError.Code.errorInvalidArgument
| Declaration | |
|---|---|
| From | case ErrorInvalidArgument |
| To | case errorInvalidArgument |
Modified HKError.Code.errorUserCanceled
| Declaration | Introduction | |
|---|---|---|
| From | case ErrorUserCanceled | watchOS 2.0 |
| To | case errorUserCanceled | watchOS 3.0 |
| Declaration | |
|---|---|
| From | case ErrorUserExitedWorkoutSession |
| To | case errorUserExitedWorkoutSession |
Modified HKError.Code.noError
| Declaration | |
|---|---|
| From | case NoError |
| To | case noError |
Modified HKFitzpatrickSkinType [enum]
| Declaration | |
|---|---|
| From | enum HKFitzpatrickSkinType : Int {
case NotSet
case I
case II
case III
case IV
case V
case VI
} |
| To | enum HKFitzpatrickSkinType : Int {
case notSet
case I
case II
case III
case IV
case V
case VI
} |
Modified HKFitzpatrickSkinType.notSet
| Declaration | |
|---|---|
| From | case NotSet |
| To | case notSet |
Modified HKFitzpatrickSkinTypeObject
| Declaration | Protocols | |
|---|---|---|
| From | class HKFitzpatrickSkinTypeObject : NSObject, NSCopying, NSSecureCoding {
var skinType: HKFitzpatrickSkinType { get }
} | NSCopying, NSSecureCoding |
| To | class HKFitzpatrickSkinTypeObject : NSObject, NSCopying, NSSecureCoding {
var skinType: HKFitzpatrickSkinType { get }
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKFitzpatrickSkinTypeObject : CVarArg {
}
extension HKFitzpatrickSkinTypeObject : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding |
Modified HKHealthStore
| Declaration | Protocols | |
|---|---|---|
| From | class HKHealthStore : NSObject {
class func isHealthDataAvailable() -> Bool
func authorizationStatusForType(_ type: HKObjectType) -> HKAuthorizationStatus
func requestAuthorizationToShareTypes(_ typesToShare: Set<HKSampleType>?, readTypes typesToRead: Set<HKObjectType>?, completion completion: (Bool, NSError?) -> Void)
func handleAuthorizationForExtensionWithCompletion(_ completion: (Bool, NSError?) -> Void)
func earliestPermittedSampleDate() -> NSDate
func saveObject(_ object: HKObject, withCompletion completion: (Bool, NSError?) -> Void)
func saveObjects(_ objects: [HKObject], withCompletion completion: (Bool, NSError?) -> Void)
func deleteObject(_ object: HKObject, withCompletion completion: (Bool, NSError?) -> Void)
func deleteObjects(_ objects: [HKObject], withCompletion completion: (Bool, NSError?) -> Void)
func deleteObjectsOfType(_ objectType: HKObjectType, predicate predicate: NSPredicate, withCompletion completion: (Bool, Int, NSError?) -> Void)
func executeQuery(_ query: HKQuery)
func stopQuery(_ query: HKQuery)
func splitTotalEnergy(_ totalEnergy: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate, resultsHandler resultsHandler: (HKQuantity?, HKQuantity?, NSError?) -> Void)
func dateOfBirth() throws -> NSDate
func biologicalSex() throws -> HKBiologicalSexObject
func bloodType() throws -> HKBloodTypeObject
func fitzpatrickSkinType() throws -> HKFitzpatrickSkinTypeObject
}
extension HKHealthStore {
func addSamples(_ samples: [HKSample], toWorkout workout: HKWorkout, completion completion: (Bool, NSError?) -> Void)
func startWorkoutSession(_ workoutSession: HKWorkoutSession)
func endWorkoutSession(_ workoutSession: HKWorkoutSession)
}
extension HKHealthStore {
func enableBackgroundDeliveryForType(_ type: HKObjectType, frequency frequency: HKUpdateFrequency, withCompletion completion: (Bool, NSError?) -> Void)
func disableBackgroundDeliveryForType(_ type: HKObjectType, withCompletion completion: (Bool, NSError?) -> Void)
func disableAllBackgroundDeliveryWithCompletion(_ completion: (Bool, NSError?) -> Void)
}
extension HKHealthStore {
func preferredUnitsForQuantityTypes(_ quantityTypes: Set<HKQuantityType>, completion completion: ([HKQuantityType : HKUnit], NSError?) -> Void)
} | -- |
| To | class HKHealthStore : NSObject {
class func isHealthDataAvailable() -> Bool
func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion completion: @escaping (Bool, Error?) -> Swift.Void)
func handleAuthorizationForExtension(completion completion: @escaping (Bool, Error?) -> Swift.Void)
func earliestPermittedSampleDate() -> Date
func save(_ object: HKObject, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
func save(_ objects: [HKObject], withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
func delete(_ object: HKObject, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
func delete(_ objects: [HKObject], withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
func deleteObjects(of objectType: HKObjectType, predicate predicate: NSPredicate, withCompletion completion: @escaping (Bool, Int, Error?) -> Swift.Void)
func execute(_ query: HKQuery)
func stop(_ query: HKQuery)
func splitTotalEnergy(_ totalEnergy: HKQuantity, start startDate: Date, end endDate: Date, resultsHandler resultsHandler: @escaping (HKQuantity?, HKQuantity?, Error?) -> Swift.Void)
func dateOfBirth() throws -> Date
func dateOfBirthComponents() throws -> DateComponents
func biologicalSex() throws -> HKBiologicalSexObject
func bloodType() throws -> HKBloodTypeObject
func fitzpatrickSkinType() throws -> HKFitzpatrickSkinTypeObject
func wheelchairUse() throws -> HKWheelchairUseObject
func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
func enableBackgroundDelivery(for type: HKObjectType, frequency frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
func disableAllBackgroundDelivery(completion completion: @escaping (Bool, Error?) -> Swift.Void)
func add(_ samples: [HKSample], to workout: HKWorkout, completion completion: @escaping (Bool, Error?) -> Swift.Void)
func start(_ workoutSession: HKWorkoutSession)
func end(_ workoutSession: HKWorkoutSession)
func pause(_ workoutSession: HKWorkoutSession)
func resumeWorkoutSession(_ workoutSession: HKWorkoutSession)
func startWatchApp(with workoutConfiguration: HKWorkoutConfiguration, completion completion: @escaping (Bool, Error?) -> Swift.Void)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKHealthStore : CVarArg {
}
extension HKHealthStore : Equatable, Hashable {
var hashValue: Int { get }
}
extension HKHealthStore {
func add(_ samples: [HKSample], to workout: HKWorkout, completion completion: @escaping (Bool, Error?) -> Swift.Void)
func start(_ workoutSession: HKWorkoutSession)
func end(_ workoutSession: HKWorkoutSession)
func pause(_ workoutSession: HKWorkoutSession)
func resumeWorkoutSession(_ workoutSession: HKWorkoutSession)
func startWatchApp(with workoutConfiguration: HKWorkoutConfiguration, completion completion: @escaping (Bool, Error?) -> Swift.Void)
}
extension HKHealthStore {
func enableBackgroundDelivery(for type: HKObjectType, frequency frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
func disableAllBackgroundDelivery(completion completion: @escaping (Bool, Error?) -> Swift.Void)
}
extension HKHealthStore {
func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
} | CVarArg, Equatable, Hashable |
| Declaration | |
|---|---|
| From | func addSamples(_ samples: [HKSample], toWorkout workout: HKWorkout, completion completion: (Bool, NSError?) -> Void) |
| To | func add(_ samples: [HKSample], to workout: HKWorkout, completion completion: @escaping (Bool, Error?) -> Swift.Void) |
| Declaration | |
|---|---|
| From | func authorizationStatusForType(_ type: HKObjectType) -> HKAuthorizationStatus |
| To | func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus |
| Declaration | |
|---|---|
| From | func dateOfBirth() throws -> NSDate |
| To | func dateOfBirth() throws -> Date |
| Declaration | |
|---|---|
| From | func deleteObjects(_ objects: [HKObject], withCompletion completion: (Bool, NSError?) -> Void) |
| To | func delete(_ objects: [HKObject], withCompletion completion: @escaping (Bool, Error?) -> Swift.Void) |
| Declaration | |
|---|---|
| From | func deleteObject(_ object: HKObject, withCompletion completion: (Bool, NSError?) -> Void) |
| To | func delete(_ object: HKObject, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void) |
| Declaration | |
|---|---|
| From | func deleteObjectsOfType(_ objectType: HKObjectType, predicate predicate: NSPredicate, withCompletion completion: (Bool, Int, NSError?) -> Void) |
| To | func deleteObjects(of objectType: HKObjectType, predicate predicate: NSPredicate, withCompletion completion: @escaping (Bool, Int, Error?) -> Swift.Void) |
| Declaration | |
|---|---|
| From | func earliestPermittedSampleDate() -> NSDate |
| To | func earliestPermittedSampleDate() -> Date |
| Declaration | |
|---|---|
| From | func endWorkoutSession(_ workoutSession: HKWorkoutSession) |
| To | func end(_ workoutSession: HKWorkoutSession) |
Modified HKHealthStore.execute(_: HKQuery)
| Declaration | |
|---|---|
| From | func executeQuery(_ query: HKQuery) |
| To | func execute(_ query: HKQuery) |
| Declaration | |
|---|---|
| From | func preferredUnitsForQuantityTypes(_ quantityTypes: Set<HKQuantityType>, completion completion: ([HKQuantityType : HKUnit], NSError?) -> Void) |
| To | func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void) |
| Declaration | |
|---|---|
| From | func requestAuthorizationToShareTypes(_ typesToShare: Set<HKSampleType>?, readTypes typesToRead: Set<HKObjectType>?, completion completion: (Bool, NSError?) -> Void) |
| To | func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion completion: @escaping (Bool, Error?) -> Swift.Void) |
| Declaration | |
|---|---|
| From | func saveObject(_ object: HKObject, withCompletion completion: (Bool, NSError?) -> Void) |
| To | func save(_ object: HKObject, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void) |
| Declaration | |
|---|---|
| From | func saveObjects(_ objects: [HKObject], withCompletion completion: (Bool, NSError?) -> Void) |
| To | func save(_ objects: [HKObject], withCompletion completion: @escaping (Bool, Error?) -> Swift.Void) |
| Declaration | |
|---|---|
| From | func splitTotalEnergy(_ totalEnergy: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate, resultsHandler resultsHandler: (HKQuantity?, HKQuantity?, NSError?) -> Void) |
| To | func splitTotalEnergy(_ totalEnergy: HKQuantity, start startDate: Date, end endDate: Date, resultsHandler resultsHandler: @escaping (HKQuantity?, HKQuantity?, Error?) -> Swift.Void) |
| Declaration | |
|---|---|
| From | func startWorkoutSession(_ workoutSession: HKWorkoutSession) |
| To | func start(_ workoutSession: HKWorkoutSession) |
Modified HKHealthStore.stop(_: HKQuery)
| Declaration | |
|---|---|
| From | func stopQuery(_ query: HKQuery) |
| To | func stop(_ query: HKQuery) |
Modified HKHeartRateSensorLocation [enum]
| Declaration | |
|---|---|
| From | enum HKHeartRateSensorLocation : Int {
case Other
case Chest
case Wrist
case Finger
case Hand
case EarLobe
case Foot
} |
| To | enum HKHeartRateSensorLocation : Int {
case other
case chest
case wrist
case finger
case hand
case earLobe
case foot
} |
Modified HKHeartRateSensorLocation.chest
| Declaration | |
|---|---|
| From | case Chest |
| To | case chest |
Modified HKHeartRateSensorLocation.earLobe
| Declaration | |
|---|---|
| From | case EarLobe |
| To | case earLobe |
Modified HKHeartRateSensorLocation.finger
| Declaration | |
|---|---|
| From | case Finger |
| To | case finger |
Modified HKHeartRateSensorLocation.foot
| Declaration | |
|---|---|
| From | case Foot |
| To | case foot |
Modified HKHeartRateSensorLocation.hand
| Declaration | |
|---|---|
| From | case Hand |
| To | case hand |
Modified HKHeartRateSensorLocation.other
| Declaration | |
|---|---|
| From | case Other |
| To | case other |
Modified HKHeartRateSensorLocation.wrist
| Declaration | |
|---|---|
| From | case Wrist |
| To | case wrist |
Modified HKMetricPrefix [enum]
| Declaration | |
|---|---|
| From | enum HKMetricPrefix : Int {
case None
case Pico
case Nano
case Micro
case Milli
case Centi
case Deci
case Deca
case Hecto
case Kilo
case Mega
case Giga
case Tera
} |
| To | enum HKMetricPrefix : Int {
case none
case pico
case nano
case micro
case milli
case centi
case deci
case deca
case hecto
case kilo
case mega
case giga
case tera
} |
Modified HKMetricPrefix.centi
| Declaration | |
|---|---|
| From | case Centi |
| To | case centi |
Modified HKMetricPrefix.deca
| Declaration | |
|---|---|
| From | case Deca |
| To | case deca |
Modified HKMetricPrefix.deci
| Declaration | |
|---|---|
| From | case Deci |
| To | case deci |
Modified HKMetricPrefix.giga
| Declaration | |
|---|---|
| From | case Giga |
| To | case giga |
Modified HKMetricPrefix.hecto
| Declaration | |
|---|---|
| From | case Hecto |
| To | case hecto |
Modified HKMetricPrefix.kilo
| Declaration | |
|---|---|
| From | case Kilo |
| To | case kilo |
Modified HKMetricPrefix.mega
| Declaration | |
|---|---|
| From | case Mega |
| To | case mega |
Modified HKMetricPrefix.micro
| Declaration | |
|---|---|
| From | case Micro |
| To | case micro |
Modified HKMetricPrefix.milli
| Declaration | |
|---|---|
| From | case Milli |
| To | case milli |
Modified HKMetricPrefix.nano
| Declaration | |
|---|---|
| From | case Nano |
| To | case nano |
Modified HKMetricPrefix.none
| Declaration | |
|---|---|
| From | case None |
| To | case none |
Modified HKMetricPrefix.pico
| Declaration | |
|---|---|
| From | case Pico |
| To | case pico |
Modified HKMetricPrefix.tera
| Declaration | |
|---|---|
| From | case Tera |
| To | case tera |
Modified HKObject
| Declaration | Protocols | |
|---|---|---|
| From | class HKObject : NSObject, NSSecureCoding {
var UUID: NSUUID { get }
var source: HKSource { get }
var sourceRevision: HKSourceRevision { get }
var device: HKDevice? { get }
var metadata: [String : AnyObject]? { get }
init()
} | NSSecureCoding |
| To | class HKObject : NSObject, NSSecureCoding {
var uuid: UUID { get }
var source: HKSource { get }
var sourceRevision: HKSourceRevision { get }
var device: HKDevice? { get }
var metadata: [String : Any]? { get }
init()
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKObject : CVarArg {
}
extension HKObject : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable, NSSecureCoding |
Modified HKObject.metadata
| Declaration | |
|---|---|
| From | var metadata: [String : AnyObject]? { get } |
| To | var metadata: [String : Any]? { get } |
Modified HKObject.uuid
| Declaration | |
|---|---|
| From | var UUID: NSUUID { get } |
| To | var uuid: UUID { get } |
Modified HKObjectType
| Declaration | Protocols | |
|---|---|---|
| From | class HKObjectType : NSObject, NSSecureCoding, NSCopying {
var identifier: String { get }
init()
class func quantityTypeForIdentifier(_ identifier: String) -> HKQuantityType?
class func categoryTypeForIdentifier(_ identifier: String) -> HKCategoryType?
class func characteristicTypeForIdentifier(_ identifier: String) -> HKCharacteristicType?
class func correlationTypeForIdentifier(_ identifier: String) -> HKCorrelationType?
class func workoutType() -> HKWorkoutType
class func activitySummaryType() -> HKActivitySummaryType
} | NSCopying, NSSecureCoding |
| To | class HKObjectType : NSObject, NSSecureCoding, NSCopying {
var identifier: String { get }
init()
class func quantityType(forIdentifier identifier: HKQuantityTypeIdentifier) -> HKQuantityType?
class func categoryType(forIdentifier identifier: HKCategoryTypeIdentifier) -> HKCategoryType?
class func characteristicType(forIdentifier identifier: HKCharacteristicTypeIdentifier) -> HKCharacteristicType?
class func correlationType(forIdentifier identifier: HKCorrelationTypeIdentifier) -> HKCorrelationType?
class func documentType(forIdentifier identifier: HKDocumentTypeIdentifier) -> HKDocumentType?
class func workoutType() -> HKWorkoutType
class func activitySummaryType() -> HKActivitySummaryType
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKObjectType : CVarArg {
}
extension HKObjectType : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding |
Modified HKObjectType.categoryType(forIdentifier: HKCategoryTypeIdentifier) -> HKCategoryType? [class]
| Declaration | |
|---|---|
| From | class func categoryTypeForIdentifier(_ identifier: String) -> HKCategoryType? |
| To | class func categoryType(forIdentifier identifier: HKCategoryTypeIdentifier) -> HKCategoryType? |
| Declaration | |
|---|---|
| From | class func characteristicTypeForIdentifier(_ identifier: String) -> HKCharacteristicType? |
| To | class func characteristicType(forIdentifier identifier: HKCharacteristicTypeIdentifier) -> HKCharacteristicType? |
| Declaration | |
|---|---|
| From | class func correlationTypeForIdentifier(_ identifier: String) -> HKCorrelationType? |
| To | class func correlationType(forIdentifier identifier: HKCorrelationTypeIdentifier) -> HKCorrelationType? |
Modified HKObjectType.quantityType(forIdentifier: HKQuantityTypeIdentifier) -> HKQuantityType? [class]
| Declaration | |
|---|---|
| From | class func quantityTypeForIdentifier(_ identifier: String) -> HKQuantityType? |
| To | class func quantityType(forIdentifier identifier: HKQuantityTypeIdentifier) -> HKQuantityType? |
Modified HKObserverQuery
| Declaration | Protocols | |
|---|---|---|
| From | class HKObserverQuery : HKQuery {
init(sampleType sampleType: HKSampleType, predicate predicate: NSPredicate?, updateHandler updateHandler: (HKObserverQuery, HKObserverQueryCompletionHandler, NSError?) -> Void)
} | -- |
| To | class HKObserverQuery : HKQuery {
init(sampleType sampleType: HKSampleType, predicate predicate: NSPredicate?, updateHandler updateHandler: @escaping (HKObserverQuery, HealthKit.HKObserverQueryCompletionHandler, Error?) -> Swift.Void)
class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
class func predicateForObjects(from source: HKSource) -> NSPredicate
class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
class func predicateForObject(with UUID: UUID) -> NSPredicate
class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
class func predicateForObjectsWithNoCorrelation() -> NSPredicate
class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKObserverQuery : CVarArg {
}
extension HKObserverQuery : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable |
| Declaration | |
|---|---|
| From | init(sampleType sampleType: HKSampleType, predicate predicate: NSPredicate?, updateHandler updateHandler: (HKObserverQuery, HKObserverQueryCompletionHandler, NSError?) -> Void) |
| To | init(sampleType sampleType: HKSampleType, predicate predicate: NSPredicate?, updateHandler updateHandler: @escaping (HKObserverQuery, HealthKit.HKObserverQueryCompletionHandler, Error?) -> Swift.Void) |
Modified HKQuantity
| Declaration | Protocols | |
|---|---|---|
| From | class HKQuantity : NSObject, NSSecureCoding, NSCopying {
init()
convenience init(unit unit: HKUnit, doubleValue value: Double)
class func quantityWithUnit(_ unit: HKUnit, doubleValue value: Double) -> Self
func isCompatibleWithUnit(_ unit: HKUnit) -> Bool
func doubleValueForUnit(_ unit: HKUnit) -> Double
func compare(_ quantity: HKQuantity) -> NSComparisonResult
} | NSCopying, NSSecureCoding |
| To | class HKQuantity : NSObject, NSSecureCoding, NSCopying {
init()
convenience init(unit unit: HKUnit, doubleValue value: Double)
class func withUnit(_ unit: HKUnit, doubleValue value: Double) -> Self
func `is`(compatibleWith unit: HKUnit) -> Bool
func doubleValue(for unit: HKUnit) -> Double
func compare(_ quantity: HKQuantity) -> ComparisonResult
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKQuantity : CVarArg {
}
extension HKQuantity : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding |
| Declaration | |
|---|---|
| From | func compare(_ quantity: HKQuantity) -> NSComparisonResult |
| To | func compare(_ quantity: HKQuantity) -> ComparisonResult |
| Declaration | |
|---|---|
| From | func doubleValueForUnit(_ unit: HKUnit) -> Double |
| To | func doubleValue(for unit: HKUnit) -> Double |
| Declaration | |
|---|---|
| From | func isCompatibleWithUnit(_ unit: HKUnit) -> Bool |
| To | func `is`(compatibleWith unit: HKUnit) -> Bool |
Modified HKQuantityAggregationStyle [enum]
| Declaration | |
|---|---|
| From | enum HKQuantityAggregationStyle : Int {
case Cumulative
case Discrete
} |
| To | enum HKQuantityAggregationStyle : Int {
case cumulative
case discrete
} |
| Declaration | |
|---|---|
| From | case Cumulative |
| To | case cumulative |
Modified HKQuantityAggregationStyle.discrete
| Declaration | |
|---|---|
| From | case Discrete |
| To | case discrete |
Modified HKQuantitySample
| Declaration | |
|---|---|
| From | class HKQuantitySample : HKSample {
var quantityType: HKQuantityType { get }
var quantity: HKQuantity { get }
convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate)
class func quantitySampleWithType(_ quantityType: HKQuantityType, quantity quantity: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate) -> Self
convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate, metadata metadata: [String : AnyObject]?)
class func quantitySampleWithType(_ quantityType: HKQuantityType, quantity quantity: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate, metadata metadata: [String : AnyObject]?) -> Self
convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate, device device: HKDevice?, metadata metadata: [String : AnyObject]?)
class func quantitySampleWithType(_ quantityType: HKQuantityType, quantity quantity: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate, device device: HKDevice?, metadata metadata: [String : AnyObject]?) -> Self
} |
| To | class HKQuantitySample : HKSample {
var quantityType: HKQuantityType { get }
var quantity: HKQuantity { get }
convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, start startDate: Date, end endDate: Date)
class func withType(_ quantityType: HKQuantityType, quantity quantity: HKQuantity, start startDate: Date, end endDate: Date) -> Self
convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, start startDate: Date, end endDate: Date, metadata metadata: [String : Any]?)
class func withType(_ quantityType: HKQuantityType, quantity quantity: HKQuantity, start startDate: Date, end endDate: Date, metadata metadata: [String : Any]?) -> Self
convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, start startDate: Date, end endDate: Date, device device: HKDevice?, metadata metadata: [String : Any]?)
class func withType(_ quantityType: HKQuantityType, quantity quantity: HKQuantity, start startDate: Date, end endDate: Date, device device: HKDevice?, metadata metadata: [String : Any]?) -> Self
} |
| Declaration | |
|---|---|
| From | convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate) |
| To | convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, start startDate: Date, end endDate: Date) |
| Declaration | |
|---|---|
| From | convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate, device device: HKDevice?, metadata metadata: [String : AnyObject]?) |
| To | convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, start startDate: Date, end endDate: Date, device device: HKDevice?, metadata metadata: [String : Any]?) |
| Declaration | |
|---|---|
| From | convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate, metadata metadata: [String : AnyObject]?) |
| To | convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, start startDate: Date, end endDate: Date, metadata metadata: [String : Any]?) |
Modified HKQuantityType
| Declaration | |
|---|---|
| From | class HKQuantityType : HKSampleType {
var aggregationStyle: HKQuantityAggregationStyle { get }
func isCompatibleWithUnit(_ unit: HKUnit) -> Bool
} |
| To | class HKQuantityType : HKSampleType {
var aggregationStyle: HKQuantityAggregationStyle { get }
func `is`(compatibleWith unit: HKUnit) -> Bool
} |
| Declaration | |
|---|---|
| From | func isCompatibleWithUnit(_ unit: HKUnit) -> Bool |
| To | func `is`(compatibleWith unit: HKUnit) -> Bool |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierActiveEnergyBurned | let HKQuantityTypeIdentifierActiveEnergyBurned: String |
| To | activeEnergyBurned | static let activeEnergyBurned: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierAppleExerciseTime | let HKQuantityTypeIdentifierAppleExerciseTime: String |
| To | appleExerciseTime | static let appleExerciseTime: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierBasalBodyTemperature | let HKQuantityTypeIdentifierBasalBodyTemperature: String |
| To | basalBodyTemperature | static let basalBodyTemperature: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierBasalEnergyBurned | let HKQuantityTypeIdentifierBasalEnergyBurned: String |
| To | basalEnergyBurned | static let basalEnergyBurned: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierBloodAlcoholContent | let HKQuantityTypeIdentifierBloodAlcoholContent: String |
| To | bloodAlcoholContent | static let bloodAlcoholContent: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierBloodGlucose | let HKQuantityTypeIdentifierBloodGlucose: String |
| To | bloodGlucose | static let bloodGlucose: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierBloodPressureDiastolic | let HKQuantityTypeIdentifierBloodPressureDiastolic: String |
| To | bloodPressureDiastolic | static let bloodPressureDiastolic: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierBloodPressureSystolic | let HKQuantityTypeIdentifierBloodPressureSystolic: String |
| To | bloodPressureSystolic | static let bloodPressureSystolic: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierBodyFatPercentage | let HKQuantityTypeIdentifierBodyFatPercentage: String |
| To | bodyFatPercentage | static let bodyFatPercentage: HKQuantityTypeIdentifier |
Modified HKQuantityTypeIdentifier.bodyMass
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierBodyMass | let HKQuantityTypeIdentifierBodyMass: String |
| To | bodyMass | static let bodyMass: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierBodyMassIndex | let HKQuantityTypeIdentifierBodyMassIndex: String |
| To | bodyMassIndex | static let bodyMassIndex: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierBodyTemperature | let HKQuantityTypeIdentifierBodyTemperature: String |
| To | bodyTemperature | static let bodyTemperature: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryBiotin | let HKQuantityTypeIdentifierDietaryBiotin: String |
| To | dietaryBiotin | static let dietaryBiotin: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryCaffeine | let HKQuantityTypeIdentifierDietaryCaffeine: String |
| To | dietaryCaffeine | static let dietaryCaffeine: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryCalcium | let HKQuantityTypeIdentifierDietaryCalcium: String |
| To | dietaryCalcium | static let dietaryCalcium: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryCarbohydrates | let HKQuantityTypeIdentifierDietaryCarbohydrates: String |
| To | dietaryCarbohydrates | static let dietaryCarbohydrates: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryChloride | let HKQuantityTypeIdentifierDietaryChloride: String |
| To | dietaryChloride | static let dietaryChloride: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryCholesterol | let HKQuantityTypeIdentifierDietaryCholesterol: String |
| To | dietaryCholesterol | static let dietaryCholesterol: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryChromium | let HKQuantityTypeIdentifierDietaryChromium: String |
| To | dietaryChromium | static let dietaryChromium: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryCopper | let HKQuantityTypeIdentifierDietaryCopper: String |
| To | dietaryCopper | static let dietaryCopper: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryEnergyConsumed | let HKQuantityTypeIdentifierDietaryEnergyConsumed: String |
| To | dietaryEnergyConsumed | static let dietaryEnergyConsumed: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryFatMonounsaturated | let HKQuantityTypeIdentifierDietaryFatMonounsaturated: String |
| To | dietaryFatMonounsaturated | static let dietaryFatMonounsaturated: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryFatPolyunsaturated | let HKQuantityTypeIdentifierDietaryFatPolyunsaturated: String |
| To | dietaryFatPolyunsaturated | static let dietaryFatPolyunsaturated: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryFatSaturated | let HKQuantityTypeIdentifierDietaryFatSaturated: String |
| To | dietaryFatSaturated | static let dietaryFatSaturated: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryFatTotal | let HKQuantityTypeIdentifierDietaryFatTotal: String |
| To | dietaryFatTotal | static let dietaryFatTotal: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryFiber | let HKQuantityTypeIdentifierDietaryFiber: String |
| To | dietaryFiber | static let dietaryFiber: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryFolate | let HKQuantityTypeIdentifierDietaryFolate: String |
| To | dietaryFolate | static let dietaryFolate: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryIodine | let HKQuantityTypeIdentifierDietaryIodine: String |
| To | dietaryIodine | static let dietaryIodine: HKQuantityTypeIdentifier |
Modified HKQuantityTypeIdentifier.dietaryIron
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryIron | let HKQuantityTypeIdentifierDietaryIron: String |
| To | dietaryIron | static let dietaryIron: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryMagnesium | let HKQuantityTypeIdentifierDietaryMagnesium: String |
| To | dietaryMagnesium | static let dietaryMagnesium: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryManganese | let HKQuantityTypeIdentifierDietaryManganese: String |
| To | dietaryManganese | static let dietaryManganese: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryMolybdenum | let HKQuantityTypeIdentifierDietaryMolybdenum: String |
| To | dietaryMolybdenum | static let dietaryMolybdenum: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryNiacin | let HKQuantityTypeIdentifierDietaryNiacin: String |
| To | dietaryNiacin | static let dietaryNiacin: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryPantothenicAcid | let HKQuantityTypeIdentifierDietaryPantothenicAcid: String |
| To | dietaryPantothenicAcid | static let dietaryPantothenicAcid: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryPhosphorus | let HKQuantityTypeIdentifierDietaryPhosphorus: String |
| To | dietaryPhosphorus | static let dietaryPhosphorus: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryPotassium | let HKQuantityTypeIdentifierDietaryPotassium: String |
| To | dietaryPotassium | static let dietaryPotassium: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryProtein | let HKQuantityTypeIdentifierDietaryProtein: String |
| To | dietaryProtein | static let dietaryProtein: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryRiboflavin | let HKQuantityTypeIdentifierDietaryRiboflavin: String |
| To | dietaryRiboflavin | static let dietaryRiboflavin: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietarySelenium | let HKQuantityTypeIdentifierDietarySelenium: String |
| To | dietarySelenium | static let dietarySelenium: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietarySodium | let HKQuantityTypeIdentifierDietarySodium: String |
| To | dietarySodium | static let dietarySodium: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietarySugar | let HKQuantityTypeIdentifierDietarySugar: String |
| To | dietarySugar | static let dietarySugar: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryThiamin | let HKQuantityTypeIdentifierDietaryThiamin: String |
| To | dietaryThiamin | static let dietaryThiamin: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryVitaminA | let HKQuantityTypeIdentifierDietaryVitaminA: String |
| To | dietaryVitaminA | static let dietaryVitaminA: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryVitaminB12 | let HKQuantityTypeIdentifierDietaryVitaminB12: String |
| To | dietaryVitaminB12 | static let dietaryVitaminB12: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryVitaminB6 | let HKQuantityTypeIdentifierDietaryVitaminB6: String |
| To | dietaryVitaminB6 | static let dietaryVitaminB6: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryVitaminC | let HKQuantityTypeIdentifierDietaryVitaminC: String |
| To | dietaryVitaminC | static let dietaryVitaminC: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryVitaminD | let HKQuantityTypeIdentifierDietaryVitaminD: String |
| To | dietaryVitaminD | static let dietaryVitaminD: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryVitaminE | let HKQuantityTypeIdentifierDietaryVitaminE: String |
| To | dietaryVitaminE | static let dietaryVitaminE: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryVitaminK | let HKQuantityTypeIdentifierDietaryVitaminK: String |
| To | dietaryVitaminK | static let dietaryVitaminK: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryWater | let HKQuantityTypeIdentifierDietaryWater: String |
| To | dietaryWater | static let dietaryWater: HKQuantityTypeIdentifier |
Modified HKQuantityTypeIdentifier.dietaryZinc
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDietaryZinc | let HKQuantityTypeIdentifierDietaryZinc: String |
| To | dietaryZinc | static let dietaryZinc: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDistanceCycling | let HKQuantityTypeIdentifierDistanceCycling: String |
| To | distanceCycling | static let distanceCycling: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierDistanceWalkingRunning | let HKQuantityTypeIdentifierDistanceWalkingRunning: String |
| To | distanceWalkingRunning | static let distanceWalkingRunning: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierElectrodermalActivity | let HKQuantityTypeIdentifierElectrodermalActivity: String |
| To | electrodermalActivity | static let electrodermalActivity: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierFlightsClimbed | let HKQuantityTypeIdentifierFlightsClimbed: String |
| To | flightsClimbed | static let flightsClimbed: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierForcedExpiratoryVolume1 | let HKQuantityTypeIdentifierForcedExpiratoryVolume1: String |
| To | forcedExpiratoryVolume1 | static let forcedExpiratoryVolume1: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierForcedVitalCapacity | let HKQuantityTypeIdentifierForcedVitalCapacity: String |
| To | forcedVitalCapacity | static let forcedVitalCapacity: HKQuantityTypeIdentifier |
Modified HKQuantityTypeIdentifier.heartRate
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierHeartRate | let HKQuantityTypeIdentifierHeartRate: String |
| To | heartRate | static let heartRate: HKQuantityTypeIdentifier |
Modified HKQuantityTypeIdentifier.height
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierHeight | let HKQuantityTypeIdentifierHeight: String |
| To | height | static let height: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierInhalerUsage | let HKQuantityTypeIdentifierInhalerUsage: String |
| To | inhalerUsage | static let inhalerUsage: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierLeanBodyMass | let HKQuantityTypeIdentifierLeanBodyMass: String |
| To | leanBodyMass | static let leanBodyMass: HKQuantityTypeIdentifier |
Modified HKQuantityTypeIdentifier.nikeFuel
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierNikeFuel | let HKQuantityTypeIdentifierNikeFuel: String |
| To | nikeFuel | static let nikeFuel: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierNumberOfTimesFallen | let HKQuantityTypeIdentifierNumberOfTimesFallen: String |
| To | numberOfTimesFallen | static let numberOfTimesFallen: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierOxygenSaturation | let HKQuantityTypeIdentifierOxygenSaturation: String |
| To | oxygenSaturation | static let oxygenSaturation: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierPeakExpiratoryFlowRate | let HKQuantityTypeIdentifierPeakExpiratoryFlowRate: String |
| To | peakExpiratoryFlowRate | static let peakExpiratoryFlowRate: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierPeripheralPerfusionIndex | let HKQuantityTypeIdentifierPeripheralPerfusionIndex: String |
| To | peripheralPerfusionIndex | static let peripheralPerfusionIndex: HKQuantityTypeIdentifier |
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierRespiratoryRate | let HKQuantityTypeIdentifierRespiratoryRate: String |
| To | respiratoryRate | static let respiratoryRate: HKQuantityTypeIdentifier |
Modified HKQuantityTypeIdentifier.stepCount
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierStepCount | let HKQuantityTypeIdentifierStepCount: String |
| To | stepCount | static let stepCount: HKQuantityTypeIdentifier |
Modified HKQuantityTypeIdentifier.uvExposure
| Name | Declaration | |
|---|---|---|
| From | HKQuantityTypeIdentifierUVExposure | let HKQuantityTypeIdentifierUVExposure: String |
| To | uvExposure | static let uvExposure: HKQuantityTypeIdentifier |
Modified HKQuery
| Declaration | Protocols | |
|---|---|---|
| From | class HKQuery : NSObject {
var objectType: HKObjectType? { get }
var sampleType: HKSampleType? { get }
var predicate: NSPredicate? { get }
init()
}
extension HKQuery {
class func predicateForObjectsWithMetadataKey(_ key: String) -> NSPredicate
class func predicateForObjectsWithMetadataKey(_ key: String, allowedValues allowedValues: [AnyObject]) -> NSPredicate
class func predicateForObjectsWithMetadataKey(_ key: String, operatorType operatorType: NSPredicateOperatorType, value value: AnyObject) -> NSPredicate
class func predicateForObjectsFromSource(_ source: HKSource) -> NSPredicate
class func predicateForObjectsFromSources(_ sources: Set<HKSource>) -> NSPredicate
class func predicateForObjectsFromSourceRevisions(_ sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
class func predicateForObjectsFromDevices(_ devices: Set<HKDevice>) -> NSPredicate
class func predicateForObjectsWithDeviceProperty(_ key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
class func predicateForObjectWithUUID(_ UUID: NSUUID) -> NSPredicate
class func predicateForObjectsWithUUIDs(_ UUIDs: Set<NSUUID>) -> NSPredicate
class func predicateForObjectsWithNoCorrelation() -> NSPredicate
class func predicateForObjectsFromWorkout(_ workout: HKWorkout) -> NSPredicate
}
extension HKQuery {
class func predicateForSamplesWithStartDate(_ startDate: NSDate?, endDate endDate: NSDate?, options options: HKQueryOptions) -> NSPredicate
}
extension HKQuery {
class func predicateForQuantitySamplesWithOperatorType(_ operatorType: NSPredicateOperatorType, quantity quantity: HKQuantity) -> NSPredicate
}
extension HKQuery {
class func predicateForCategorySamplesWithOperatorType(_ operatorType: NSPredicateOperatorType, value value: Int) -> NSPredicate
}
extension HKQuery {
class func predicateForWorkoutsWithWorkoutActivityType(_ workoutActivityType: HKWorkoutActivityType) -> NSPredicate
class func predicateForWorkoutsWithOperatorType(_ operatorType: NSPredicateOperatorType, duration duration: NSTimeInterval) -> NSPredicate
class func predicateForWorkoutsWithOperatorType(_ operatorType: NSPredicateOperatorType, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
class func predicateForWorkoutsWithOperatorType(_ operatorType: NSPredicateOperatorType, totalDistance totalDistance: HKQuantity) -> NSPredicate
}
extension HKQuery {
class func predicateForActivitySummaryWithDateComponents(_ dateComponents: NSDateComponents) -> NSPredicate
class func predicateForActivitySummariesBetweenStartDateComponents(_ startDateComponents: NSDateComponents, endDateComponents endDateComponents: NSDateComponents) -> NSPredicate
} | -- |
| To | class HKQuery : NSObject {
var objectType: HKObjectType? { get }
var sampleType: HKSampleType? { get }
var predicate: NSPredicate? { get }
init()
class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
class func predicateForObjects(from source: HKSource) -> NSPredicate
class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
class func predicateForObject(with UUID: UUID) -> NSPredicate
class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
class func predicateForObjectsWithNoCorrelation() -> NSPredicate
class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKQuery : CVarArg {
}
extension HKQuery : Equatable, Hashable {
var hashValue: Int { get }
}
extension HKQuery {
class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
class func predicateForObjects(from source: HKSource) -> NSPredicate
class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
class func predicateForObject(with UUID: UUID) -> NSPredicate
class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
class func predicateForObjectsWithNoCorrelation() -> NSPredicate
class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
}
extension HKQuery {
class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
}
extension HKQuery {
class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
}
extension HKQuery {
class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
}
extension HKQuery {
class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
}
extension HKQuery {
class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
} | CVarArg, Equatable, Hashable |
| Declaration | |
|---|---|
| From | class func predicateForActivitySummariesBetweenStartDateComponents(_ startDateComponents: NSDateComponents, endDateComponents endDateComponents: NSDateComponents) -> NSPredicate |
| To | class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate |
| Declaration | |
|---|---|
| From | class func predicateForActivitySummaryWithDateComponents(_ dateComponents: NSDateComponents) -> NSPredicate |
| To | class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate |
| Declaration | |
|---|---|
| From | class func predicateForCategorySamplesWithOperatorType(_ operatorType: NSPredicateOperatorType, value value: Int) -> NSPredicate |
| To | class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate |
| Declaration | |
|---|---|
| From | class func predicateForObjectWithUUID(_ UUID: NSUUID) -> NSPredicate |
| To | class func predicateForObject(with UUID: UUID) -> NSPredicate |
| Declaration | |
|---|---|
| From | class func predicateForObjectsFromDevices(_ devices: Set<HKDevice>) -> NSPredicate |
| To | class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate |
| Declaration | |
|---|---|
| From | class func predicateForObjectsFromWorkout(_ workout: HKWorkout) -> NSPredicate |
| To | class func predicateForObjects(from workout: HKWorkout) -> NSPredicate |
| Declaration | |
|---|---|
| From | class func predicateForObjectsFromSourceRevisions(_ sourceRevisions: Set<HKSourceRevision>) -> NSPredicate |
| To | class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate |
| Declaration | |
|---|---|
| From | class func predicateForObjectsFromSource(_ source: HKSource) -> NSPredicate |
| To | class func predicateForObjects(from source: HKSource) -> NSPredicate |
| Declaration | |
|---|---|
| From | class func predicateForObjectsFromSources(_ sources: Set<HKSource>) -> NSPredicate |
| To | class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate |
| Declaration | |
|---|---|
| From | class func predicateForObjectsWithUUIDs(_ UUIDs: Set<NSUUID>) -> NSPredicate |
| To | class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate |
| Declaration | |
|---|---|
| From | class func predicateForObjectsWithDeviceProperty(_ key: String, allowedValues allowedValues: Set<String>) -> NSPredicate |
| To | class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate |
| Declaration | |
|---|---|
| From | class func predicateForObjectsWithMetadataKey(_ key: String) -> NSPredicate |
| To | class func predicateForObjects(withMetadataKey key: String) -> NSPredicate |
Modified HKQuery.predicateForObjects(withMetadataKey: String, allowedValues: [Any]) -> NSPredicate [class]
| Declaration | |
|---|---|
| From | class func predicateForObjectsWithMetadataKey(_ key: String, allowedValues allowedValues: [AnyObject]) -> NSPredicate |
| To | class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate |
| Declaration | |
|---|---|
| From | class func predicateForObjectsWithMetadataKey(_ key: String, operatorType operatorType: NSPredicateOperatorType, value value: AnyObject) -> NSPredicate |
| To | class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate |
| Declaration | |
|---|---|
| From | class func predicateForQuantitySamplesWithOperatorType(_ operatorType: NSPredicateOperatorType, quantity quantity: HKQuantity) -> NSPredicate |
| To | class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate |
| Declaration | |
|---|---|
| From | class func predicateForSamplesWithStartDate(_ startDate: NSDate?, endDate endDate: NSDate?, options options: HKQueryOptions) -> NSPredicate |
| To | class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate |
| Declaration | |
|---|---|
| From | class func predicateForWorkoutsWithWorkoutActivityType(_ workoutActivityType: HKWorkoutActivityType) -> NSPredicate |
| To | class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate |
| Declaration | |
|---|---|
| From | class func predicateForWorkoutsWithOperatorType(_ operatorType: NSPredicateOperatorType, duration duration: NSTimeInterval) -> NSPredicate |
| To | class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate |
| Declaration | |
|---|---|
| From | class func predicateForWorkoutsWithOperatorType(_ operatorType: NSPredicateOperatorType, totalDistance totalDistance: HKQuantity) -> NSPredicate |
| To | class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate |
| Declaration | |
|---|---|
| From | class func predicateForWorkoutsWithOperatorType(_ operatorType: NSPredicateOperatorType, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate |
| To | class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate |
Modified HKQueryAnchor
| Declaration | Protocols | |
|---|---|---|
| From | class HKQueryAnchor : NSObject, NSSecureCoding, NSCopying {
convenience init(fromValue value: Int)
class func anchorFromValue(_ value: Int) -> Self
init()
} | NSCopying, NSSecureCoding |
| To | class HKQueryAnchor : NSObject, NSSecureCoding, NSCopying {
convenience init(fromValue value: Int)
class func fromValue(_ value: Int) -> Self
init()
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKQueryAnchor : CVarArg {
}
extension HKQueryAnchor : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding |
Modified HKQueryOptions [struct]
| Declaration | Protocols | |
|---|---|---|
| From | struct HKQueryOptions : OptionSetType {
init(rawValue rawValue: UInt)
static var None: HKQueryOptions { get }
static var StrictStartDate: HKQueryOptions { get }
static var StrictEndDate: HKQueryOptions { get }
} | OptionSetType |
| To | struct HKQueryOptions : OptionSet {
init(rawValue rawValue: UInt)
static var none: HKQueryOptions { get }
static var strictStartDate: HKQueryOptions { get }
static var strictEndDate: HKQueryOptions { get }
func intersect(_ other: HKQueryOptions) -> HKQueryOptions
func exclusiveOr(_ other: HKQueryOptions) -> HKQueryOptions
mutating func unionInPlace(_ other: HKQueryOptions)
mutating func intersectInPlace(_ other: HKQueryOptions)
mutating func exclusiveOrInPlace(_ other: HKQueryOptions)
func isSubsetOf(_ other: HKQueryOptions) -> Bool
func isDisjointWith(_ other: HKQueryOptions) -> Bool
func isSupersetOf(_ other: HKQueryOptions) -> Bool
mutating func subtractInPlace(_ other: HKQueryOptions)
func isStrictSupersetOf(_ other: HKQueryOptions) -> Bool
func isStrictSubsetOf(_ other: HKQueryOptions) -> Bool
}
extension HKQueryOptions {
func union(_ other: HKQueryOptions) -> HKQueryOptions
func intersection(_ other: HKQueryOptions) -> HKQueryOptions
func symmetricDifference(_ other: HKQueryOptions) -> HKQueryOptions
}
extension HKQueryOptions {
func contains(_ member: HKQueryOptions) -> Bool
mutating func insert(_ newMember: HKQueryOptions) -> (inserted: Bool, memberAfterInsert: HKQueryOptions)
mutating func remove(_ member: HKQueryOptions) -> HKQueryOptions?
mutating func update(with newMember: HKQueryOptions) -> HKQueryOptions?
}
extension HKQueryOptions {
convenience init()
mutating func formUnion(_ other: HKQueryOptions)
mutating func formIntersection(_ other: HKQueryOptions)
mutating func formSymmetricDifference(_ other: HKQueryOptions)
}
extension HKQueryOptions {
convenience init<S : Sequence where S.Iterator.Element == HKQueryOptions>(_ sequence: S)
convenience init(arrayLiteral arrayLiteral: HKQueryOptions...)
mutating func subtract(_ other: HKQueryOptions)
func isSubset(of other: HKQueryOptions) -> Bool
func isSuperset(of other: HKQueryOptions) -> Bool
func isDisjoint(with other: HKQueryOptions) -> Bool
func subtracting(_ other: HKQueryOptions) -> HKQueryOptions
var isEmpty: Bool { get }
func isStrictSuperset(of other: HKQueryOptions) -> Bool
func isStrictSubset(of other: HKQueryOptions) -> Bool
} | OptionSet |
Modified HKQueryOptions.strictEndDate
| Declaration | |
|---|---|
| From | static var StrictEndDate: HKQueryOptions { get } |
| To | static var strictEndDate: HKQueryOptions { get } |
Modified HKQueryOptions.strictStartDate
| Declaration | |
|---|---|
| From | static var StrictStartDate: HKQueryOptions { get } |
| To | static var strictStartDate: HKQueryOptions { get } |
Modified HKSample
| Declaration | |
|---|---|
| From | class HKSample : HKObject {
var sampleType: HKSampleType { get }
var startDate: NSDate { get }
var endDate: NSDate { get }
} |
| To | class HKSample : HKObject {
var sampleType: HKSampleType { get }
var startDate: Date { get }
var endDate: Date { get }
} |
Modified HKSample.endDate
| Declaration | |
|---|---|
| From | var endDate: NSDate { get } |
| To | var endDate: Date { get } |
Modified HKSample.startDate
| Declaration | |
|---|---|
| From | var startDate: NSDate { get } |
| To | var startDate: Date { get } |
Modified HKSampleQuery
| Declaration | Protocols | |
|---|---|---|
| From | class HKSampleQuery : HKQuery {
var limit: Int { get }
var sortDescriptors: [NSSortDescriptor]? { get }
init(sampleType sampleType: HKSampleType, predicate predicate: NSPredicate?, limit limit: Int, sortDescriptors sortDescriptors: [NSSortDescriptor]?, resultsHandler resultsHandler: (HKSampleQuery, [HKSample]?, NSError?) -> Void)
} | -- |
| To | class HKSampleQuery : HKQuery {
var limit: Int { get }
var sortDescriptors: [NSSortDescriptor]? { get }
init(sampleType sampleType: HKSampleType, predicate predicate: NSPredicate?, limit limit: Int, sortDescriptors sortDescriptors: [NSSortDescriptor]?, resultsHandler resultsHandler: @escaping (HKSampleQuery, [HKSample]?, Error?) -> Swift.Void)
class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
class func predicateForObjects(from source: HKSource) -> NSPredicate
class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
class func predicateForObject(with UUID: UUID) -> NSPredicate
class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
class func predicateForObjectsWithNoCorrelation() -> NSPredicate
class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKSampleQuery : CVarArg {
}
extension HKSampleQuery : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable |
| Declaration | |
|---|---|
| From | init(sampleType sampleType: HKSampleType, predicate predicate: NSPredicate?, limit limit: Int, sortDescriptors sortDescriptors: [NSSortDescriptor]?, resultsHandler resultsHandler: (HKSampleQuery, [HKSample]?, NSError?) -> Void) |
| To | init(sampleType sampleType: HKSampleType, predicate predicate: NSPredicate?, limit limit: Int, sortDescriptors sortDescriptors: [NSSortDescriptor]?, resultsHandler resultsHandler: @escaping (HKSampleQuery, [HKSample]?, Error?) -> Swift.Void) |
Modified HKSource
| Declaration | Protocols | |
|---|---|---|
| From | class HKSource : NSObject, NSSecureCoding, NSCopying {
var name: String { get }
var bundleIdentifier: String { get }
class func defaultSource() -> HKSource
init()
} | NSCopying, NSSecureCoding |
| To | class HKSource : NSObject, NSSecureCoding, NSCopying {
var name: String { get }
var bundleIdentifier: String { get }
class func `default`() -> HKSource
init()
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKSource : CVarArg {
}
extension HKSource : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding |
Modified HKSource.default() [class]
| Declaration | |
|---|---|
| From | class func defaultSource() -> HKSource |
| To | class func `default`() -> HKSource |
Modified HKSourceQuery
| Declaration | Protocols | |
|---|---|---|
| From | class HKSourceQuery : HKQuery {
init(sampleType sampleType: HKSampleType, samplePredicate objectPredicate: NSPredicate?, completionHandler completionHandler: (HKSourceQuery, Set<HKSource>?, NSError?) -> Void)
} | -- |
| To | class HKSourceQuery : HKQuery {
init(sampleType sampleType: HKSampleType, samplePredicate objectPredicate: NSPredicate?, completionHandler completionHandler: @escaping (HKSourceQuery, Set<HKSource>?, Error?) -> Swift.Void)
class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
class func predicateForObjects(from source: HKSource) -> NSPredicate
class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
class func predicateForObject(with UUID: UUID) -> NSPredicate
class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
class func predicateForObjectsWithNoCorrelation() -> NSPredicate
class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKSourceQuery : CVarArg {
}
extension HKSourceQuery : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable |
| Declaration | |
|---|---|
| From | init(sampleType sampleType: HKSampleType, samplePredicate objectPredicate: NSPredicate?, completionHandler completionHandler: (HKSourceQuery, Set<HKSource>?, NSError?) -> Void) |
| To | init(sampleType sampleType: HKSampleType, samplePredicate objectPredicate: NSPredicate?, completionHandler completionHandler: @escaping (HKSourceQuery, Set<HKSource>?, Error?) -> Swift.Void) |
Modified HKSourceRevision
| Declaration | Protocols | |
|---|---|---|
| From | class HKSourceRevision : NSObject, NSSecureCoding, NSCopying {
var source: HKSource { get }
var version: String? { get }
init(source source: HKSource, version version: String)
init()
} | NSCopying, NSSecureCoding |
| To | class HKSourceRevision : NSObject, NSSecureCoding, NSCopying {
var source: HKSource { get }
var version: String? { get }
init(source source: HKSource, version version: String?)
init()
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKSourceRevision : CVarArg {
}
extension HKSourceRevision : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding |
| Declaration | |
|---|---|
| From | init(source source: HKSource, version version: String) |
| To | init(source source: HKSource, version version: String?) |
Modified HKStatistics
| Declaration | Protocols | |
|---|---|---|
| From | class HKStatistics : NSObject, NSSecureCoding, NSCopying {
var quantityType: HKQuantityType { get }
var startDate: NSDate { get }
var endDate: NSDate { get }
var sources: [HKSource]? { get }
init()
func averageQuantityForSource(_ source: HKSource) -> HKQuantity?
func averageQuantity() -> HKQuantity?
func minimumQuantityForSource(_ source: HKSource) -> HKQuantity?
func minimumQuantity() -> HKQuantity?
func maximumQuantityForSource(_ source: HKSource) -> HKQuantity?
func maximumQuantity() -> HKQuantity?
func sumQuantityForSource(_ source: HKSource) -> HKQuantity?
func sumQuantity() -> HKQuantity?
} | NSCopying, NSSecureCoding |
| To | class HKStatistics : NSObject, NSSecureCoding, NSCopying {
var quantityType: HKQuantityType { get }
var startDate: Date { get }
var endDate: Date { get }
var sources: [HKSource]? { get }
init()
func averageQuantity(for source: HKSource) -> HKQuantity?
func averageQuantity() -> HKQuantity?
func minimumQuantity(for source: HKSource) -> HKQuantity?
func minimumQuantity() -> HKQuantity?
func maximumQuantity(for source: HKSource) -> HKQuantity?
func maximumQuantity() -> HKQuantity?
func sumQuantity(for source: HKSource) -> HKQuantity?
func sumQuantity() -> HKQuantity?
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKStatistics : CVarArg {
}
extension HKStatistics : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding |
| Declaration | |
|---|---|
| From | func averageQuantityForSource(_ source: HKSource) -> HKQuantity? |
| To | func averageQuantity(for source: HKSource) -> HKQuantity? |
Modified HKStatistics.endDate
| Declaration | |
|---|---|
| From | var endDate: NSDate { get } |
| To | var endDate: Date { get } |
| Declaration | |
|---|---|
| From | func maximumQuantityForSource(_ source: HKSource) -> HKQuantity? |
| To | func maximumQuantity(for source: HKSource) -> HKQuantity? |
| Declaration | |
|---|---|
| From | func minimumQuantityForSource(_ source: HKSource) -> HKQuantity? |
| To | func minimumQuantity(for source: HKSource) -> HKQuantity? |
Modified HKStatistics.startDate
| Declaration | |
|---|---|
| From | var startDate: NSDate { get } |
| To | var startDate: Date { get } |
| Declaration | |
|---|---|
| From | func sumQuantityForSource(_ source: HKSource) -> HKQuantity? |
| To | func sumQuantity(for source: HKSource) -> HKQuantity? |
Modified HKStatisticsCollection
| Declaration | Protocols | |
|---|---|---|
| From | class HKStatisticsCollection : NSObject {
init()
func statisticsForDate(_ date: NSDate) -> HKStatistics?
func enumerateStatisticsFromDate(_ startDate: NSDate, toDate endDate: NSDate, withBlock block: (HKStatistics, UnsafeMutablePointer<ObjCBool>) -> Void)
func statistics() -> [HKStatistics]
func sources() -> Set<HKSource>
} | -- |
| To | class HKStatisticsCollection : NSObject {
init()
func statistics(for date: Date) -> HKStatistics?
func enumerateStatistics(from startDate: Date, to endDate: Date, with block: @escaping (HKStatistics, UnsafeMutablePointer<ObjCBool>) -> Swift.Void)
func statistics() -> [HKStatistics]
func sources() -> Set<HKSource>
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKStatisticsCollection : CVarArg {
}
extension HKStatisticsCollection : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable |
| Declaration | |
|---|---|
| From | func enumerateStatisticsFromDate(_ startDate: NSDate, toDate endDate: NSDate, withBlock block: (HKStatistics, UnsafeMutablePointer<ObjCBool>) -> Void) |
| To | func enumerateStatistics(from startDate: Date, to endDate: Date, with block: @escaping (HKStatistics, UnsafeMutablePointer<ObjCBool>) -> Swift.Void) |
| Declaration | |
|---|---|
| From | func statisticsForDate(_ date: NSDate) -> HKStatistics? |
| To | func statistics(for date: Date) -> HKStatistics? |
Modified HKStatisticsCollectionQuery
| Declaration | Protocols | |
|---|---|---|
| From | class HKStatisticsCollectionQuery : HKQuery {
var anchorDate: NSDate { get }
var options: HKStatisticsOptions { get }
@NSCopying var intervalComponents: NSDateComponents { get }
var initialResultsHandler: ((HKStatisticsCollectionQuery, HKStatisticsCollection?, NSError?) -> Void)?
var statisticsUpdateHandler: ((HKStatisticsCollectionQuery, HKStatistics?, HKStatisticsCollection?, NSError?) -> Void)?
init(quantityType quantityType: HKQuantityType, quantitySamplePredicate quantitySamplePredicate: NSPredicate?, options options: HKStatisticsOptions, anchorDate anchorDate: NSDate, intervalComponents intervalComponents: NSDateComponents)
} | -- |
| To | class HKStatisticsCollectionQuery : HKQuery {
var anchorDate: Date { get }
var options: HKStatisticsOptions { get }
var intervalComponents: DateComponents { get }
var initialResultsHandler: ((HKStatisticsCollectionQuery, HKStatisticsCollection?, Error?) -> Swift.Void)?
var statisticsUpdateHandler: ((HKStatisticsCollectionQuery, HKStatistics?, HKStatisticsCollection?, Error?) -> Swift.Void)?
init(quantityType quantityType: HKQuantityType, quantitySamplePredicate quantitySamplePredicate: NSPredicate?, options options: HKStatisticsOptions = [], anchorDate anchorDate: Date, intervalComponents intervalComponents: DateComponents)
class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
class func predicateForObjects(from source: HKSource) -> NSPredicate
class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
class func predicateForObject(with UUID: UUID) -> NSPredicate
class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
class func predicateForObjectsWithNoCorrelation() -> NSPredicate
class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKStatisticsCollectionQuery : CVarArg {
}
extension HKStatisticsCollectionQuery : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable |
| Declaration | |
|---|---|
| From | var anchorDate: NSDate { get } |
| To | var anchorDate: Date { get } |
| Declaration | |
|---|---|
| From | init(quantityType quantityType: HKQuantityType, quantitySamplePredicate quantitySamplePredicate: NSPredicate?, options options: HKStatisticsOptions, anchorDate anchorDate: NSDate, intervalComponents intervalComponents: NSDateComponents) |
| To | init(quantityType quantityType: HKQuantityType, quantitySamplePredicate quantitySamplePredicate: NSPredicate?, options options: HKStatisticsOptions = [], anchorDate anchorDate: Date, intervalComponents intervalComponents: DateComponents) |
| Declaration | |
|---|---|
| From | var initialResultsHandler: ((HKStatisticsCollectionQuery, HKStatisticsCollection?, NSError?) -> Void)? |
| To | var initialResultsHandler: ((HKStatisticsCollectionQuery, HKStatisticsCollection?, Error?) -> Swift.Void)? |
| Declaration | |
|---|---|
| From | @NSCopying var intervalComponents: NSDateComponents { get } |
| To | var intervalComponents: DateComponents { get } |
| Declaration | |
|---|---|
| From | var statisticsUpdateHandler: ((HKStatisticsCollectionQuery, HKStatistics?, HKStatisticsCollection?, NSError?) -> Void)? |
| To | var statisticsUpdateHandler: ((HKStatisticsCollectionQuery, HKStatistics?, HKStatisticsCollection?, Error?) -> Swift.Void)? |
Modified HKStatisticsOptions [struct]
| Declaration | Protocols | |
|---|---|---|
| From | struct HKStatisticsOptions : OptionSetType {
init(rawValue rawValue: UInt)
static var None: HKStatisticsOptions { get }
static var SeparateBySource: HKStatisticsOptions { get }
static var DiscreteAverage: HKStatisticsOptions { get }
static var DiscreteMin: HKStatisticsOptions { get }
static var DiscreteMax: HKStatisticsOptions { get }
static var CumulativeSum: HKStatisticsOptions { get }
} | OptionSetType |
| To | struct HKStatisticsOptions : OptionSet {
init(rawValue rawValue: UInt)
static var none: HKStatisticsOptions { get }
static var separateBySource: HKStatisticsOptions { get }
static var discreteAverage: HKStatisticsOptions { get }
static var discreteMin: HKStatisticsOptions { get }
static var discreteMax: HKStatisticsOptions { get }
static var cumulativeSum: HKStatisticsOptions { get }
func intersect(_ other: HKStatisticsOptions) -> HKStatisticsOptions
func exclusiveOr(_ other: HKStatisticsOptions) -> HKStatisticsOptions
mutating func unionInPlace(_ other: HKStatisticsOptions)
mutating func intersectInPlace(_ other: HKStatisticsOptions)
mutating func exclusiveOrInPlace(_ other: HKStatisticsOptions)
func isSubsetOf(_ other: HKStatisticsOptions) -> Bool
func isDisjointWith(_ other: HKStatisticsOptions) -> Bool
func isSupersetOf(_ other: HKStatisticsOptions) -> Bool
mutating func subtractInPlace(_ other: HKStatisticsOptions)
func isStrictSupersetOf(_ other: HKStatisticsOptions) -> Bool
func isStrictSubsetOf(_ other: HKStatisticsOptions) -> Bool
}
extension HKStatisticsOptions {
func union(_ other: HKStatisticsOptions) -> HKStatisticsOptions
func intersection(_ other: HKStatisticsOptions) -> HKStatisticsOptions
func symmetricDifference(_ other: HKStatisticsOptions) -> HKStatisticsOptions
}
extension HKStatisticsOptions {
func contains(_ member: HKStatisticsOptions) -> Bool
mutating func insert(_ newMember: HKStatisticsOptions) -> (inserted: Bool, memberAfterInsert: HKStatisticsOptions)
mutating func remove(_ member: HKStatisticsOptions) -> HKStatisticsOptions?
mutating func update(with newMember: HKStatisticsOptions) -> HKStatisticsOptions?
}
extension HKStatisticsOptions {
convenience init()
mutating func formUnion(_ other: HKStatisticsOptions)
mutating func formIntersection(_ other: HKStatisticsOptions)
mutating func formSymmetricDifference(_ other: HKStatisticsOptions)
}
extension HKStatisticsOptions {
convenience init<S : Sequence where S.Iterator.Element == HKStatisticsOptions>(_ sequence: S)
convenience init(arrayLiteral arrayLiteral: HKStatisticsOptions...)
mutating func subtract(_ other: HKStatisticsOptions)
func isSubset(of other: HKStatisticsOptions) -> Bool
func isSuperset(of other: HKStatisticsOptions) -> Bool
func isDisjoint(with other: HKStatisticsOptions) -> Bool
func subtracting(_ other: HKStatisticsOptions) -> HKStatisticsOptions
var isEmpty: Bool { get }
func isStrictSuperset(of other: HKStatisticsOptions) -> Bool
func isStrictSubset(of other: HKStatisticsOptions) -> Bool
} | OptionSet |
Modified HKStatisticsOptions.cumulativeSum
| Declaration | |
|---|---|
| From | static var CumulativeSum: HKStatisticsOptions { get } |
| To | static var cumulativeSum: HKStatisticsOptions { get } |
Modified HKStatisticsOptions.discreteAverage
| Declaration | |
|---|---|
| From | static var DiscreteAverage: HKStatisticsOptions { get } |
| To | static var discreteAverage: HKStatisticsOptions { get } |
Modified HKStatisticsOptions.discreteMax
| Declaration | |
|---|---|
| From | static var DiscreteMax: HKStatisticsOptions { get } |
| To | static var discreteMax: HKStatisticsOptions { get } |
Modified HKStatisticsOptions.discreteMin
| Declaration | |
|---|---|
| From | static var DiscreteMin: HKStatisticsOptions { get } |
| To | static var discreteMin: HKStatisticsOptions { get } |
Modified HKStatisticsOptions.separateBySource
| Declaration | |
|---|---|
| From | static var SeparateBySource: HKStatisticsOptions { get } |
| To | static var separateBySource: HKStatisticsOptions { get } |
Modified HKStatisticsQuery
| Declaration | Protocols | |
|---|---|---|
| From | class HKStatisticsQuery : HKQuery {
init(quantityType quantityType: HKQuantityType, quantitySamplePredicate quantitySamplePredicate: NSPredicate?, options options: HKStatisticsOptions, completionHandler handler: (HKStatisticsQuery, HKStatistics?, NSError?) -> Void)
} | -- |
| To | class HKStatisticsQuery : HKQuery {
init(quantityType quantityType: HKQuantityType, quantitySamplePredicate quantitySamplePredicate: NSPredicate?, options options: HKStatisticsOptions = [], completionHandler handler: @escaping (HKStatisticsQuery, HKStatistics?, Error?) -> Swift.Void)
class func predicateForActivitySummary(with dateComponents: DateComponents) -> NSPredicate
class func predicate(forActivitySummariesBetweenStart startDateComponents: DateComponents, end endDateComponents: DateComponents) -> NSPredicate
class func predicateForWorkouts(with workoutActivityType: HKWorkoutActivityType) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, duration duration: TimeInterval) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalDistance totalDistance: HKQuantity) -> NSPredicate
class func predicateForWorkouts(with operatorType: NSComparisonPredicate.Operator, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity) -> NSPredicate
class func predicateForCategorySamples(with operatorType: NSComparisonPredicate.Operator, value value: Int) -> NSPredicate
class func predicateForQuantitySamples(with operatorType: NSComparisonPredicate.Operator, quantity quantity: HKQuantity) -> NSPredicate
class func predicateForSamples(withStart startDate: Date?, end endDate: Date?, options options: HKQueryOptions = []) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, allowedValues allowedValues: [Any]) -> NSPredicate
class func predicateForObjects(withMetadataKey key: String, operatorType operatorType: NSComparisonPredicate.Operator, value value: Any) -> NSPredicate
class func predicateForObjects(from source: HKSource) -> NSPredicate
class func predicateForObjects(from sources: Set<HKSource>) -> NSPredicate
class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate
class func predicateForObjects(from devices: Set<HKDevice>) -> NSPredicate
class func predicateForObjects(withDeviceProperty key: String, allowedValues allowedValues: Set<String>) -> NSPredicate
class func predicateForObject(with UUID: UUID) -> NSPredicate
class func predicateForObjects(with UUIDs: Set<UUID>) -> NSPredicate
class func predicateForObjectsWithNoCorrelation() -> NSPredicate
class func predicateForObjects(from workout: HKWorkout) -> NSPredicate
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKStatisticsQuery : CVarArg {
}
extension HKStatisticsQuery : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable |
| Declaration | |
|---|---|
| From | init(quantityType quantityType: HKQuantityType, quantitySamplePredicate quantitySamplePredicate: NSPredicate?, options options: HKStatisticsOptions, completionHandler handler: (HKStatisticsQuery, HKStatistics?, NSError?) -> Void) |
| To | init(quantityType quantityType: HKQuantityType, quantitySamplePredicate quantitySamplePredicate: NSPredicate?, options options: HKStatisticsOptions = [], completionHandler handler: @escaping (HKStatisticsQuery, HKStatistics?, Error?) -> Swift.Void) |
Modified HKUnit
| Declaration | Protocols | |
|---|---|---|
| From | class HKUnit : NSObject, NSSecureCoding, NSCopying {
var unitString: String { get }
init()
convenience init(fromString string: String)
class func unitFromString(_ string: String) -> Self
convenience init(fromMassFormatterUnit massFormatterUnit: NSMassFormatterUnit)
class func unitFromMassFormatterUnit(_ massFormatterUnit: NSMassFormatterUnit) -> Self
class func massFormatterUnitFromUnit(_ unit: HKUnit) -> NSMassFormatterUnit
convenience init(fromLengthFormatterUnit lengthFormatterUnit: NSLengthFormatterUnit)
class func unitFromLengthFormatterUnit(_ lengthFormatterUnit: NSLengthFormatterUnit) -> Self
class func lengthFormatterUnitFromUnit(_ unit: HKUnit) -> NSLengthFormatterUnit
convenience init(fromEnergyFormatterUnit energyFormatterUnit: NSEnergyFormatterUnit)
class func unitFromEnergyFormatterUnit(_ energyFormatterUnit: NSEnergyFormatterUnit) -> Self
class func energyFormatterUnitFromUnit(_ unit: HKUnit) -> NSEnergyFormatterUnit
func isNull() -> Bool
}
extension HKUnit {
class func gramUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
class func gramUnit() -> Self
class func ounceUnit() -> Self
class func poundUnit() -> Self
class func stoneUnit() -> Self
class func moleUnitWithMetricPrefix(_ prefix: HKMetricPrefix, molarMass gramsPerMole: Double) -> Self
class func moleUnitWithMolarMass(_ gramsPerMole: Double) -> Self
}
extension HKUnit {
class func meterUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
class func meterUnit() -> Self
class func inchUnit() -> Self
class func footUnit() -> Self
class func yardUnit() -> Self
class func mileUnit() -> Self
}
extension HKUnit {
class func literUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
class func literUnit() -> Self
class func fluidOunceUSUnit() -> Self
class func fluidOunceImperialUnit() -> Self
class func pintUSUnit() -> Self
class func pintImperialUnit() -> Self
class func cupUSUnit() -> Self
class func cupImperialUnit() -> Self
}
extension HKUnit {
class func pascalUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
class func pascalUnit() -> Self
class func millimeterOfMercuryUnit() -> Self
class func centimeterOfWaterUnit() -> Self
class func atmosphereUnit() -> Self
}
extension HKUnit {
class func secondUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
class func secondUnit() -> Self
class func minuteUnit() -> Self
class func hourUnit() -> Self
class func dayUnit() -> Self
}
extension HKUnit {
class func jouleUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
class func jouleUnit() -> Self
class func calorieUnit() -> Self
class func kilocalorieUnit() -> Self
}
extension HKUnit {
class func degreeCelsiusUnit() -> Self
class func degreeFahrenheitUnit() -> Self
class func kelvinUnit() -> Self
}
extension HKUnit {
class func siemenUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self
class func siemenUnit() -> Self
}
extension HKUnit {
class func countUnit() -> Self
class func percentUnit() -> Self
}
extension HKUnit {
func unitMultipliedByUnit(_ unit: HKUnit) -> HKUnit
func unitDividedByUnit(_ unit: HKUnit) -> HKUnit
func unitRaisedToPower(_ power: Int) -> HKUnit
func reciprocalUnit() -> HKUnit
} | NSCopying, NSSecureCoding |
| To | class HKUnit : NSObject, NSSecureCoding, NSCopying {
var unitString: String { get }
init()
convenience init(from string: String)
class func fromString(_ string: String) -> Self
convenience init(from massFormatterUnit: MassFormatter.Unit)
class func fromMassFormatterUnit(_ massFormatterUnit: MassFormatter.Unit) -> Self
class func massFormatterUnit(from unit: HKUnit) -> MassFormatter.Unit
convenience init(from lengthFormatterUnit: LengthFormatter.Unit)
class func fromLengthFormatterUnit(_ lengthFormatterUnit: LengthFormatter.Unit) -> Self
class func lengthFormatterUnit(from unit: HKUnit) -> LengthFormatter.Unit
convenience init(from energyFormatterUnit: EnergyFormatter.Unit)
class func fromEnergyFormatterUnit(_ energyFormatterUnit: EnergyFormatter.Unit) -> Self
class func energyFormatterUnit(from unit: HKUnit) -> EnergyFormatter.Unit
func isNull() -> Bool
func unitMultiplied(by unit: HKUnit) -> HKUnit
func unitDivided(by unit: HKUnit) -> HKUnit
func unitRaised(toPower power: Int) -> HKUnit
func reciprocal() -> HKUnit
class func count() -> Self
class func percent() -> Self
class func siemenUnit(with prefix: HKMetricPrefix) -> Self
class func siemen() -> Self
class func degreeCelsius() -> Self
class func degreeFahrenheit() -> Self
class func kelvin() -> Self
class func jouleUnit(with prefix: HKMetricPrefix) -> Self
class func joule() -> Self
class func calorie() -> Self
class func kilocalorie() -> Self
class func secondUnit(with prefix: HKMetricPrefix) -> Self
class func second() -> Self
class func minute() -> Self
class func hour() -> Self
class func day() -> Self
class func pascalUnit(with prefix: HKMetricPrefix) -> Self
class func pascal() -> Self
class func millimeterOfMercury() -> Self
class func centimeterOfWater() -> Self
class func atmosphere() -> Self
class func literUnit(with prefix: HKMetricPrefix) -> Self
class func liter() -> Self
class func fluidOunceUS() -> Self
class func fluidOunceImperial() -> Self
class func pintUS() -> Self
class func pintImperial() -> Self
class func cupUS() -> Self
class func cupImperial() -> Self
class func meterUnit(with prefix: HKMetricPrefix) -> Self
class func meter() -> Self
class func inch() -> Self
class func foot() -> Self
class func yard() -> Self
class func mile() -> Self
class func gramUnit(with prefix: HKMetricPrefix) -> Self
class func gram() -> Self
class func ounce() -> Self
class func pound() -> Self
class func stone() -> Self
class func moleUnit(with prefix: HKMetricPrefix, molarMass gramsPerMole: Double) -> Self
class func moleUnit(withMolarMass gramsPerMole: Double) -> Self
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKUnit : CVarArg {
}
extension HKUnit : Equatable, Hashable {
var hashValue: Int { get }
}
extension HKUnit {
class func gramUnit(with prefix: HKMetricPrefix) -> Self
class func gram() -> Self
class func ounce() -> Self
class func pound() -> Self
class func stone() -> Self
class func moleUnit(with prefix: HKMetricPrefix, molarMass gramsPerMole: Double) -> Self
class func moleUnit(withMolarMass gramsPerMole: Double) -> Self
}
extension HKUnit {
class func meterUnit(with prefix: HKMetricPrefix) -> Self
class func meter() -> Self
class func inch() -> Self
class func foot() -> Self
class func yard() -> Self
class func mile() -> Self
}
extension HKUnit {
class func literUnit(with prefix: HKMetricPrefix) -> Self
class func liter() -> Self
class func fluidOunceUS() -> Self
class func fluidOunceImperial() -> Self
class func pintUS() -> Self
class func pintImperial() -> Self
class func cupUS() -> Self
class func cupImperial() -> Self
}
extension HKUnit {
class func pascalUnit(with prefix: HKMetricPrefix) -> Self
class func pascal() -> Self
class func millimeterOfMercury() -> Self
class func centimeterOfWater() -> Self
class func atmosphere() -> Self
}
extension HKUnit {
class func secondUnit(with prefix: HKMetricPrefix) -> Self
class func second() -> Self
class func minute() -> Self
class func hour() -> Self
class func day() -> Self
}
extension HKUnit {
class func jouleUnit(with prefix: HKMetricPrefix) -> Self
class func joule() -> Self
class func calorie() -> Self
class func kilocalorie() -> Self
}
extension HKUnit {
class func degreeCelsius() -> Self
class func degreeFahrenheit() -> Self
class func kelvin() -> Self
}
extension HKUnit {
class func siemenUnit(with prefix: HKMetricPrefix) -> Self
class func siemen() -> Self
}
extension HKUnit {
class func count() -> Self
class func percent() -> Self
}
extension HKUnit {
func unitMultiplied(by unit: HKUnit) -> HKUnit
func unitDivided(by unit: HKUnit) -> HKUnit
func unitRaised(toPower power: Int) -> HKUnit
func reciprocal() -> HKUnit
} | CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding |
Modified HKUnit.atmosphere() -> Self [class]
| Declaration | |
|---|---|
| From | class func atmosphereUnit() -> Self |
| To | class func atmosphere() -> Self |
Modified HKUnit.calorie() -> Self [class]
| Declaration | |
|---|---|
| From | class func calorieUnit() -> Self |
| To | class func calorie() -> Self |
| Declaration | |
|---|---|
| From | class func centimeterOfWaterUnit() -> Self |
| To | class func centimeterOfWater() -> Self |
Modified HKUnit.count() -> Self [class]
| Declaration | |
|---|---|
| From | class func countUnit() -> Self |
| To | class func count() -> Self |
Modified HKUnit.cupImperial() -> Self [class]
| Declaration | |
|---|---|
| From | class func cupImperialUnit() -> Self |
| To | class func cupImperial() -> Self |
Modified HKUnit.cupUS() -> Self [class]
| Declaration | |
|---|---|
| From | class func cupUSUnit() -> Self |
| To | class func cupUS() -> Self |
Modified HKUnit.day() -> Self [class]
| Declaration | |
|---|---|
| From | class func dayUnit() -> Self |
| To | class func day() -> Self |
| Declaration | |
|---|---|
| From | class func degreeCelsiusUnit() -> Self |
| To | class func degreeCelsius() -> Self |
| Declaration | |
|---|---|
| From | class func degreeFahrenheitUnit() -> Self |
| To | class func degreeFahrenheit() -> Self |
| Declaration | |
|---|---|
| From | class func energyFormatterUnitFromUnit(_ unit: HKUnit) -> NSEnergyFormatterUnit |
| To | class func energyFormatterUnit(from unit: HKUnit) -> EnergyFormatter.Unit |
| Declaration | |
|---|---|
| From | class func fluidOunceImperialUnit() -> Self |
| To | class func fluidOunceImperial() -> Self |
| Declaration | |
|---|---|
| From | class func fluidOunceUSUnit() -> Self |
| To | class func fluidOunceUS() -> Self |
Modified HKUnit.foot() -> Self [class]
| Declaration | |
|---|---|
| From | class func footUnit() -> Self |
| To | class func foot() -> Self |
Modified HKUnit.gram() -> Self [class]
| Declaration | |
|---|---|
| From | class func gramUnit() -> Self |
| To | class func gram() -> Self |
| Declaration | |
|---|---|
| From | class func gramUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self |
| To | class func gramUnit(with prefix: HKMetricPrefix) -> Self |
Modified HKUnit.hour() -> Self [class]
| Declaration | |
|---|---|
| From | class func hourUnit() -> Self |
| To | class func hour() -> Self |
Modified HKUnit.inch() -> Self [class]
| Declaration | |
|---|---|
| From | class func inchUnit() -> Self |
| To | class func inch() -> Self |
| Declaration | |
|---|---|
| From | convenience init(fromLengthFormatterUnit lengthFormatterUnit: NSLengthFormatterUnit) |
| To | convenience init(from lengthFormatterUnit: LengthFormatter.Unit) |
| Declaration | |
|---|---|
| From | convenience init(fromMassFormatterUnit massFormatterUnit: NSMassFormatterUnit) |
| To | convenience init(from massFormatterUnit: MassFormatter.Unit) |
| Declaration | |
|---|---|
| From | convenience init(fromEnergyFormatterUnit energyFormatterUnit: NSEnergyFormatterUnit) |
| To | convenience init(from energyFormatterUnit: EnergyFormatter.Unit) |
Modified HKUnit.init(from: String)
| Declaration | |
|---|---|
| From | convenience init(fromString string: String) |
| To | convenience init(from string: String) |
Modified HKUnit.joule() -> Self [class]
| Declaration | |
|---|---|
| From | class func jouleUnit() -> Self |
| To | class func joule() -> Self |
| Declaration | |
|---|---|
| From | class func jouleUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self |
| To | class func jouleUnit(with prefix: HKMetricPrefix) -> Self |
Modified HKUnit.kelvin() -> Self [class]
| Declaration | |
|---|---|
| From | class func kelvinUnit() -> Self |
| To | class func kelvin() -> Self |
Modified HKUnit.kilocalorie() -> Self [class]
| Declaration | |
|---|---|
| From | class func kilocalorieUnit() -> Self |
| To | class func kilocalorie() -> Self |
| Declaration | |
|---|---|
| From | class func lengthFormatterUnitFromUnit(_ unit: HKUnit) -> NSLengthFormatterUnit |
| To | class func lengthFormatterUnit(from unit: HKUnit) -> LengthFormatter.Unit |
Modified HKUnit.liter() -> Self [class]
| Declaration | |
|---|---|
| From | class func literUnit() -> Self |
| To | class func liter() -> Self |
| Declaration | |
|---|---|
| From | class func literUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self |
| To | class func literUnit(with prefix: HKMetricPrefix) -> Self |
| Declaration | |
|---|---|
| From | class func massFormatterUnitFromUnit(_ unit: HKUnit) -> NSMassFormatterUnit |
| To | class func massFormatterUnit(from unit: HKUnit) -> MassFormatter.Unit |
Modified HKUnit.meter() -> Self [class]
| Declaration | |
|---|---|
| From | class func meterUnit() -> Self |
| To | class func meter() -> Self |
| Declaration | |
|---|---|
| From | class func meterUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self |
| To | class func meterUnit(with prefix: HKMetricPrefix) -> Self |
Modified HKUnit.mile() -> Self [class]
| Declaration | |
|---|---|
| From | class func mileUnit() -> Self |
| To | class func mile() -> Self |
| Declaration | |
|---|---|
| From | class func millimeterOfMercuryUnit() -> Self |
| To | class func millimeterOfMercury() -> Self |
Modified HKUnit.minute() -> Self [class]
| Declaration | |
|---|---|
| From | class func minuteUnit() -> Self |
| To | class func minute() -> Self |
| Declaration | |
|---|---|
| From | class func moleUnitWithMetricPrefix(_ prefix: HKMetricPrefix, molarMass gramsPerMole: Double) -> Self |
| To | class func moleUnit(with prefix: HKMetricPrefix, molarMass gramsPerMole: Double) -> Self |
| Declaration | |
|---|---|
| From | class func moleUnitWithMolarMass(_ gramsPerMole: Double) -> Self |
| To | class func moleUnit(withMolarMass gramsPerMole: Double) -> Self |
Modified HKUnit.ounce() -> Self [class]
| Declaration | |
|---|---|
| From | class func ounceUnit() -> Self |
| To | class func ounce() -> Self |
Modified HKUnit.pascal() -> Self [class]
| Declaration | |
|---|---|
| From | class func pascalUnit() -> Self |
| To | class func pascal() -> Self |
| Declaration | |
|---|---|
| From | class func pascalUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self |
| To | class func pascalUnit(with prefix: HKMetricPrefix) -> Self |
Modified HKUnit.percent() -> Self [class]
| Declaration | |
|---|---|
| From | class func percentUnit() -> Self |
| To | class func percent() -> Self |
| Declaration | |
|---|---|
| From | class func pintImperialUnit() -> Self |
| To | class func pintImperial() -> Self |
Modified HKUnit.pintUS() -> Self [class]
| Declaration | |
|---|---|
| From | class func pintUSUnit() -> Self |
| To | class func pintUS() -> Self |
Modified HKUnit.pound() -> Self [class]
| Declaration | |
|---|---|
| From | class func poundUnit() -> Self |
| To | class func pound() -> Self |
Modified HKUnit.reciprocal() -> HKUnit
| Declaration | |
|---|---|
| From | func reciprocalUnit() -> HKUnit |
| To | func reciprocal() -> HKUnit |
Modified HKUnit.second() -> Self [class]
| Declaration | |
|---|---|
| From | class func secondUnit() -> Self |
| To | class func second() -> Self |
| Declaration | |
|---|---|
| From | class func secondUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self |
| To | class func secondUnit(with prefix: HKMetricPrefix) -> Self |
Modified HKUnit.siemen() -> Self [class]
| Declaration | |
|---|---|
| From | class func siemenUnit() -> Self |
| To | class func siemen() -> Self |
| Declaration | |
|---|---|
| From | class func siemenUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self |
| To | class func siemenUnit(with prefix: HKMetricPrefix) -> Self |
Modified HKUnit.stone() -> Self [class]
| Declaration | |
|---|---|
| From | class func stoneUnit() -> Self |
| To | class func stone() -> Self |
| Declaration | |
|---|---|
| From | func unitDividedByUnit(_ unit: HKUnit) -> HKUnit |
| To | func unitDivided(by unit: HKUnit) -> HKUnit |
| Declaration | |
|---|---|
| From | func unitMultipliedByUnit(_ unit: HKUnit) -> HKUnit |
| To | func unitMultiplied(by unit: HKUnit) -> HKUnit |
| Declaration | |
|---|---|
| From | func unitRaisedToPower(_ power: Int) -> HKUnit |
| To | func unitRaised(toPower power: Int) -> HKUnit |
Modified HKUnit.yard() -> Self [class]
| Declaration | |
|---|---|
| From | class func yardUnit() -> Self |
| To | class func yard() -> Self |
Modified HKUpdateFrequency [enum]
| Declaration | |
|---|---|
| From | enum HKUpdateFrequency : Int {
case Immediate
case Hourly
case Daily
case Weekly
} |
| To | enum HKUpdateFrequency : Int {
case immediate
case hourly
case daily
case weekly
} |
Modified HKUpdateFrequency.daily
| Declaration | |
|---|---|
| From | case Daily |
| To | case daily |
Modified HKUpdateFrequency.hourly
| Declaration | |
|---|---|
| From | case Hourly |
| To | case hourly |
Modified HKUpdateFrequency.immediate
| Declaration | |
|---|---|
| From | case Immediate |
| To | case immediate |
Modified HKUpdateFrequency.weekly
| Declaration | |
|---|---|
| From | case Weekly |
| To | case weekly |
Modified HKWorkout
| Declaration | |
|---|---|
| From | class HKWorkout : HKSample {
var workoutActivityType: HKWorkoutActivityType { get }
var workoutEvents: [HKWorkoutEvent]? { get }
var duration: NSTimeInterval { get }
var totalEnergyBurned: HKQuantity? { get }
var totalDistance: HKQuantity? { get }
convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate)
class func workoutWithActivityType(_ workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate) -> Self
convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : AnyObject]?)
class func workoutWithActivityType(_ workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : AnyObject]?) -> Self
convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : AnyObject]?)
class func workoutWithActivityType(_ workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : AnyObject]?) -> Self
convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, duration duration: NSTimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : AnyObject]?)
class func workoutWithActivityType(_ workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, duration duration: NSTimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : AnyObject]?) -> Self
convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, duration duration: NSTimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : AnyObject]?)
class func workoutWithActivityType(_ workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, duration duration: NSTimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : AnyObject]?) -> Self
} |
| To | class HKWorkout : HKSample {
var workoutActivityType: HKWorkoutActivityType { get }
var workoutEvents: [HKWorkoutEvent]? { get }
var duration: TimeInterval { get }
var totalEnergyBurned: HKQuantity? { get }
var totalDistance: HKQuantity? { get }
var totalSwimmingStrokeCount: HKQuantity? { get }
convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date)
class func withActivityType(_ workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date) -> Self
convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : Any]?)
class func withActivityType(_ workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : Any]?) -> Self
convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : Any]?)
class func withActivityType(_ workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : Any]?) -> Self
convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, duration duration: TimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : Any]?)
class func withActivityType(_ workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, duration duration: TimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : Any]?) -> Self
convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, duration duration: TimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : Any]?)
class func withActivityType(_ workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, duration duration: TimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : Any]?) -> Self
convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity?, device device: HKDevice?, metadata metadata: [String : Any]?)
class func withActivityType(_ workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, totalSwimmingStrokeCount totalSwimmingStrokeCount: HKQuantity?, device device: HKDevice?, metadata metadata: [String : Any]?) -> Self
} |
Modified HKWorkout.duration
| Declaration | |
|---|---|
| From | var duration: NSTimeInterval { get } |
| To | var duration: TimeInterval { get } |
| Declaration | |
|---|---|
| From | convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate) |
| To | convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date) |
| Declaration | |
|---|---|
| From | convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, duration duration: NSTimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : AnyObject]?) |
| To | convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, duration duration: TimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : Any]?) |
| Declaration | |
|---|---|
| From | convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, duration duration: NSTimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : AnyObject]?) |
| To | convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, duration duration: TimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : Any]?) |
| Declaration | |
|---|---|
| From | convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : AnyObject]?) |
| To | convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, device device: HKDevice?, metadata metadata: [String : Any]?) |
| Declaration | |
|---|---|
| From | convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : AnyObject]?) |
| To | convenience init(activityType workoutActivityType: HKWorkoutActivityType, start startDate: Date, end endDate: Date, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : Any]?) |
Modified HKWorkoutActivityType [enum]
| Declaration | |
|---|---|
| From | enum HKWorkoutActivityType : UInt {
case AmericanFootball
case Archery
case AustralianFootball
case Badminton
case Baseball
case Basketball
case Bowling
case Boxing
case Climbing
case Cricket
case CrossTraining
case Curling
case Cycling
case Dance
case DanceInspiredTraining
case Elliptical
case EquestrianSports
case Fencing
case Fishing
case FunctionalStrengthTraining
case Golf
case Gymnastics
case Handball
case Hiking
case Hockey
case Hunting
case Lacrosse
case MartialArts
case MindAndBody
case MixedMetabolicCardioTraining
case PaddleSports
case Play
case PreparationAndRecovery
case Racquetball
case Rowing
case Rugby
case Running
case Sailing
case SkatingSports
case SnowSports
case Soccer
case Softball
case Squash
case StairClimbing
case SurfingSports
case Swimming
case TableTennis
case Tennis
case TrackAndField
case TraditionalStrengthTraining
case Volleyball
case Walking
case WaterFitness
case WaterPolo
case WaterSports
case Wrestling
case Yoga
case Other
} |
| To | enum HKWorkoutActivityType : UInt {
case americanFootball
case archery
case australianFootball
case badminton
case baseball
case basketball
case bowling
case boxing
case climbing
case cricket
case crossTraining
case curling
case cycling
case dance
case danceInspiredTraining
case elliptical
case equestrianSports
case fencing
case fishing
case functionalStrengthTraining
case golf
case gymnastics
case handball
case hiking
case hockey
case hunting
case lacrosse
case martialArts
case mindAndBody
case mixedMetabolicCardioTraining
case paddleSports
case play
case preparationAndRecovery
case racquetball
case rowing
case rugby
case running
case sailing
case skatingSports
case snowSports
case soccer
case softball
case squash
case stairClimbing
case surfingSports
case swimming
case tableTennis
case tennis
case trackAndField
case traditionalStrengthTraining
case volleyball
case walking
case waterFitness
case waterPolo
case waterSports
case wrestling
case yoga
case barre
case coreTraining
case crossCountrySkiing
case downhillSkiing
case flexibility
case highIntensityIntervalTraining
case jumpRope
case kickboxing
case pilates
case snowboarding
case stairs
case stepTraining
case wheelchairWalkPace
case wheelchairRunPace
case other
} |
| Declaration | |
|---|---|
| From | case AmericanFootball |
| To | case americanFootball |
Modified HKWorkoutActivityType.archery
| Declaration | |
|---|---|
| From | case Archery |
| To | case archery |
| Declaration | |
|---|---|
| From | case AustralianFootball |
| To | case australianFootball |
Modified HKWorkoutActivityType.badminton
| Declaration | |
|---|---|
| From | case Badminton |
| To | case badminton |
Modified HKWorkoutActivityType.baseball
| Declaration | |
|---|---|
| From | case Baseball |
| To | case baseball |
Modified HKWorkoutActivityType.basketball
| Declaration | |
|---|---|
| From | case Basketball |
| To | case basketball |
Modified HKWorkoutActivityType.bowling
| Declaration | |
|---|---|
| From | case Bowling |
| To | case bowling |
Modified HKWorkoutActivityType.boxing
| Declaration | |
|---|---|
| From | case Boxing |
| To | case boxing |
Modified HKWorkoutActivityType.climbing
| Declaration | |
|---|---|
| From | case Climbing |
| To | case climbing |
Modified HKWorkoutActivityType.cricket
| Declaration | |
|---|---|
| From | case Cricket |
| To | case cricket |
Modified HKWorkoutActivityType.crossTraining
| Declaration | |
|---|---|
| From | case CrossTraining |
| To | case crossTraining |
Modified HKWorkoutActivityType.curling
| Declaration | |
|---|---|
| From | case Curling |
| To | case curling |
Modified HKWorkoutActivityType.cycling
| Declaration | |
|---|---|
| From | case Cycling |
| To | case cycling |
Modified HKWorkoutActivityType.dance
| Declaration | |
|---|---|
| From | case Dance |
| To | case dance |
| Declaration | Deprecation | |
|---|---|---|
| From | case DanceInspiredTraining | -- |
| To | case danceInspiredTraining | watchOS 3.0 |
Modified HKWorkoutActivityType.elliptical
| Declaration | |
|---|---|
| From | case Elliptical |
| To | case elliptical |
| Declaration | |
|---|---|
| From | case EquestrianSports |
| To | case equestrianSports |
Modified HKWorkoutActivityType.fencing
| Declaration | |
|---|---|
| From | case Fencing |
| To | case fencing |
Modified HKWorkoutActivityType.fishing
| Declaration | |
|---|---|
| From | case Fishing |
| To | case fishing |
| Declaration | |
|---|---|
| From | case FunctionalStrengthTraining |
| To | case functionalStrengthTraining |
Modified HKWorkoutActivityType.golf
| Declaration | |
|---|---|
| From | case Golf |
| To | case golf |
Modified HKWorkoutActivityType.gymnastics
| Declaration | |
|---|---|
| From | case Gymnastics |
| To | case gymnastics |
Modified HKWorkoutActivityType.handball
| Declaration | |
|---|---|
| From | case Handball |
| To | case handball |
Modified HKWorkoutActivityType.hiking
| Declaration | |
|---|---|
| From | case Hiking |
| To | case hiking |
Modified HKWorkoutActivityType.hockey
| Declaration | |
|---|---|
| From | case Hockey |
| To | case hockey |
Modified HKWorkoutActivityType.hunting
| Declaration | |
|---|---|
| From | case Hunting |
| To | case hunting |
Modified HKWorkoutActivityType.lacrosse
| Declaration | |
|---|---|
| From | case Lacrosse |
| To | case lacrosse |
Modified HKWorkoutActivityType.martialArts
| Declaration | |
|---|---|
| From | case MartialArts |
| To | case martialArts |
Modified HKWorkoutActivityType.mindAndBody
| Declaration | |
|---|---|
| From | case MindAndBody |
| To | case mindAndBody |
| Declaration | |
|---|---|
| From | case MixedMetabolicCardioTraining |
| To | case mixedMetabolicCardioTraining |
Modified HKWorkoutActivityType.other
| Declaration | |
|---|---|
| From | case Other |
| To | case other |
Modified HKWorkoutActivityType.paddleSports
| Declaration | |
|---|---|
| From | case PaddleSports |
| To | case paddleSports |
Modified HKWorkoutActivityType.play
| Declaration | |
|---|---|
| From | case Play |
| To | case play |
| Declaration | |
|---|---|
| From | case PreparationAndRecovery |
| To | case preparationAndRecovery |
Modified HKWorkoutActivityType.racquetball
| Declaration | |
|---|---|
| From | case Racquetball |
| To | case racquetball |
Modified HKWorkoutActivityType.rowing
| Declaration | |
|---|---|
| From | case Rowing |
| To | case rowing |
Modified HKWorkoutActivityType.rugby
| Declaration | |
|---|---|
| From | case Rugby |
| To | case rugby |
Modified HKWorkoutActivityType.running
| Declaration | |
|---|---|
| From | case Running |
| To | case running |
Modified HKWorkoutActivityType.sailing
| Declaration | |
|---|---|
| From | case Sailing |
| To | case sailing |
Modified HKWorkoutActivityType.skatingSports
| Declaration | |
|---|---|
| From | case SkatingSports |
| To | case skatingSports |
Modified HKWorkoutActivityType.snowSports
| Declaration | |
|---|---|
| From | case SnowSports |
| To | case snowSports |
Modified HKWorkoutActivityType.soccer
| Declaration | |
|---|---|
| From | case Soccer |
| To | case soccer |
Modified HKWorkoutActivityType.softball
| Declaration | |
|---|---|
| From | case Softball |
| To | case softball |
Modified HKWorkoutActivityType.squash
| Declaration | |
|---|---|
| From | case Squash |
| To | case squash |
Modified HKWorkoutActivityType.stairClimbing
| Declaration | |
|---|---|
| From | case StairClimbing |
| To | case stairClimbing |
Modified HKWorkoutActivityType.surfingSports
| Declaration | |
|---|---|
| From | case SurfingSports |
| To | case surfingSports |
Modified HKWorkoutActivityType.swimming
| Declaration | |
|---|---|
| From | case Swimming |
| To | case swimming |
Modified HKWorkoutActivityType.tableTennis
| Declaration | |
|---|---|
| From | case TableTennis |
| To | case tableTennis |
Modified HKWorkoutActivityType.tennis
| Declaration | |
|---|---|
| From | case Tennis |
| To | case tennis |
Modified HKWorkoutActivityType.trackAndField
| Declaration | |
|---|---|
| From | case TrackAndField |
| To | case trackAndField |
| Declaration | |
|---|---|
| From | case TraditionalStrengthTraining |
| To | case traditionalStrengthTraining |
Modified HKWorkoutActivityType.volleyball
| Declaration | |
|---|---|
| From | case Volleyball |
| To | case volleyball |
Modified HKWorkoutActivityType.walking
| Declaration | |
|---|---|
| From | case Walking |
| To | case walking |
Modified HKWorkoutActivityType.waterFitness
| Declaration | |
|---|---|
| From | case WaterFitness |
| To | case waterFitness |
Modified HKWorkoutActivityType.waterPolo
| Declaration | |
|---|---|
| From | case WaterPolo |
| To | case waterPolo |
Modified HKWorkoutActivityType.waterSports
| Declaration | |
|---|---|
| From | case WaterSports |
| To | case waterSports |
Modified HKWorkoutActivityType.wrestling
| Declaration | |
|---|---|
| From | case Wrestling |
| To | case wrestling |
Modified HKWorkoutActivityType.yoga
| Declaration | |
|---|---|
| From | case Yoga |
| To | case yoga |
Modified HKWorkoutEvent
| Declaration | Protocols | |
|---|---|---|
| From | class HKWorkoutEvent : NSObject, NSSecureCoding {
var type: HKWorkoutEventType { get }
@NSCopying var date: NSDate { get }
convenience init(type type: HKWorkoutEventType, date date: NSDate)
class func workoutEventWithType(_ type: HKWorkoutEventType, date date: NSDate) -> Self
init()
} | NSSecureCoding |
| To | class HKWorkoutEvent : NSObject, NSSecureCoding, NSCopying {
var type: HKWorkoutEventType { get }
var date: Date { get }
var metadata: [String : Any]? { get }
convenience init(type type: HKWorkoutEventType, date date: Date)
class func withType(_ type: HKWorkoutEventType, date date: Date) -> Self
convenience init(type type: HKWorkoutEventType, date date: Date, metadata metadata: [String : Any])
class func withType(_ type: HKWorkoutEventType, date date: Date, metadata metadata: [String : Any]) -> Self
init()
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKWorkoutEvent : CVarArg {
}
extension HKWorkoutEvent : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding |
Modified HKWorkoutEvent.date
| Declaration | |
|---|---|
| From | @NSCopying var date: NSDate { get } |
| To | var date: Date { get } |
| Declaration | |
|---|---|
| From | convenience init(type type: HKWorkoutEventType, date date: NSDate) |
| To | convenience init(type type: HKWorkoutEventType, date date: Date) |
Modified HKWorkoutEventType [enum]
| Declaration | |
|---|---|
| From | enum HKWorkoutEventType : Int {
case Pause
case Resume
} |
| To | enum HKWorkoutEventType : Int {
case pause
case resume
case lap
case marker
case motionPaused
case motionResumed
} |
Modified HKWorkoutEventType.pause
| Declaration | |
|---|---|
| From | case Pause |
| To | case pause |
Modified HKWorkoutEventType.resume
| Declaration | |
|---|---|
| From | case Resume |
| To | case resume |
Modified HKWorkoutSession
| Declaration | Protocols | |
|---|---|---|
| From | class HKWorkoutSession : NSObject, NSSecureCoding {
var activityType: HKWorkoutActivityType { get }
var locationType: HKWorkoutSessionLocationType { get }
weak var delegate: HKWorkoutSessionDelegate?
var state: HKWorkoutSessionState { get }
var startDate: NSDate? { get }
var endDate: NSDate? { get }
init(activityType activityType: HKWorkoutActivityType, locationType locationType: HKWorkoutSessionLocationType)
init()
} | NSSecureCoding |
| To | class HKWorkoutSession : NSObject, NSSecureCoding {
var activityType: HKWorkoutActivityType { get }
var locationType: HKWorkoutSessionLocationType { get }
@NSCopying var workoutConfiguration: HKWorkoutConfiguration { get }
weak var delegate: HKWorkoutSessionDelegate?
var state: HKWorkoutSessionState { get }
var startDate: Date? { get }
var endDate: Date? { get }
init(activityType activityType: HKWorkoutActivityType, locationType locationType: HKWorkoutSessionLocationType)
init(configuration workoutConfiguration: HKWorkoutConfiguration) throws
init()
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
func performSelector(inBackground aSelector: Selector, with arg: Any?)
class func classForKeyedUnarchiver() -> AnyClass
var classForKeyedArchiver: AnyClass? { get }
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
class func classFallbacksForKeyedArchiver() -> [String]
class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
class func automaticallyNotifiesObservers(forKey key: String) -> Bool
var observationInfo: UnsafeMutableRawPointer?
func willChangeValue(forKey key: String)
func didChangeValue(forKey key: String)
func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
class var accessInstanceVariablesDirectly: Bool { get }
func value(forKey key: String) -> Any?
func setValue(_ value: Any?, forKey key: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
func mutableArrayValue(forKey key: String) -> NSMutableArray
func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
func mutableSetValue(forKey key: String) -> NSMutableSet
func value(forKeyPath keyPath: String) -> Any?
func setValue(_ value: Any?, forKeyPath keyPath: String)
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
func value(forUndefinedKey key: String) -> Any?
func setValue(_ value: Any?, forUndefinedKey key: String)
func setNilValueForKey(_ key: String)
func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
func setValuesForKeys(_ keyedValues: [String : Any])
func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
func fileManager(_ fm: FileManager, willProcessPath path: String)
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
class func cancelPreviousPerformRequests(withTarget aTarget: Any)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
var autoContentAccessingProxy: Any { get }
class func version() -> Int
class func setVersion(_ aVersion: Int)
var classForCoder: AnyClass { get }
func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension HKWorkoutSession : CVarArg {
}
extension HKWorkoutSession : Equatable, Hashable {
var hashValue: Int { get }
} | CVarArg, Equatable, Hashable, NSSecureCoding |
Modified HKWorkoutSession.endDate
| Declaration | |
|---|---|
| From | var endDate: NSDate? { get } |
| To | var endDate: Date? { get } |
Modified HKWorkoutSession.startDate
| Declaration | |
|---|---|
| From | var startDate: NSDate? { get } |
| To | var startDate: Date? { get } |
Modified HKWorkoutSessionDelegate
| Declaration | |
|---|---|
| From | protocol HKWorkoutSessionDelegate : NSObjectProtocol {
func workoutSession(_ workoutSession: HKWorkoutSession, didChangeToState toState: HKWorkoutSessionState, fromState fromState: HKWorkoutSessionState, date date: NSDate)
func workoutSession(_ workoutSession: HKWorkoutSession, didFailWithError error: NSError)
} |
| To | protocol HKWorkoutSessionDelegate : NSObjectProtocol {
func workoutSession(_ workoutSession: HKWorkoutSession, didChangeTo toState: HKWorkoutSessionState, from fromState: HKWorkoutSessionState, date date: Date)
func workoutSession(_ workoutSession: HKWorkoutSession, didFailWithError error: Error)
optional func workoutSession(_ workoutSession: HKWorkoutSession, didGenerate event: HKWorkoutEvent)
} |
| Declaration | |
|---|---|
| From | func workoutSession(_ workoutSession: HKWorkoutSession, didChangeToState toState: HKWorkoutSessionState, fromState fromState: HKWorkoutSessionState, date date: NSDate) |
| To | func workoutSession(_ workoutSession: HKWorkoutSession, didChangeTo toState: HKWorkoutSessionState, from fromState: HKWorkoutSessionState, date date: Date) |
| Declaration | |
|---|---|
| From | func workoutSession(_ workoutSession: HKWorkoutSession, didFailWithError error: NSError) |
| To | func workoutSession(_ workoutSession: HKWorkoutSession, didFailWithError error: Error) |
Modified HKWorkoutSessionLocationType [enum]
| Declaration | |
|---|---|
| From | enum HKWorkoutSessionLocationType : Int {
case Unknown
case Indoor
case Outdoor
} |
| To | enum HKWorkoutSessionLocationType : Int {
case unknown
case indoor
case outdoor
} |
Modified HKWorkoutSessionLocationType.indoor
| Declaration | |
|---|---|
| From | case Indoor |
| To | case indoor |
Modified HKWorkoutSessionLocationType.outdoor
| Declaration | |
|---|---|
| From | case Outdoor |
| To | case outdoor |
Modified HKWorkoutSessionLocationType.unknown
| Declaration | |
|---|---|
| From | case Unknown |
| To | case unknown |
Modified HKWorkoutSessionState [enum]
| Declaration | |
|---|---|
| From | enum HKWorkoutSessionState : Int {
case NotStarted
case Running
case Ended
} |
| To | enum HKWorkoutSessionState : Int {
case notStarted
case running
case ended
case paused
} |
Modified HKWorkoutSessionState.ended
| Declaration | |
|---|---|
| From | case Ended |
| To | case ended |
Modified HKWorkoutSessionState.notStarted
| Declaration | |
|---|---|
| From | case NotStarted |
| To | case notStarted |
Modified HKWorkoutSessionState.running
| Declaration | |
|---|---|
| From | case Running |
| To | case running |
| Name | Declaration | |
|---|---|---|
| From | HKUserPreferencesDidChangeNotification | let HKUserPreferencesDidChangeNotification: String |
| To | HKUserPreferencesDidChange | static let HKUserPreferencesDidChange: NSNotification.Name |
Modified HKObserverQueryCompletionHandler
| Declaration | |
|---|---|
| From | typealias HKObserverQueryCompletionHandler = () -> Void |
| To | typealias HKObserverQueryCompletionHandler = () -> Swift.Void |