pub struct Intents {
pub intents_supported: Option<Vec<String>>,
pub intents_restricted_while_locked: Option<Vec<String>>,
pub intents_restricted_while_protected_data_unavailable: Option<Vec<String>>,
pub supported_media_categories: Option<Vec<SupportedMediaCategories>>,
}Expand description
Intents
Fields§
§intents_supported: Option<Vec<String>>The names of the intent classes your app handles directly.
Provide the class name of each INIntent subclass your app can handle. To specify this information in Xcode, add the class names in the Supported Intents section of your app target in the Project Editor.
For more information on handling intents in your app, see application(_:handlerFor:).
§Tip
You can start handling an intent in your app even if you want to support the intent in iOS 13. List the intent in the Supported Intents sections for both the app target and the extension target. For an app running on iOS 13, the system routes the intent with handler(for:), and for later iOS versions, it routes the intent with application(_:handlerFor:).
§Availability
- iOS 14.0+
- tvOS 14.0+
§Framework
- Intents
intents_restricted_while_locked: Option<Vec<String>>The names of the intent classes your app can’t handle when the user locks the device.
To specify this information in Xcode, add the intent class name to your app target’s Supported Intents in the Project Editor. Then set the Authentication level to Restricted While Locked.
§Availability
- iOS 14.0+
- tvOS 14.0+
§Framework
- Intents
The names of the intent classes your app can’t handle when the user locks the device or the system blocks access to protected data.
To specify this information in Xcode, add the intent class name to your app target’s Supported Intents in the Project Editor. Then set the Authentication level to Restricted While Locked or Protected Data Unavailable.
§Availability
- iOS 14.0+
- tvOS 14.0+
§Framework
- Intents
supported_media_categories: Option<Vec<SupportedMediaCategories>>Types of media supported by your app’s media-playing intents.
Specify one or more media categories to allow Siri to invoke your app’s intent handling when a user asks to play media. Use INMediaCategoryGeneral for media that doesn’t fit into any of the other categories, like white noise or sound effects.
To specify this information in Xcode, add INPlayMediaIntent to your app’s list of Supported Intents. Then select the relevant media types in the list that appears.
§Availability
- iOS 14.0+
- tvOS 14.0+
§Framework
- Intents
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Intents
impl<'de> Deserialize<'de> for Intents
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>,
impl Eq for Intents
impl StructuralPartialEq for Intents
Auto Trait Implementations§
impl Freeze for Intents
impl RefUnwindSafe for Intents
impl Send for Intents
impl Sync for Intents
impl Unpin for Intents
impl UnwindSafe for Intents
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.