Struct apple_bundle::info_plist::protected_resources::Health
source · [−]pub struct Health {
pub healthkit: Option<bool>,
pub healthkit_access: Option<Vec<HealthKitCapabilities>>,
pub health_clinical_health_records_share_usage_description: Option<String>,
pub health_share_usage_description: Option<String>,
pub health_update_usage_description: Option<String>,
pub health_required_read_authorization_type_identifiers: Option<Vec<String>>,
}
Expand description
Health
Fields
healthkit: Option<bool>
A Boolean value that indicates whether the app may request user authorization to access health and activity data that appears in the Health app.
To add this entitlement to your app, enable the HealthKit capability in Xcode.
Availability
- iOS 8.0+
Framework
- HealthKit
healthkit_access: Option<Vec<HealthKitCapabilities>>
Health data types that require additional permission.
The HealthKit Entitlement provides access to most HealthKit data types. However, because of their highly sensitive nature, some data types require additional entitlements. The HealthKit Capabilities Entitlement provides access to these data types.
To add this entitlement to your app, first enable the HealthKit capability in Xcode, and then check any values that you want to add to the HealthKit Capabilities Entitlement.
Only add values for data types that your app needs to access. App Review may reject apps that don’t use the data appropriately. For more information, see the Health and Health Research section of the App Store Review Guidelines.
Availability
- iOS 8.0+
Framework
- HealthKit
A message to the user that explains why the app requested permission to read clinical records.
Important
This key is required if your app uses APIs that access the user’s clinical records.
Availability
- iOS 12.0+
Framework
- HealthKit
A message to the user that explains why the app requested permission to read samples from the HealthKit store.
Important
This key is required if your app uses APIs that access the user’s heath data.
Availability
- iOS 8.0+
Framework
- HealthKit
health_update_usage_description: Option<String>
A message to the user that explains why the app requested permission to save samples to the HealthKit store.
Important
This key is required if your app uses APIs that update the user’s health data.
Availability
- iOS 8.0+
Framework
- HealthKit
The clinical record data types that your app must get permission to read.
Use this key to indicate that your app requires access to specific clinical record data types to function properly. Set the value to an array of strings containing the type identifiers for your required types. For a list of type identifiers, see HKClinicalTypeIdentifier.
To protect the user’s privacy, you must specify three or more required clinical record types. If the user denies authorization to any of the types, authorization fails with an HKError.Code.errorRequiredAuthorizationDenied error. Your app is not told the record types to which the user denied access.
Availability
- iOS 12.0+
Framework
- HealthKit
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Health
impl<'de> Deserialize<'de> for Health
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Health
impl StructuralEq for Health
impl StructuralPartialEq for Health
Auto Trait Implementations
impl RefUnwindSafe for Health
impl Send for Health
impl Sync for Health
impl Unpin for Health
impl UnwindSafe for Health
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.