Edit

Share via


HKCategorySample.FromType Method

Definition

Overloads

FromType(HKCategoryType, nint, NSDate, NSDate)
FromType(HKCategoryType, nint, NSDate, NSDate, NSDictionary)
FromType(HKCategoryType, nint, NSDate, NSDate, HKMetadata)
FromType(HKCategoryType, nint, NSDate, NSDate, HKDevice, NSDictionary<NSString,NSObject>)

Creates and returns a new HKCategorySample of the specified type, with the specified values.

FromType(HKCategoryType, nint, NSDate, NSDate)

[Foundation.Export("categorySampleWithType:value:startDate:endDate:")]
public static HealthKit.HKCategorySample FromType (HealthKit.HKCategoryType type, nint value, Foundation.NSDate startDate, Foundation.NSDate endDate);
static member FromType : HealthKit.HKCategoryType * nint * Foundation.NSDate * Foundation.NSDate -> HealthKit.HKCategorySample

Parameters

value
System.System.IntPtr System.nativeint
startDate
NSDate
endDate
NSDate

Returns

Attributes

Applies to

FromType(HKCategoryType, nint, NSDate, NSDate, NSDictionary)

[Foundation.Export("categorySampleWithType:value:startDate:endDate:metadata:")]
public static HealthKit.HKCategorySample FromType (HealthKit.HKCategoryType type, nint value, Foundation.NSDate startDate, Foundation.NSDate endDate, Foundation.NSDictionary metadata);
static member FromType : HealthKit.HKCategoryType * nint * Foundation.NSDate * Foundation.NSDate * Foundation.NSDictionary -> HealthKit.HKCategorySample

Parameters

value
System.System.IntPtr System.nativeint
startDate
NSDate
endDate
NSDate
metadata
NSDictionary

To be added.

This parameter can be null.

Returns

Attributes

Applies to

FromType(HKCategoryType, nint, NSDate, NSDate, HKMetadata)

public static HealthKit.HKCategorySample FromType (HealthKit.HKCategoryType type, nint value, Foundation.NSDate startDate, Foundation.NSDate endDate, HealthKit.HKMetadata metadata);
static member FromType : HealthKit.HKCategoryType * nint * Foundation.NSDate * Foundation.NSDate * HealthKit.HKMetadata -> HealthKit.HKCategorySample

Parameters

value
System.System.IntPtr System.nativeint
startDate
NSDate
endDate
NSDate
metadata
HKMetadata

Returns

Applies to

FromType(HKCategoryType, nint, NSDate, NSDate, HKDevice, NSDictionary<NSString,NSObject>)

Creates and returns a new HKCategorySample of the specified type, with the specified values.

[Foundation.Export("categorySampleWithType:value:startDate:endDate:device:metadata:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static HealthKit.HKCategorySample FromType (HealthKit.HKCategoryType type, nint value, Foundation.NSDate startDate, Foundation.NSDate endDate, HealthKit.HKDevice device, Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> metadata);
static member FromType : HealthKit.HKCategoryType * nint * Foundation.NSDate * Foundation.NSDate * HealthKit.HKDevice * Foundation.NSDictionary<Foundation.NSString, Foundation.NSObject> -> HealthKit.HKCategorySample

Parameters

value
System.System.IntPtr System.nativeint
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