private void RefreshCharacteristicValue(NSString characteristicTypeKey, HKCharacteristicType characteristicType) { if (characteristicTypeKey == HKCharacteristicTypeIdentifierKey.BiologicalSex) { NSError error = null; var biologicalSex = HealthStore.GetBiologicalSex(out error); if (error == null) { DispatchQueue.MainQueue.DispatchAsync(() => { var dataStore = StateDispatcher <HealthState> .State; HealthStateMutator.MutateBiologicalSex( dataStore, () => GetDisplayableBiologicalSex(biologicalSex.BiologicalSex)); StateDispatcher <HealthState> .Refresh(); }); } } }
public iOSHealthKitBirthdateProbe() : base(HKCharacteristicType.Create(HKCharacteristicTypeIdentifier.DateOfBirth)) { }
public iOSHealthKitBloodTypeProbe() : base(HKCharacteristicType.Create(HKCharacteristicTypeIdentifier.BloodType)) { }
public iOSHealthKitBiologicalSexProbe() : base(HKCharacteristicType.Create(HKCharacteristicTypeIdentifier.BiologicalSex)) { }
public HealthKitData(HKCharacteristicTypeIdentifier identifier) { HKType = HKTypes.Characteristic; CharacteristicTypeIdentifier = identifier; Permission = HKCharacteristicType.Create(identifier); }
public iOSHealthKitFitzpatrickSkinTypeProbe() : base(HKCharacteristicType.Create(HKCharacteristicTypeIdentifier.FitzpatrickSkinType)) { }
public iOSHealthKitWheelChairUseProbe() : base(HKCharacteristicType.Create(HKCharacteristicTypeIdentifier.WheelchairUse)) { }