HKQuantitySample.FromType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FromType(HKQuantityType, HKQuantity, NSDate, NSDate) |
Creates and returns a new HKQuantitySample for the specified data. |
FromType(HKQuantityType, HKQuantity, NSDate, NSDate, NSDictionary) |
Creates a new HKQuantitySample, using a loosely typed NSDictionary for metadata. |
FromType(HKQuantityType, HKQuantity, NSDate, NSDate, HKMetadata) |
Creates a new HKQuantitySample, using a stronglty typed HKMetadata for the metadata. |
FromType(HKQuantityType, HKQuantity, NSDate, NSDate, HKDevice, NSDictionary<NSString,NSObject>) |
Creates and returns a new HKQuantitySample for the specified data. |
FromType(HKQuantityType, HKQuantity, NSDate, NSDate)
Creates and returns a new HKQuantitySample for the specified data.
[Foundation.Export("quantitySampleWithType:quantity:startDate:endDate:")]
public static HealthKit.HKQuantitySample FromType (HealthKit.HKQuantityType quantityType, HealthKit.HKQuantity quantity, Foundation.NSDate startDate, Foundation.NSDate endDate);
static member FromType : HealthKit.HKQuantityType * HealthKit.HKQuantity * Foundation.NSDate * Foundation.NSDate -> HealthKit.HKQuantitySample
Parameters
- quantityType
- HKQuantityType
- quantity
- HKQuantity
- startDate
- NSDate
- endDate
- NSDate
Returns
- Attributes
Applies to
FromType(HKQuantityType, HKQuantity, NSDate, NSDate, NSDictionary)
Creates a new HKQuantitySample, using a loosely typed NSDictionary for metadata.
[Foundation.Export("quantitySampleWithType:quantity:startDate:endDate:metadata:")]
public static HealthKit.HKQuantitySample FromType (HealthKit.HKQuantityType quantityType, HealthKit.HKQuantity quantity, Foundation.NSDate startDate, Foundation.NSDate endDate, Foundation.NSDictionary metadata);
static member FromType : HealthKit.HKQuantityType * HealthKit.HKQuantity * Foundation.NSDate * Foundation.NSDate * Foundation.NSDictionary -> HealthKit.HKQuantitySample
Parameters
- quantityType
- HKQuantityType
- quantity
- HKQuantity
- startDate
- NSDate
- endDate
- NSDate
Returns
- Attributes
Applies to
FromType(HKQuantityType, HKQuantity, NSDate, NSDate, HKMetadata)
Creates a new HKQuantitySample, using a stronglty typed HKMetadata for the metadata.
public static HealthKit.HKQuantitySample FromType (HealthKit.HKQuantityType quantityType, HealthKit.HKQuantity quantity, Foundation.NSDate startDate, Foundation.NSDate endDate, HealthKit.HKMetadata metadata);
static member FromType : HealthKit.HKQuantityType * HealthKit.HKQuantity * Foundation.NSDate * Foundation.NSDate * HealthKit.HKMetadata -> HealthKit.HKQuantitySample
Parameters
- quantityType
- HKQuantityType
- quantity
- HKQuantity
- startDate
- NSDate
- endDate
- NSDate
- metadata
- HKMetadata
Returns
Applies to
FromType(HKQuantityType, HKQuantity, NSDate, NSDate, HKDevice, NSDictionary<NSString,NSObject>)
Creates and returns a new HKQuantitySample for the specified data.
[Foundation.Export("quantitySampleWithType:quantity:startDate:endDate:device:metadata:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static HealthKit.HKQuantitySample FromType (HealthKit.HKQuantityType quantityType, HealthKit.HKQuantity quantity, Foundation.NSDate startDate, Foundation.NSDate endDate, HealthKit.HKDevice device, Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> metadata);
static member FromType : HealthKit.HKQuantityType * HealthKit.HKQuantity * Foundation.NSDate * Foundation.NSDate * HealthKit.HKDevice * Foundation.NSDictionary<Foundation.NSString, Foundation.NSObject> -> HealthKit.HKQuantitySample
Parameters
- quantityType
- HKQuantityType
- quantity
- HKQuantity
- startDate
- NSDate
- endDate
- NSDate
Returns
- Attributes