pub struct BackgroundExecution {
pub ui_background_modes: Option<Vec<UiBackgroundMode>>,
pub ui_device_family: Option<Vec<u8>>,
pub wk_background_modes: Option<Vec<WkBackgroundMode>>,
pub task_scheduler_permitted_identifiers: Option<Vec<String>>,
pub background_only: Option<bool>,
}Expand description
Background Execution
Fields§
§ui_background_modes: Option<Vec<UiBackgroundMode>>Services provided by an app that require it to run in the background.
§Availability
- iOS 4.0+
- watchOS 4.0+
§Framework
- UIKit
ui_device_family: Option<Vec<u8>>Specifies the underlying hardware type on which this app is designed to run.
§Important
Do not insert this key manually into your Info.plist files. Xcode inserts it automatically based on the value in the Targeted Device Family build setting. You should use that build setting to change the value of the key.
The value of this key is usually an integer but it can also be an array of integers. Table 4 lists the possible integer values you can use and the corresponding devices.
§Values for the UIDeviceFamily key:
1 (Default) The app runs on iPhone and iPod touch devices. 2 The app runs on iPad devices.
§Availability
- iOS 3.2+
§Framework
- UIKit
wk_background_modes: Option<Vec<WkBackgroundMode>>The services a watchOS app provides that require it to continue running in the background.
You can only enable one of the extended runtime session modes (self-care, mindfulness, physical-therapy, or alarm). However, you can enable both an extended runtime session mode and the workout-processing mode. If you set the background modes using Xcode’s Signing & Capabilities tab, Xcode insures that these values are set properly.
§Availability
- watchOS 3.0+
§Framework
- WatchKit
task_scheduler_permitted_identifiers: Option<Vec<String>>An array of strings containing developer-specified task identifiers in reverse URL notation.
§Availability
- iOS 13.0+
- tvOS 13.0+
§Framework
- Background Tasks
background_only: Option<bool>A Boolean value indicating whether the app runs only in the background.
§Availability
- macOS 10.0+
§Framework
- Core Services
Trait Implementations§
Source§impl Clone for BackgroundExecution
impl Clone for BackgroundExecution
Source§fn clone(&self) -> BackgroundExecution
fn clone(&self) -> BackgroundExecution
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BackgroundExecution
impl Debug for BackgroundExecution
Source§impl Default for BackgroundExecution
impl Default for BackgroundExecution
Source§fn default() -> BackgroundExecution
fn default() -> BackgroundExecution
Source§impl<'de> Deserialize<'de> for BackgroundExecution
impl<'de> Deserialize<'de> for BackgroundExecution
Source§fn 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>,
Source§impl PartialEq for BackgroundExecution
impl PartialEq for BackgroundExecution
Source§impl Serialize for BackgroundExecution
impl Serialize for BackgroundExecution
impl Eq for BackgroundExecution
impl StructuralPartialEq for BackgroundExecution
Auto Trait Implementations§
impl Freeze for BackgroundExecution
impl RefUnwindSafe for BackgroundExecution
impl Send for BackgroundExecution
impl Sync for BackgroundExecution
impl Unpin for BackgroundExecution
impl UnwindSafe for BackgroundExecution
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.