HealthKit Changes for Swift
HealthKit
Removed HKQueryOptions.init(_: UInt)
Removed HKStatisticsOptions.init(_: UInt)
Added HKCategoryValue [enum]
Added HKDeletedObject
Added HKDeletedObject.UUID
Added HKDevice
Added HKDevice.firmwareVersion
Added HKDevice.hardwareVersion
Added HKDevice.localIdentifier
Added HKDevice.manufacturer
Added HKDevice.model
Added HKDevice.name
Added HKDevice.softwareVersion
Added HKFitzpatrickSkinType.I
Added HKFitzpatrickSkinType.II
Added HKFitzpatrickSkinType.IV
Added HKFitzpatrickSkinType.V
Added HKFitzpatrickSkinType.VI
Added HKObject.device
Added HKObject.sourceRevision
Added HKQuery.predicateForObjectsFromSourceRevisions(_: Set<HKSourceRevision>) -> NSPredicate [class]
Added HKQueryAnchor
Added HKSourceRevision
Added HKSourceRevision.source
Added HKSourceRevision.version
Added HKDevicePropertyKeyModel
Added HKDevicePropertyKeyName
Added HKPredicateKeyPathDevice
Modified HKAnchoredObjectQuery
Declaration | |
---|---|
From | class HKAnchoredObjectQuery : HKQuery { init!(type type: HKSampleType!, predicate predicate: NSPredicate!, anchor anchor: Int, limit limit: Int, completionHandler handler: ((HKAnchoredObjectQuery!, [AnyObject]!, Int, NSError!) -> Void)!) } |
To | 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) } |
Declaration | Deprecation | |
---|---|---|
From | init!(type type: HKSampleType!, predicate predicate: NSPredicate!, anchor anchor: Int, limit limit: Int, completionHandler handler: ((HKAnchoredObjectQuery!, [AnyObject]!, Int, NSError!) -> Void)!) | -- |
To | init(type type: HKSampleType, predicate predicate: NSPredicate?, anchor anchor: Int, limit limit: Int, completionHandler handler: (HKAnchoredObjectQuery, [HKSample]?, Int, NSError?) -> Void) | iOS 9.0 |
Modified HKAuthorizationStatus [enum]
Raw Value Type | |
---|---|
From | -- |
To | Int |
Modified HKBiologicalSex [enum]
Raw Value Type | |
---|---|
From | -- |
To | Int |
Modified HKBiologicalSexObject
Declaration | Protocols | |
---|---|---|
From | class HKBiologicalSexObject : NSObject { var biologicalSex: HKBiologicalSex { get } } | AnyObject |
To | class HKBiologicalSexObject : NSObject, NSCopying, NSSecureCoding, NSCoding { var biologicalSex: HKBiologicalSex { get } } | AnyObject, NSCoding, NSCopying, NSSecureCoding |
Modified HKBloodType [enum]
Raw Value Type | |
---|---|
From | -- |
To | Int |
Modified HKBloodTypeObject
Declaration | Protocols | |
---|---|---|
From | class HKBloodTypeObject : NSObject { var bloodType: HKBloodType { get } } | AnyObject |
To | class HKBloodTypeObject : NSObject, NSCopying, NSSecureCoding, NSCoding { var bloodType: HKBloodType { get } } | AnyObject, NSCoding, NSCopying, NSSecureCoding |
Raw Value Type | |
---|---|
From | -- |
To | Int |
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: [NSObject : AnyObject]!) class func categorySampleWithType(_ type: HKCategoryType!, value value: Int, startDate startDate: NSDate!, endDate endDate: NSDate!, metadata metadata: [NSObject : 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! } |
To | 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 } |
Modified HKCategorySample.categoryType
Declaration | |
---|---|
From | var categoryType: HKCategoryType! { get } |
To | var categoryType: HKCategoryType { get } |
Modified HKCategorySample.init(type: HKCategoryType, value: Int, startDate: NSDate, endDate: NSDate)
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, startDate startDate: NSDate, endDate endDate: NSDate) |
Declaration | |
---|---|
From | convenience init!(type type: HKCategoryType!, value value: Int, startDate startDate: NSDate!, endDate endDate: NSDate!, metadata metadata: [NSObject : AnyObject]!) |
To | convenience init(type type: HKCategoryType, value value: Int, startDate startDate: NSDate, endDate endDate: NSDate, metadata metadata: [String : AnyObject]?) |
Modified HKCategoryValueSleepAnalysis [enum]
Raw Value Type | |
---|---|
From | -- |
To | Int |
Modified HKCorrelation
Declaration | Protocols | |
---|---|---|
From | class HKCorrelation : HKSample, NSSecureCoding, NSCoding { var correlationType: HKCorrelationType! { get } var objects: Set<NSObject>! { get } convenience init!(type correlationType: HKCorrelationType!, startDate startDate: NSDate!, endDate endDate: NSDate!, objects objects: Set<NSObject>!) class func correlationWithType(_ correlationType: HKCorrelationType!, startDate startDate: NSDate!, endDate endDate: NSDate!, objects objects: Set<NSObject>!) -> Self! convenience init!(type correlationType: HKCorrelationType!, startDate startDate: NSDate!, endDate endDate: NSDate!, objects objects: Set<NSObject>!, metadata metadata: [NSObject : AnyObject]!) class func correlationWithType(_ correlationType: HKCorrelationType!, startDate startDate: NSDate!, endDate endDate: NSDate!, objects objects: Set<NSObject>!, metadata metadata: [NSObject : AnyObject]!) -> Self! func objectsForType(_ objectType: HKObjectType!) -> Set<NSObject>! } | AnyObject, NSCoding, NSSecureCoding |
To | 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> } | AnyObject |
Modified HKCorrelation.correlationType
Declaration | |
---|---|
From | var correlationType: HKCorrelationType! { get } |
To | var correlationType: HKCorrelationType { get } |
Declaration | |
---|---|
From | convenience init!(type correlationType: HKCorrelationType!, startDate startDate: NSDate!, endDate endDate: NSDate!, objects objects: Set<NSObject>!) |
To | convenience init(type correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>) |
Declaration | |
---|---|
From | convenience init!(type correlationType: HKCorrelationType!, startDate startDate: NSDate!, endDate endDate: NSDate!, objects objects: Set<NSObject>!, metadata metadata: [NSObject : AnyObject]!) |
To | convenience init(type correlationType: HKCorrelationType, startDate startDate: NSDate, endDate endDate: NSDate, objects objects: Set<HKSample>, metadata metadata: [String : AnyObject]?) |
Modified HKCorrelation.objects
Declaration | |
---|---|
From | var objects: Set<NSObject>! { get } |
To | var objects: Set<HKSample> { get } |
Declaration | |
---|---|
From | func objectsForType(_ objectType: HKObjectType!) -> Set<NSObject>! |
To | func objectsForType(_ objectType: HKObjectType) -> Set<HKSample> |
Modified HKCorrelationQuery
Declaration | |
---|---|
From | class HKCorrelationQuery : HKQuery { @NSCopying var correlationType: HKCorrelationType! { get } var samplePredicates: [NSObject : AnyObject]! { get } init!(type correlationType: HKCorrelationType!, predicate predicate: NSPredicate!, samplePredicates samplePredicates: [NSObject : AnyObject]!, completion completion: ((HKCorrelationQuery!, [AnyObject]!, 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: (HKCorrelationQuery, [HKCorrelation]?, NSError?) -> Void) } |
Modified HKCorrelationQuery.correlationType
Declaration | |
---|---|
From | @NSCopying var correlationType: HKCorrelationType! { get } |
To | @NSCopying var correlationType: HKCorrelationType { get } |
Declaration | |
---|---|
From | init!(type correlationType: HKCorrelationType!, predicate predicate: NSPredicate!, samplePredicates samplePredicates: [NSObject : AnyObject]!, completion completion: ((HKCorrelationQuery!, [AnyObject]!, NSError!) -> Void)!) |
To | init(type correlationType: HKCorrelationType, predicate predicate: NSPredicate?, samplePredicates samplePredicates: [HKSampleType : NSPredicate]?, completion completion: (HKCorrelationQuery, [HKCorrelation]?, NSError?) -> Void) |
Modified HKCorrelationQuery.samplePredicates
Declaration | |
---|---|
From | var samplePredicates: [NSObject : AnyObject]! { get } |
To | var samplePredicates: [HKSampleType : NSPredicate]? { get } |
Modified HKErrorCode [enum]
Declaration | Raw Value Type | |
---|---|---|
From | enum HKErrorCode : Int { case NoError case ErrorHealthDataUnavailable case ErrorHealthDataRestricted case ErrorInvalidArgument case ErrorAuthorizationDenied case ErrorAuthorizationNotDetermined case ErrorDatabaseInaccessible case ErrorUserCanceled } | -- |
To | enum HKErrorCode : Int { case NoError case ErrorHealthDataUnavailable case ErrorHealthDataRestricted case ErrorInvalidArgument case ErrorAuthorizationDenied case ErrorAuthorizationNotDetermined case ErrorDatabaseInaccessible case ErrorUserCanceled case ErrorAnotherWorkoutSessionStarted case ErrorUserExitedWorkoutSession } | Int |
Modified HKHealthStore
Declaration | |
---|---|
From | class HKHealthStore : NSObject { class func isHealthDataAvailable() -> Bool func authorizationStatusForType(_ type: HKObjectType!) -> HKAuthorizationStatus func requestAuthorizationToShareTypes(_ typesToShare: Set<NSObject>!, readTypes typesToRead: Set<NSObject>!, completion completion: ((Bool, NSError!) -> Void)!) func saveObject(_ object: HKObject!, withCompletion completion: ((Bool, NSError!) -> Void)!) func saveObjects(_ objects: [AnyObject]!, withCompletion completion: ((Bool, NSError!) -> Void)!) func deleteObject(_ object: HKObject!, withCompletion completion: ((Bool, NSError!) -> Void)!) func executeQuery(_ query: HKQuery!) func stopQuery(_ query: HKQuery!) func dateOfBirthWithError(_ error: NSErrorPointer) -> NSDate? func biologicalSexWithError(_ error: NSErrorPointer) -> HKBiologicalSexObject? func bloodTypeWithError(_ error: NSErrorPointer) -> HKBloodTypeObject? } extension HKHealthStore { func addSamples(_ samples: [AnyObject]!, toWorkout workout: HKWorkout!, completion completion: ((Bool, NSError!) -> Void)!) } 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<NSObject>!, completion completion: (([NSObject : AnyObject]!, NSError!) -> Void)!) } |
To | 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) } |
Modified HKHealthStore.addSamples(_: [HKSample], toWorkout: HKWorkout, completion: (Bool, NSError?) -> Void)
Declaration | |
---|---|
From | func addSamples(_ samples: [AnyObject]!, toWorkout workout: HKWorkout!, completion completion: ((Bool, NSError!) -> Void)!) |
To | func addSamples(_ samples: [HKSample], toWorkout workout: HKWorkout, completion completion: (Bool, NSError?) -> Void) |
Declaration | |
---|---|
From | func authorizationStatusForType(_ type: HKObjectType!) -> HKAuthorizationStatus |
To | func authorizationStatusForType(_ type: HKObjectType) -> HKAuthorizationStatus |
Declaration | |
---|---|
From | func biologicalSexWithError(_ error: NSErrorPointer) -> HKBiologicalSexObject? |
To | func biologicalSex() throws -> HKBiologicalSexObject |
Declaration | |
---|---|
From | func bloodTypeWithError(_ error: NSErrorPointer) -> HKBloodTypeObject? |
To | func bloodType() throws -> HKBloodTypeObject |
Declaration | |
---|---|
From | func dateOfBirthWithError(_ error: NSErrorPointer) -> NSDate? |
To | func dateOfBirth() throws -> NSDate |
Declaration | |
---|---|
From | func deleteObject(_ object: HKObject!, withCompletion completion: ((Bool, NSError!) -> Void)!) |
To | func deleteObject(_ object: HKObject, withCompletion completion: (Bool, NSError?) -> Void) |
Declaration | |
---|---|
From | func disableAllBackgroundDeliveryWithCompletion(_ completion: ((Bool, NSError!) -> Void)!) |
To | func disableAllBackgroundDeliveryWithCompletion(_ completion: (Bool, NSError?) -> Void) |
Declaration | |
---|---|
From | func disableBackgroundDeliveryForType(_ type: HKObjectType!, withCompletion completion: ((Bool, NSError!) -> Void)!) |
To | func disableBackgroundDeliveryForType(_ type: HKObjectType, withCompletion completion: (Bool, NSError?) -> Void) |
Declaration | |
---|---|
From | func enableBackgroundDeliveryForType(_ type: HKObjectType!, frequency frequency: HKUpdateFrequency, withCompletion completion: ((Bool, NSError!) -> Void)!) |
To | func enableBackgroundDeliveryForType(_ type: HKObjectType, frequency frequency: HKUpdateFrequency, withCompletion completion: (Bool, NSError?) -> Void) |
Declaration | |
---|---|
From | func executeQuery(_ query: HKQuery!) |
To | func executeQuery(_ query: HKQuery) |
Declaration | |
---|---|
From | func preferredUnitsForQuantityTypes(_ quantityTypes: Set<NSObject>!, completion completion: (([NSObject : AnyObject]!, NSError!) -> Void)!) |
To | func preferredUnitsForQuantityTypes(_ quantityTypes: Set<HKQuantityType>, completion completion: ([HKQuantityType : HKUnit], NSError?) -> Void) |
Declaration | |
---|---|
From | func requestAuthorizationToShareTypes(_ typesToShare: Set<NSObject>!, readTypes typesToRead: Set<NSObject>!, completion completion: ((Bool, NSError!) -> Void)!) |
To | func requestAuthorizationToShareTypes(_ typesToShare: Set<HKSampleType>?, readTypes typesToRead: Set<HKObjectType>?, completion completion: (Bool, NSError?) -> Void) |
Declaration | |
---|---|
From | func saveObject(_ object: HKObject!, withCompletion completion: ((Bool, NSError!) -> Void)!) |
To | func saveObject(_ object: HKObject, withCompletion completion: (Bool, NSError?) -> Void) |
Declaration | |
---|---|
From | func saveObjects(_ objects: [AnyObject]!, withCompletion completion: ((Bool, NSError!) -> Void)!) |
To | func saveObjects(_ objects: [HKObject], withCompletion completion: (Bool, NSError?) -> Void) |
Modified HKHealthStore.stopQuery(_: HKQuery)
Declaration | |
---|---|
From | func stopQuery(_ query: HKQuery!) |
To | func stopQuery(_ query: HKQuery) |
Modified HKHeartRateSensorLocation [enum]
Raw Value Type | |
---|---|
From | -- |
To | Int |
Modified HKMetricPrefix [enum]
Raw Value Type | |
---|---|
From | -- |
To | Int |
Modified HKObject
Declaration | |
---|---|
From | class HKObject : NSObject, NSSecureCoding, NSCoding { var UUID: NSUUID! { get } var source: HKSource! { get } var metadata: [NSObject : AnyObject]! { get } init!() } |
To | class HKObject : NSObject, NSSecureCoding, NSCoding { var UUID: NSUUID { get } var source: HKSource { get } var sourceRevision: HKSourceRevision { get } var device: HKDevice? { get } var metadata: [String : AnyObject]? { get } init() } |
Modified HKObject.metadata
Declaration | |
---|---|
From | var metadata: [NSObject : AnyObject]! { get } |
To | var metadata: [String : AnyObject]? { get } |
Modified HKObject.source
Declaration | Deprecation | |
---|---|---|
From | var source: HKSource! { get } | -- |
To | var source: HKSource { get } | iOS 9.0 |
Modified HKObject.UUID
Declaration | |
---|---|
From | var UUID: NSUUID! { get } |
To | var UUID: NSUUID { get } |
Modified HKObjectType
Declaration | |
---|---|
From | class HKObjectType : NSObject, NSSecureCoding, NSCoding, 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! } |
To | class HKObjectType : NSObject, NSSecureCoding, NSCoding, 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 } |
Declaration | |
---|---|
From | class func categoryTypeForIdentifier(_ identifier: String!) -> HKCategoryType! |
To | class func categoryTypeForIdentifier(_ identifier: String) -> HKCategoryType? |
Declaration | |
---|---|
From | class func characteristicTypeForIdentifier(_ identifier: String!) -> HKCharacteristicType! |
To | class func characteristicTypeForIdentifier(_ identifier: String) -> HKCharacteristicType? |
Declaration | |
---|---|
From | class func correlationTypeForIdentifier(_ identifier: String!) -> HKCorrelationType! |
To | class func correlationTypeForIdentifier(_ identifier: String) -> HKCorrelationType? |
Modified HKObjectType.identifier
Declaration | |
---|---|
From | var identifier: String! { get } |
To | var identifier: String { get } |
Declaration | |
---|---|
From | class func quantityTypeForIdentifier(_ identifier: String!) -> HKQuantityType! |
To | class func quantityTypeForIdentifier(_ identifier: String) -> HKQuantityType? |
Declaration | |
---|---|
From | class func workoutType() -> HKWorkoutType! |
To | class func workoutType() -> HKWorkoutType |
Modified HKObserverQuery
Declaration | |
---|---|
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: (HKObserverQuery, HKObserverQueryCompletionHandler, NSError?) -> Void) } |
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: (HKObserverQuery, HKObserverQueryCompletionHandler, NSError?) -> Void) |
Modified HKQuantity
Declaration | |
---|---|
From | class HKQuantity : NSObject, NSSecureCoding, NSCoding, 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 } |
To | class HKQuantity : NSObject, NSSecureCoding, NSCoding, 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 } |
Declaration | |
---|---|
From | func doubleValueForUnit(_ unit: HKUnit!) -> Double |
To | func doubleValueForUnit(_ unit: HKUnit) -> Double |
Declaration | |
---|---|
From | convenience init!(unit unit: HKUnit!, doubleValue value: Double) |
To | convenience init(unit unit: HKUnit, doubleValue value: Double) |
Declaration | |
---|---|
From | func isCompatibleWithUnit(_ unit: HKUnit!) -> Bool |
To | func isCompatibleWithUnit(_ unit: HKUnit) -> Bool |
Modified HKQuantityAggregationStyle [enum]
Raw Value Type | |
---|---|
From | -- |
To | Int |
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: [NSObject : AnyObject]!) class func quantitySampleWithType(_ quantityType: HKQuantityType!, quantity quantity: HKQuantity!, startDate startDate: NSDate!, endDate endDate: NSDate!, metadata metadata: [NSObject : AnyObject]!) -> Self! } |
To | 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 } |
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, startDate startDate: NSDate, endDate endDate: NSDate) |
Declaration | |
---|---|
From | convenience init!(type quantityType: HKQuantityType!, quantity quantity: HKQuantity!, startDate startDate: NSDate!, endDate endDate: NSDate!, metadata metadata: [NSObject : AnyObject]!) |
To | convenience init(type quantityType: HKQuantityType, quantity quantity: HKQuantity, startDate startDate: NSDate, endDate endDate: NSDate, metadata metadata: [String : AnyObject]?) |
Modified HKQuantitySample.quantity
Declaration | |
---|---|
From | var quantity: HKQuantity! { get } |
To | var quantity: HKQuantity { get } |
Modified HKQuantitySample.quantityType
Declaration | |
---|---|
From | var quantityType: HKQuantityType! { get } |
To | var quantityType: HKQuantityType { get } |
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 isCompatibleWithUnit(_ unit: HKUnit) -> Bool } |
Declaration | |
---|---|
From | func isCompatibleWithUnit(_ unit: HKUnit!) -> Bool |
To | func isCompatibleWithUnit(_ unit: HKUnit) -> Bool |
Modified HKQuery
Declaration | |
---|---|
From | class HKQuery : NSObject { 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<NSObject>!) -> NSPredicate! class func predicateForObjectWithUUID(_ UUID: NSUUID!) -> NSPredicate! class func predicateForObjectsWithUUIDs(_ UUIDs: Set<NSObject>!) -> 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! } |
To | class HKQuery : NSObject { 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 } |
Modified HKQuery.predicate
Declaration | |
---|---|
From | var predicate: NSPredicate! { get } |
To | var predicate: NSPredicate? { get } |
Declaration | |
---|---|
From | class func predicateForCategorySamplesWithOperatorType(_ operatorType: NSPredicateOperatorType, value value: Int) -> NSPredicate! |
To | class func predicateForCategorySamplesWithOperatorType(_ operatorType: NSPredicateOperatorType, value value: Int) -> NSPredicate |
Declaration | |
---|---|
From | class func predicateForObjectsFromSource(_ source: HKSource!) -> NSPredicate! |
To | class func predicateForObjectsFromSource(_ source: HKSource) -> NSPredicate |
Declaration | |
---|---|
From | class func predicateForObjectsFromSources(_ sources: Set<NSObject>!) -> NSPredicate! |
To | class func predicateForObjectsFromSources(_ sources: Set<HKSource>) -> NSPredicate |
Declaration | |
---|---|
From | class func predicateForObjectsFromWorkout(_ workout: HKWorkout!) -> NSPredicate! |
To | class func predicateForObjectsFromWorkout(_ workout: HKWorkout) -> NSPredicate |
Declaration | |
---|---|
From | class func predicateForObjectsWithMetadataKey(_ key: String!) -> NSPredicate! |
To | class func predicateForObjectsWithMetadataKey(_ key: String) -> NSPredicate |
Declaration | |
---|---|
From | class func predicateForObjectsWithMetadataKey(_ key: String!, allowedValues allowedValues: [AnyObject]!) -> NSPredicate! |
To | class func predicateForObjectsWithMetadataKey(_ key: String, allowedValues allowedValues: [AnyObject]) -> NSPredicate |
Declaration | |
---|---|
From | class func predicateForObjectsWithMetadataKey(_ key: String!, operatorType operatorType: NSPredicateOperatorType, value value: AnyObject!) -> NSPredicate! |
To | class func predicateForObjectsWithMetadataKey(_ key: String, operatorType operatorType: NSPredicateOperatorType, value value: AnyObject) -> NSPredicate |
Declaration | |
---|---|
From | class func predicateForObjectsWithNoCorrelation() -> NSPredicate! |
To | class func predicateForObjectsWithNoCorrelation() -> NSPredicate |
Declaration | |
---|---|
From | class func predicateForObjectsWithUUIDs(_ UUIDs: Set<NSObject>!) -> NSPredicate! |
To | class func predicateForObjectsWithUUIDs(_ UUIDs: Set<NSUUID>) -> NSPredicate |
Declaration | |
---|---|
From | class func predicateForObjectWithUUID(_ UUID: NSUUID!) -> NSPredicate! |
To | class func predicateForObjectWithUUID(_ UUID: NSUUID) -> NSPredicate |
Declaration | |
---|---|
From | class func predicateForQuantitySamplesWithOperatorType(_ operatorType: NSPredicateOperatorType, quantity quantity: HKQuantity!) -> NSPredicate! |
To | class func predicateForQuantitySamplesWithOperatorType(_ operatorType: NSPredicateOperatorType, quantity quantity: HKQuantity) -> NSPredicate |
Declaration | |
---|---|
From | class func predicateForSamplesWithStartDate(_ startDate: NSDate!, endDate endDate: NSDate!, options options: HKQueryOptions) -> NSPredicate! |
To | class func predicateForSamplesWithStartDate(_ startDate: NSDate?, endDate endDate: NSDate?, options options: HKQueryOptions) -> NSPredicate |
Declaration | |
---|---|
From | class func predicateForWorkoutsWithOperatorType(_ operatorType: NSPredicateOperatorType, duration duration: NSTimeInterval) -> NSPredicate! |
To | class func predicateForWorkoutsWithOperatorType(_ operatorType: NSPredicateOperatorType, duration duration: NSTimeInterval) -> NSPredicate |
Declaration | |
---|---|
From | class func predicateForWorkoutsWithOperatorType(_ operatorType: NSPredicateOperatorType, totalDistance totalDistance: HKQuantity!) -> NSPredicate! |
To | class func predicateForWorkoutsWithOperatorType(_ operatorType: NSPredicateOperatorType, totalDistance totalDistance: HKQuantity) -> NSPredicate |
Declaration | |
---|---|
From | class func predicateForWorkoutsWithOperatorType(_ operatorType: NSPredicateOperatorType, totalEnergyBurned totalEnergyBurned: HKQuantity!) -> NSPredicate! |
To | class func predicateForWorkoutsWithOperatorType(_ operatorType: NSPredicateOperatorType, totalEnergyBurned totalEnergyBurned: HKQuantity) -> NSPredicate |
Modified HKQuery.predicateForWorkoutsWithWorkoutActivityType(_: HKWorkoutActivityType) -> NSPredicate [class]
Declaration | |
---|---|
From | class func predicateForWorkoutsWithWorkoutActivityType(_ workoutActivityType: HKWorkoutActivityType) -> NSPredicate! |
To | class func predicateForWorkoutsWithWorkoutActivityType(_ workoutActivityType: HKWorkoutActivityType) -> NSPredicate |
Modified HKQuery.sampleType
Declaration | |
---|---|
From | var sampleType: HKSampleType! { get } |
To | var sampleType: HKSampleType { get } |
Modified HKQueryOptions [struct]
Declaration | Protocols | |
---|---|---|
From | struct HKQueryOptions : RawOptionSetType { init(_ rawValue: UInt) init(rawValue rawValue: UInt) static var None: HKQueryOptions { get } static var StrictStartDate: HKQueryOptions { get } static var StrictEndDate: HKQueryOptions { get } } | RawOptionSetType |
To | struct HKQueryOptions : OptionSetType { init(rawValue rawValue: UInt) static var None: HKQueryOptions { get } static var StrictStartDate: HKQueryOptions { get } static var StrictEndDate: HKQueryOptions { get } } | OptionSetType |
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: NSDate { get } var endDate: NSDate { get } } |
Modified HKSample.endDate
Declaration | |
---|---|
From | var endDate: NSDate! { get } |
To | var endDate: NSDate { get } |
Modified HKSample.sampleType
Declaration | |
---|---|
From | var sampleType: HKSampleType! { get } |
To | var sampleType: HKSampleType { get } |
Modified HKSample.startDate
Declaration | |
---|---|
From | var startDate: NSDate! { get } |
To | var startDate: NSDate { get } |
Modified HKSampleQuery
Declaration | |
---|---|
From | class HKSampleQuery : HKQuery { var limit: Int { get } var sortDescriptors: [AnyObject]! { get } init!(sampleType sampleType: HKSampleType!, predicate predicate: NSPredicate!, limit limit: Int, sortDescriptors sortDescriptors: [AnyObject]!, resultsHandler resultsHandler: ((HKSampleQuery!, [AnyObject]!, 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: (HKSampleQuery, [HKSample]?, NSError?) -> Void) } |
Declaration | |
---|---|
From | init!(sampleType sampleType: HKSampleType!, predicate predicate: NSPredicate!, limit limit: Int, sortDescriptors sortDescriptors: [AnyObject]!, resultsHandler resultsHandler: ((HKSampleQuery!, [AnyObject]!, NSError!) -> Void)!) |
To | init(sampleType sampleType: HKSampleType, predicate predicate: NSPredicate?, limit limit: Int, sortDescriptors sortDescriptors: [NSSortDescriptor]?, resultsHandler resultsHandler: (HKSampleQuery, [HKSample]?, NSError?) -> Void) |
Modified HKSampleQuery.sortDescriptors
Declaration | |
---|---|
From | var sortDescriptors: [AnyObject]! { get } |
To | var sortDescriptors: [NSSortDescriptor]? { get } |
Modified HKSource
Declaration | |
---|---|
From | class HKSource : NSObject, NSSecureCoding, NSCoding, NSCopying { var name: String! { get } var bundleIdentifier: String! { get } class func defaultSource() -> HKSource! init!() } |
To | class HKSource : NSObject, NSSecureCoding, NSCoding, NSCopying { var name: String { get } var bundleIdentifier: String { get } class func defaultSource() -> HKSource init() } |
Modified HKSource.bundleIdentifier
Declaration | |
---|---|
From | var bundleIdentifier: String! { get } |
To | var bundleIdentifier: String { get } |
Declaration | |
---|---|
From | class func defaultSource() -> HKSource! |
To | class func defaultSource() -> HKSource |
Modified HKSource.name
Declaration | |
---|---|
From | var name: String! { get } |
To | var name: String { get } |
Modified HKSourceQuery
Declaration | |
---|---|
From | class HKSourceQuery : HKQuery { init!(sampleType sampleType: HKSampleType!, samplePredicate objectPredicate: NSPredicate!, completionHandler completionHandler: ((HKSourceQuery!, Set<NSObject>!, NSError!) -> Void)!) } |
To | class HKSourceQuery : HKQuery { init(sampleType sampleType: HKSampleType, samplePredicate objectPredicate: NSPredicate?, completionHandler completionHandler: (HKSourceQuery, Set<HKSource>?, NSError?) -> Void) } |
Declaration | |
---|---|
From | init!(sampleType sampleType: HKSampleType!, samplePredicate objectPredicate: NSPredicate!, completionHandler completionHandler: ((HKSourceQuery!, Set<NSObject>!, NSError!) -> Void)!) |
To | init(sampleType sampleType: HKSampleType, samplePredicate objectPredicate: NSPredicate?, completionHandler completionHandler: (HKSourceQuery, Set<HKSource>?, NSError?) -> Void) |
Modified HKStatistics
Declaration | |
---|---|
From | class HKStatistics : NSObject, NSSecureCoding, NSCoding, NSCopying { var quantityType: HKQuantityType! { get } var startDate: NSDate! { get } var endDate: NSDate! { get } var sources: [AnyObject]! { 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! } |
To | class HKStatistics : NSObject, NSSecureCoding, NSCoding, 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? } |
Declaration | |
---|---|
From | func averageQuantity() -> HKQuantity! |
To | func averageQuantity() -> HKQuantity? |
Declaration | |
---|---|
From | func averageQuantityForSource(_ source: HKSource!) -> HKQuantity! |
To | func averageQuantityForSource(_ source: HKSource) -> HKQuantity? |
Modified HKStatistics.endDate
Declaration | |
---|---|
From | var endDate: NSDate! { get } |
To | var endDate: NSDate { get } |
Declaration | |
---|---|
From | func maximumQuantity() -> HKQuantity! |
To | func maximumQuantity() -> HKQuantity? |
Declaration | |
---|---|
From | func maximumQuantityForSource(_ source: HKSource!) -> HKQuantity! |
To | func maximumQuantityForSource(_ source: HKSource) -> HKQuantity? |
Declaration | |
---|---|
From | func minimumQuantity() -> HKQuantity! |
To | func minimumQuantity() -> HKQuantity? |
Declaration | |
---|---|
From | func minimumQuantityForSource(_ source: HKSource!) -> HKQuantity! |
To | func minimumQuantityForSource(_ source: HKSource) -> HKQuantity? |
Modified HKStatistics.quantityType
Declaration | |
---|---|
From | var quantityType: HKQuantityType! { get } |
To | var quantityType: HKQuantityType { get } |
Modified HKStatistics.sources
Declaration | |
---|---|
From | var sources: [AnyObject]! { get } |
To | var sources: [HKSource]? { get } |
Modified HKStatistics.startDate
Declaration | |
---|---|
From | var startDate: NSDate! { get } |
To | var startDate: NSDate { get } |
Declaration | |
---|---|
From | func sumQuantity() -> HKQuantity! |
To | func sumQuantity() -> HKQuantity? |
Declaration | |
---|---|
From | func sumQuantityForSource(_ source: HKSource!) -> HKQuantity! |
To | func sumQuantityForSource(_ source: HKSource) -> HKQuantity? |
Modified HKStatisticsCollection
Declaration | |
---|---|
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() -> [AnyObject]! func sources() -> Set<NSObject>! } |
To | 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> } |
Declaration | |
---|---|
From | func enumerateStatisticsFromDate(_ startDate: NSDate!, toDate endDate: NSDate!, withBlock block: ((HKStatistics!, UnsafeMutablePointer<ObjCBool>) -> Void)!) |
To | func enumerateStatisticsFromDate(_ startDate: NSDate, toDate endDate: NSDate, withBlock block: (HKStatistics, UnsafeMutablePointer<ObjCBool>) -> Void) |
Declaration | |
---|---|
From | func sources() -> Set<NSObject>! |
To | func sources() -> Set<HKSource> |
Declaration | |
---|---|
From | func statistics() -> [AnyObject]! |
To | func statistics() -> [HKStatistics] |
Declaration | |
---|---|
From | func statisticsForDate(_ date: NSDate!) -> HKStatistics! |
To | func statisticsForDate(_ date: NSDate) -> HKStatistics? |
Modified HKStatisticsCollectionQuery
Declaration | |
---|---|
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: 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) } |
Declaration | |
---|---|
From | var anchorDate: NSDate! { get } |
To | var anchorDate: NSDate { 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: NSDate, intervalComponents intervalComponents: NSDateComponents) |
Declaration | |
---|---|
From | var initialResultsHandler: ((HKStatisticsCollectionQuery!, HKStatisticsCollection!, NSError!) -> Void)! |
To | var initialResultsHandler: ((HKStatisticsCollectionQuery, HKStatisticsCollection?, NSError?) -> Void)? |
Declaration | |
---|---|
From | @NSCopying var intervalComponents: NSDateComponents! { get } |
To | @NSCopying var intervalComponents: NSDateComponents { get } |
Declaration | |
---|---|
From | var statisticsUpdateHandler: ((HKStatisticsCollectionQuery!, HKStatistics!, HKStatisticsCollection!, NSError!) -> Void)! |
To | var statisticsUpdateHandler: ((HKStatisticsCollectionQuery, HKStatistics?, HKStatisticsCollection?, NSError?) -> Void)? |
Modified HKStatisticsOptions [struct]
Declaration | Protocols | |
---|---|---|
From | struct HKStatisticsOptions : RawOptionSetType { init(_ rawValue: UInt) 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 } } | RawOptionSetType |
To | 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 |
Modified HKStatisticsQuery
Declaration | |
---|---|
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: (HKStatisticsQuery, HKStatistics?, NSError?) -> Void) } |
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: (HKStatisticsQuery, HKStatistics?, NSError?) -> Void) |
Modified HKUnit
Declaration | |
---|---|
From | class HKUnit : NSObject, NSSecureCoding, NSCoding, 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 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! } 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! } |
To | class HKUnit : NSObject, NSSecureCoding, NSCoding, 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 } |
Declaration | |
---|---|
From | class func atmosphereUnit() -> Self! |
To | class func atmosphereUnit() -> Self |
Modified HKUnit.calorieUnit() -> Self [class]
Declaration | |
---|---|
From | class func calorieUnit() -> Self! |
To | class func calorieUnit() -> Self |
Declaration | |
---|---|
From | class func centimeterOfWaterUnit() -> Self! |
To | class func centimeterOfWaterUnit() -> Self |
Modified HKUnit.countUnit() -> Self [class]
Declaration | |
---|---|
From | class func countUnit() -> Self! |
To | class func countUnit() -> Self |
Modified HKUnit.dayUnit() -> Self [class]
Declaration | |
---|---|
From | class func dayUnit() -> Self! |
To | class func dayUnit() -> Self |
Declaration | |
---|---|
From | class func degreeCelsiusUnit() -> Self! |
To | class func degreeCelsiusUnit() -> Self |
Declaration | |
---|---|
From | class func degreeFahrenheitUnit() -> Self! |
To | class func degreeFahrenheitUnit() -> Self |
Declaration | |
---|---|
From | class func energyFormatterUnitFromUnit(_ unit: HKUnit!) -> NSEnergyFormatterUnit |
To | class func energyFormatterUnitFromUnit(_ unit: HKUnit) -> NSEnergyFormatterUnit |
Declaration | |
---|---|
From | class func fluidOunceImperialUnit() -> Self! |
To | class func fluidOunceImperialUnit() -> Self |
Declaration | |
---|---|
From | class func fluidOunceUSUnit() -> Self! |
To | class func fluidOunceUSUnit() -> Self |
Modified HKUnit.footUnit() -> Self [class]
Declaration | |
---|---|
From | class func footUnit() -> Self! |
To | class func footUnit() -> Self |
Modified HKUnit.gramUnit() -> Self [class]
Declaration | |
---|---|
From | class func gramUnit() -> Self! |
To | class func gramUnit() -> Self |
Declaration | |
---|---|
From | class func gramUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self! |
To | class func gramUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self |
Modified HKUnit.hourUnit() -> Self [class]
Declaration | |
---|---|
From | class func hourUnit() -> Self! |
To | class func hourUnit() -> Self |
Modified HKUnit.inchUnit() -> Self [class]
Declaration | |
---|---|
From | class func inchUnit() -> Self! |
To | class func inchUnit() -> Self |
Declaration | |
---|---|
From | convenience init!(fromEnergyFormatterUnit energyFormatterUnit: NSEnergyFormatterUnit) |
To | convenience init(fromEnergyFormatterUnit energyFormatterUnit: NSEnergyFormatterUnit) |
Declaration | |
---|---|
From | convenience init!(fromLengthFormatterUnit lengthFormatterUnit: NSLengthFormatterUnit) |
To | convenience init(fromLengthFormatterUnit lengthFormatterUnit: NSLengthFormatterUnit) |
Declaration | |
---|---|
From | convenience init!(fromMassFormatterUnit massFormatterUnit: NSMassFormatterUnit) |
To | convenience init(fromMassFormatterUnit massFormatterUnit: NSMassFormatterUnit) |
Modified HKUnit.init(fromString: String)
Declaration | |
---|---|
From | convenience init!(fromString string: String!) |
To | convenience init(fromString string: String) |
Modified HKUnit.jouleUnit() -> Self [class]
Declaration | |
---|---|
From | class func jouleUnit() -> Self! |
To | class func jouleUnit() -> Self |
Declaration | |
---|---|
From | class func jouleUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self! |
To | class func jouleUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self |
Modified HKUnit.kelvinUnit() -> Self [class]
Declaration | |
---|---|
From | class func kelvinUnit() -> Self! |
To | class func kelvinUnit() -> Self |
Declaration | |
---|---|
From | class func kilocalorieUnit() -> Self! |
To | class func kilocalorieUnit() -> Self |
Declaration | |
---|---|
From | class func lengthFormatterUnitFromUnit(_ unit: HKUnit!) -> NSLengthFormatterUnit |
To | class func lengthFormatterUnitFromUnit(_ unit: HKUnit) -> NSLengthFormatterUnit |
Modified HKUnit.literUnit() -> Self [class]
Declaration | |
---|---|
From | class func literUnit() -> Self! |
To | class func literUnit() -> Self |
Declaration | |
---|---|
From | class func literUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self! |
To | class func literUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self |
Declaration | |
---|---|
From | class func massFormatterUnitFromUnit(_ unit: HKUnit!) -> NSMassFormatterUnit |
To | class func massFormatterUnitFromUnit(_ unit: HKUnit) -> NSMassFormatterUnit |
Modified HKUnit.meterUnit() -> Self [class]
Declaration | |
---|---|
From | class func meterUnit() -> Self! |
To | class func meterUnit() -> Self |
Declaration | |
---|---|
From | class func meterUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self! |
To | class func meterUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self |
Modified HKUnit.mileUnit() -> Self [class]
Declaration | |
---|---|
From | class func mileUnit() -> Self! |
To | class func mileUnit() -> Self |
Declaration | |
---|---|
From | class func millimeterOfMercuryUnit() -> Self! |
To | class func millimeterOfMercuryUnit() -> Self |
Modified HKUnit.minuteUnit() -> Self [class]
Declaration | |
---|---|
From | class func minuteUnit() -> Self! |
To | class func minuteUnit() -> Self |
Declaration | |
---|---|
From | class func moleUnitWithMetricPrefix(_ prefix: HKMetricPrefix, molarMass gramsPerMole: Double) -> Self! |
To | class func moleUnitWithMetricPrefix(_ prefix: HKMetricPrefix, molarMass gramsPerMole: Double) -> Self |
Declaration | |
---|---|
From | class func moleUnitWithMolarMass(_ gramsPerMole: Double) -> Self! |
To | class func moleUnitWithMolarMass(_ gramsPerMole: Double) -> Self |
Modified HKUnit.ounceUnit() -> Self [class]
Declaration | |
---|---|
From | class func ounceUnit() -> Self! |
To | class func ounceUnit() -> Self |
Modified HKUnit.pascalUnit() -> Self [class]
Declaration | |
---|---|
From | class func pascalUnit() -> Self! |
To | class func pascalUnit() -> Self |
Declaration | |
---|---|
From | class func pascalUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self! |
To | class func pascalUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self |
Modified HKUnit.percentUnit() -> Self [class]
Declaration | |
---|---|
From | class func percentUnit() -> Self! |
To | class func percentUnit() -> Self |
Declaration | |
---|---|
From | class func pintImperialUnit() -> Self! |
To | class func pintImperialUnit() -> Self |
Modified HKUnit.pintUSUnit() -> Self [class]
Declaration | |
---|---|
From | class func pintUSUnit() -> Self! |
To | class func pintUSUnit() -> Self |
Modified HKUnit.poundUnit() -> Self [class]
Declaration | |
---|---|
From | class func poundUnit() -> Self! |
To | class func poundUnit() -> Self |
Modified HKUnit.reciprocalUnit() -> HKUnit
Declaration | |
---|---|
From | func reciprocalUnit() -> HKUnit! |
To | func reciprocalUnit() -> HKUnit |
Modified HKUnit.secondUnit() -> Self [class]
Declaration | |
---|---|
From | class func secondUnit() -> Self! |
To | class func secondUnit() -> Self |
Declaration | |
---|---|
From | class func secondUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self! |
To | class func secondUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self |
Modified HKUnit.siemenUnit() -> Self [class]
Declaration | |
---|---|
From | class func siemenUnit() -> Self! |
To | class func siemenUnit() -> Self |
Declaration | |
---|---|
From | class func siemenUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self! |
To | class func siemenUnitWithMetricPrefix(_ prefix: HKMetricPrefix) -> Self |
Modified HKUnit.stoneUnit() -> Self [class]
Declaration | |
---|---|
From | class func stoneUnit() -> Self! |
To | class func stoneUnit() -> Self |
Declaration | |
---|---|
From | func unitDividedByUnit(_ unit: HKUnit!) -> HKUnit! |
To | func unitDividedByUnit(_ unit: HKUnit) -> HKUnit |
Declaration | |
---|---|
From | func unitMultipliedByUnit(_ unit: HKUnit!) -> HKUnit! |
To | func unitMultipliedByUnit(_ unit: HKUnit) -> HKUnit |
Declaration | |
---|---|
From | func unitRaisedToPower(_ power: Int) -> HKUnit! |
To | func unitRaisedToPower(_ power: Int) -> HKUnit |
Modified HKUnit.unitString
Declaration | |
---|---|
From | var unitString: String! { get } |
To | var unitString: String { get } |
Modified HKUpdateFrequency [enum]
Raw Value Type | |
---|---|
From | -- |
To | Int |
Modified HKWorkout
Declaration | |
---|---|
From | class HKWorkout : HKSample { var workoutActivityType: HKWorkoutActivityType { get } var workoutEvents: [AnyObject]! { 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: [AnyObject]!, totalEnergyBurned totalEnergyBurned: HKQuantity!, totalDistance totalDistance: HKQuantity!, metadata metadata: [NSObject : AnyObject]!) class func workoutWithActivityType(_ workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate!, endDate endDate: NSDate!, workoutEvents workoutEvents: [AnyObject]!, totalEnergyBurned totalEnergyBurned: HKQuantity!, totalDistance totalDistance: HKQuantity!, metadata metadata: [NSObject : AnyObject]!) -> Self! convenience init!(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate!, endDate endDate: NSDate!, duration duration: NSTimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity!, totalDistance totalDistance: HKQuantity!, metadata metadata: [NSObject : AnyObject]!) class func workoutWithActivityType(_ workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate!, endDate endDate: NSDate!, duration duration: NSTimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity!, totalDistance totalDistance: HKQuantity!, metadata metadata: [NSObject : AnyObject]!) -> Self! } |
To | 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 } |
Declaration | |
---|---|
From | convenience init!(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate!, endDate endDate: NSDate!) |
To | convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate) |
Declaration | |
---|---|
From | convenience init!(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate!, endDate endDate: NSDate!, duration duration: NSTimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity!, totalDistance totalDistance: HKQuantity!, metadata metadata: [NSObject : AnyObject]!) |
To | convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, duration duration: NSTimeInterval, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : AnyObject]?) |
Declaration | |
---|---|
From | convenience init!(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate!, endDate endDate: NSDate!, workoutEvents workoutEvents: [AnyObject]!, totalEnergyBurned totalEnergyBurned: HKQuantity!, totalDistance totalDistance: HKQuantity!, metadata metadata: [NSObject : AnyObject]!) |
To | convenience init(activityType workoutActivityType: HKWorkoutActivityType, startDate startDate: NSDate, endDate endDate: NSDate, workoutEvents workoutEvents: [HKWorkoutEvent]?, totalEnergyBurned totalEnergyBurned: HKQuantity?, totalDistance totalDistance: HKQuantity?, metadata metadata: [String : AnyObject]?) |
Modified HKWorkout.totalDistance
Declaration | |
---|---|
From | var totalDistance: HKQuantity! { get } |
To | var totalDistance: HKQuantity? { get } |
Modified HKWorkout.totalEnergyBurned
Declaration | |
---|---|
From | var totalEnergyBurned: HKQuantity! { get } |
To | var totalEnergyBurned: HKQuantity? { get } |
Modified HKWorkout.workoutEvents
Declaration | |
---|---|
From | var workoutEvents: [AnyObject]! { get } |
To | var workoutEvents: [HKWorkoutEvent]? { get } |
Modified HKWorkoutActivityType [enum]
Raw Value Type | |
---|---|
From | -- |
To | UInt |
Modified HKWorkoutEvent
Declaration | |
---|---|
From | class HKWorkoutEvent : NSObject, NSSecureCoding, NSCoding { 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!() } |
To | class HKWorkoutEvent : NSObject, NSSecureCoding, NSCoding { 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() } |
Modified HKWorkoutEvent.date
Declaration | |
---|---|
From | @NSCopying var date: NSDate! { get } |
To | @NSCopying var date: NSDate { get } |
Declaration | |
---|---|
From | convenience init!(type type: HKWorkoutEventType, date date: NSDate!) |
To | convenience init(type type: HKWorkoutEventType, date date: NSDate) |
Modified HKWorkoutEventType [enum]
Raw Value Type | |
---|---|
From | -- |
To | Int |