addAudioToPage
The app intent conforms to the schema for adding audio to a page in a text document.
Declaration
var addAudioToPage: some AssistantSchemas.Intent { get }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 .wordProcessor.addAudioToPage schema:
@AppIntent(schema: .wordProcessor.addAudioToPage)
struct AddAudioToWordProcessorPageIntent: AppIntent {
@Parameter
var target: WordProcessorPageEntity
@Parameter(supportedContentTypes: [.audio])
var audio: IntentFile
func perform() async throws -> some IntentResult {
.result()
}
}