Struct apple_bundle::info_plist::protected_resources::Motion[][src]

pub struct Motion {
    pub motion_usage_description: Option<String>,
    pub fall_detection_usage_description: Option<String>,
}
Expand description

Motion

Fields

motion_usage_description: Option<String>

A message that tells the user why the app is requesting access to the device’s motion data.

Important

This key is required if your app uses APIs that access the device’s motion data, including CMSensorRecorder, CMPedometer, CMMotionActivityManager, and CMMovementDisorderManager. If you don’t include this key, your app will crash when it attempts to access motion data.

Availability

  • iOS 7.0+
  • macOS 10.15+

Framework

  • Core Motion
fall_detection_usage_description: Option<String>

A message to the user that explains the app’s request for permission to access fall detection event data.

Important

If your app uses the CMFallDetectionManager, the app requires this key.

Availability

  • watchOS 7.2+

Framework

  • Core Motion

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.