One Logo Pool Ball
AppIntents · IOS API REFERENCE

AssistantSchemas.PresentationIntent

protocol · iOS 16.0+ · SDK 27.1

protocol PresentationIntent : AssistantSchemas.Model

Assistant schema conformance for app intents that offer presentation functionality.

Members (15)

get · iOS 16.0+

createSlide

Swift declaration
var createSlide: some AssistantSchemas.Intent { get }

The app intent conforms to the schema for creating a new slide for a presentation. ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app intent implementation. The following example shows an app intent that conforms to the `.presentation.createSlide` schema: ```swift @AppIntent(schema: .presentation.createSlide) struct CreatePresentationSlideIntent: AppIntent { @Parameter var presentation: PresentationEntity @Parameter var slideLayout: String? func perform() async throws -> some ReturnsValue<PresentationSlideEntity> { .result(value: PresentationSlideEntity()) } } ``` For more information about the `.presentation` app intent domain, see <doc:app-schema-domain-presentation>. For general information about app intent domains, see <doc:making-actions-and-content-discoverable-by-apple-intelligence>.

get · iOS 16.0+

deleteSlide

Swift declaration
var deleteSlide: some AssistantSchemas.Intent { get }

The app intent conforms to the schema for deleting a slide. ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app intent implementation. The following example shows an app intent that conforms to the `.presentation.deleteSlide` schema: ```swift @AppIntent(schema: .presentation.deleteSlide) struct DeletePresentationSlideIntent: DeleteIntent { @Parameter var entities: [PresentationSlideEntity] func perform() async throws -> some IntentResult { .result() } } ``` For more information about the `.presentation` app intent domain, see <doc:app-schema-domain-presentation>. For general information about app intent domains, see <doc:making-actions-and-content-discoverable-by-apple-intelligence>.

get · iOS 16.0+

stopPlayback

Swift declaration
var stopPlayback: some AssistantSchemas.Intent { get }

The app intent conforms to the schema for stopping a presentation. ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app intent implementation. The following example shows an app intent that conforms to the `.presentation.stopPlayback` schema: ```swift @AppIntent(schema: .presentation.stopPlayback) struct StopPlaybackPresentationIntent: AppIntent { @Parameter var target: PresentationSlideEntity func perform() async throws -> some IntentResult { .result() } } ``` For more information about the `.presentation` app intent domain, see <doc:app-schema-domain-presentation>. For general information about app intent domains, see <doc:making-actions-and-content-discoverable-by-apple-intelligence>.

get · iOS 16.0+

setSlideTitle

Swift declaration
var setSlideTitle: some AssistantSchemas.Intent { get }

The app intent conforms to the schema for setting the title of a slide. ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app intent implementation. The following example shows an app intent that conforms to the `.presentation.setSlideTitle` schema: ```swift @AppIntent(schema: .presentation.setSlideTitle) struct UpdatePresentationSlideIntent: AppIntent { @Parameter var target: PresentationSlideEntity @Parameter var title: String func perform() async throws -> some IntentResult { .result() } } ``` For more information about the `.presentation` app intent domain, see <doc:app-schema-domain-presentation>. For general information about app intent domains, see <doc:making-actions-and-content-discoverable-by-apple-intelligence>.

get · iOS 16.0+

startPlayback

Swift declaration
var startPlayback: some AssistantSchemas.Intent { get }

The app intent conforms to the schema for starting a presentation. ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app intent implementation. The following example shows an app intent that conforms to the `.presentation.startPlayback` schema: ```swift @AppIntent(schema: .presentation.startPlayback) struct StartPlaybackPresentationIntent: AppIntent { @Parameter var presentation: PresentationEntity @Parameter var target: PresentationSlideEntity? func perform() async throws -> some IntentResult { .result() } } ``` For more information about the `.presentation` app intent domain, see <doc:app-schema-domain-presentation>. For general information about app intent domains, see <doc:making-actions-and-content-discoverable-by-apple-intelligence>.

get · iOS 16.0+

addAudioToSlide

Swift declaration
var addAudioToSlide: some AssistantSchemas.Intent { get }

The app intent conforms to the schema for adding audio to a slide. ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app intent implementation. The following example shows an app intent that conforms to the `.presentation.addAudioToSlide` schema: ```swift @AppIntent(schema: .presentation.addAudioToSlide) struct AddAudioToPresentationSlideIntent: AppIntent { @Parameter var target: PresentationSlideEntity @Parameter var audio: IntentFile func perform() async throws -> some IntentResult { .result() } } ```

get · iOS 16.0+

addImageToSlide

Swift declaration
var addImageToSlide: some AssistantSchemas.Intent { get }

The app intent conforms to the schema for adding an image to a slide. ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app intent implementation. The following example shows an app intent that conforms to the `.presentation.addImageToSlide` schema: ```swift @AppIntent(schema: .presentation.addImageToSlide) struct AddImageToPresentationSlideIntent: AppIntent { @Parameter var target: PresentationSlideEntity @Parameter var image: IntentFile func perform() async throws -> some IntentResult { .result() } } ``` For more information about the `.presentation` app intent domain, see <doc:app-schema-domain-presentation>. For general information about app intent domains, see <doc:making-actions-and-content-discoverable-by-apple-intelligence>.

get · iOS 16.0+

addVideoToSlide

Swift declaration
var addVideoToSlide: some AssistantSchemas.Intent { get }

The app intent conforms to the schema for adding a video to a slide. ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app intent implementation. The following example shows an app intent that conforms to the `.presentation.addVideoToSlide` schema: ```swift @AppIntent(schema: .presentation.addVideoToSlide) struct AddVideoToPresentationSlideIntent: AppIntent { @Parameter var target: PresentationSlideEntity @Parameter var video: IntentFile func perform() async throws -> some IntentResult { .result() } } ``` For more information about the `.presentation` app intent domain, see <doc:app-schema-domain-presentation>. For general information about app intent domains, see <doc:making-actions-and-content-discoverable-by-apple-intelligence>.

get · iOS 16.0+

addCommentToSlide

Swift declaration
var addCommentToSlide: some AssistantSchemas.Intent { get }

The app intent conforms to the schema for adding a comment to a slide. ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app intent implementation. The following example shows an app intent that conforms to the `.presentation.addCommentToSlide` schema: ```swift @AppIntent(schema: .presentation.addCommentToSlide) struct AddCommentToPresentationSlideIntent: AppIntent { @Parameter var target: PresentationSlideEntity @Parameter var comment: String? func perform() async throws -> some IntentResult { .result() } } ``` For more information about the `.presentation` app intent domain, see <doc:app-schema-domain-presentation>. For general information about app intent domains, see <doc:making-actions-and-content-discoverable-by-apple-intelligence>.

get · iOS 16.0+

addTextBoxToSlide

Swift declaration
var addTextBoxToSlide: some AssistantSchemas.Intent { get }

The app intent conforms to the schema for adding a text box to a slide. ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app intent implementation. The following example shows an app intent that conforms to the `.presentation.addTextBoxToSlide` schema: ```swift @AppIntent(schema: .presentation.addTextBoxToSlide) struct AddTextBoxToPresentationSlideIntent: AppIntent { @Parameter var target: PresentationSlideEntity @Parameter var text: String func perform() async throws -> some IntentResult { .result() } } ``` For more information about the `.presentation` app intent domain, see <doc:app-schema-domain-presentation>. For general information about app intent domains, see <doc:making-actions-and-content-discoverable-by-apple-intelligence>.

get · iOS 16.0+

addWebVideoToSlide

Swift declaration
var addWebVideoToSlide: some AssistantSchemas.Intent { get }

The app intent conforms to the schema for adding a video from the internet to a slide. ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app intent implementation. The following example shows an app intent that conforms to the `.presentation.addWebVideoToSlide` schema: ```swift @AppIntent(schema: .presentation.addWebVideoToSlide) struct AddWebVideoToPresentationSlideIntent: AppIntent { @Parameter var target: PresentationSlideEntity @Parameter var url: URL func perform() async throws -> some IntentResult { .result() } } ``` For more information about the `.presentation` app intent domain, see <doc:app-schema-domain-presentation>. For general information about app intent domains, see <doc:making-actions-and-content-discoverable-by-apple-intelligence>.

get · iOS 16.0+

open

Swift declaration
var open: some AssistantSchemas.Intent { get }

The app intent conforms to the schema for opening a presentation. ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app intent implementation. The following example shows an app intent that conforms to the `.presentation.open` schema: ```swift @AppIntent(schema: .presentation.open) struct OpenPresentationIntent: OpenIntent { @Parameter var target: PresentationDocumentEntity func perform() async throws -> some IntentResult { .result() } } ``` For more information about the `.presentation` app intent domain, see <doc:app-schema-domain-presentation>. For general information about app intent domains, see <doc:making-actions-and-content-discoverable-by-apple-intelligence>.

get · iOS 16.0+

create

Swift declaration
var create: some AssistantSchemas.Intent { get }

The app intent conforms to the schema for creating a presentation. ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app intent implementation. The following example shows an app intent that conforms to the `.presentation.create` schema: ```swift @AppIntent(schema: .presentation.create) struct CreatePresentationIntent: AppIntent { @Parameter var target: PresentationSlideEntity func perform() async throws -> some ReturnsValue<PresentationEntity> { .result(value: PresentationEntity()) } } ``` For more information about the `.presentation` app intent domain, see <doc:app-schema-domain-presentation>. For general information about app intent domains, see <doc:making-actions-and-content-discoverable-by-apple-intelligence>.

get · iOS 16.0+

update

Swift declaration
var update: some AssistantSchemas.Intent { get }

The app intent conforms to the schema for updating the name of a presentation. ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app intent implementation. The following example shows an app intent that conforms to the `.presentation.update` schema: ```swift @AppIntent(schema: .presentation.update) struct UpdatePresentationIntent: AppIntent { @Parameter var target: PresentationEntity @Parameter var name: String func perform() async throws -> some IntentResult { .result() } } ``` For more information about the `.presentation` app intent domain, see <doc:app-schema-domain-presentation>. For general information about app intent domains, see <doc:making-actions-and-content-discoverable-by-apple-intelligence>.

get · iOS 16.0+

openSlide

Swift declaration
var openSlide: some AssistantSchemas.Intent { get }

The app intent conforms to the schema for opening a slide of a presentation. ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app intent implementation. The following example shows an app intent that conforms to the `.presentation.openSlide` schema: ```swift @AppIntent(schema: .presentation.openSlide) struct OpenPresentationSlideIntent: OpenIntent { @Parameter var target: PresentationSlideEntity func perform() async throws -> some IntentResult { .result() } } ``` For more information about the `.presentation` app intent domain, see <doc:app-schema-domain-presentation>. For general information about app intent domains, see <doc:making-actions-and-content-discoverable-by-apple-intelligence>.

Skipped declarations

No declarations were skipped in this snapshot.

All AppIntents types →