static internal NSString ToKey(HKCategoryTypeIdentifier kind) { switch (kind) { case HKCategoryTypeIdentifier.SleepAnalysis: return(HKCategoryTypeIdentifierKey.SleepAnalysis); case HKCategoryTypeIdentifier.AppleStandHour: return(HKCategoryTypeIdentifierKey.AppleStandHour); case HKCategoryTypeIdentifier.CervicalMucusQuality: return(HKCategoryTypeIdentifierKey.CervicalMucusQuality); case HKCategoryTypeIdentifier.OvulationTestResult: return(HKCategoryTypeIdentifierKey.OvulationTestResult); case HKCategoryTypeIdentifier.MenstrualFlow: return(HKCategoryTypeIdentifierKey.MenstrualFlow); case HKCategoryTypeIdentifier.IntermenstrualBleeding: return(HKCategoryTypeIdentifierKey.IntermenstrualBleeding); case HKCategoryTypeIdentifier.SexualActivity: return(HKCategoryTypeIdentifierKey.SexualActivity); case HKCategoryTypeIdentifier.MindfulSession: return(HKCategoryTypeIdentifierKey.MindfulSession); } return(null); }
internal static NSString ToKey(HKCategoryTypeIdentifier kind) { switch (kind){ case HKCategoryTypeIdentifier.SleepAnalysis: return HKCategoryTypeIdentifierKey.SleepAnalysis; case HKCategoryTypeIdentifier.AppleStandHour: return HKCategoryTypeIdentifierKey.AppleStandHour; case HKCategoryTypeIdentifier.CervicalMucusQuality: return HKCategoryTypeIdentifierKey.CervicalMucusQuality; case HKCategoryTypeIdentifier.OvulationTestResult: return HKCategoryTypeIdentifierKey.OvulationTestResult; case HKCategoryTypeIdentifier.MenstrualFlow: return HKCategoryTypeIdentifierKey.MenstrualFlow; case HKCategoryTypeIdentifier.IntermenstrualBleeding: return HKCategoryTypeIdentifierKey.IntermenstrualBleeding; case HKCategoryTypeIdentifier.SexualActivity: return HKCategoryTypeIdentifierKey.SexualActivity; } return null; }
public static HKCategoryType Create(HKCategoryTypeIdentifier kind) { return HKObjectType.GetCategoryType (ToKey (kind)); }
public static HKCategoryType Create(HKCategoryTypeIdentifier kind) { return(HKObjectType.GetCategoryType(ToKey(kind))); }
public static HKCategoryType Create(HKCategoryTypeIdentifier kind) { return(HKObjectType.GetCategoryType(kind.GetConstant())); }
public HealthKitData(HKCategoryTypeIdentifier identifier) { CategoryTypeIdentifier = identifier; HKType = HKTypes.Category; Permission = HKCategoryType.Create(identifier); }