static internal NSString ToKey(HKCorrelationTypeIdentifier kind) { switch (kind) { case HKCorrelationTypeIdentifier.BloodPressure: return(HKCorrelationTypeKey.IdentifierBloodPressure); case HKCorrelationTypeIdentifier.Food: return(HKCorrelationTypeKey.IdentifierFood); } return(null); }
public static HKCorrelationType Create(HKCorrelationTypeIdentifier kind) { return(HKObjectType.GetCorrelationType(ToKey(kind))); }