HKCategorySample.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(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
- type
- HKCategoryType
- 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
- type
- HKCategoryType
- value
- System.System.IntPtr System.nativeint
- startDate
- NSDate
- endDate
- NSDate
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
- type
- HKCategoryType
- 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
- type
- HKCategoryType
- value
- System.System.IntPtr System.nativeint
- startDate
- NSDate
- endDate
- NSDate
Returns
- Attributes