Struct apple_bundle::info_plist::app_services::Intents[][src]

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
intents_restricted_while_protected_data_unavailable: Option<Vec<String>>

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

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.