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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Motionimpl UnwindSafe for MotionBlanket Implementations
Mutably borrows from an owned value. Read more