HKQuantitySample.FromType Method

Definition

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
metadata
NSDictionary

To be added.

This parameter can be null.

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
device
HKDevice

To be added.

This parameter can be null.

metadata
NSDictionary<NSString,NSObject>

To be added.

This parameter can be null.

Returns

Attributes

Applies to