categoryName
TypeScriptget categoryName(): (_Foundation_LocalizedStringResource) | nullSwift declarationvar categoryName: LocalizedStringResource?The category in which this intent will be grouped into in the Shortcuts editor.
struct · iOS 16.0+ · SDK 27.1
struct IntentDescriptionThe human-readable description and metadata for an app intent.
get categoryName(): (_Foundation_LocalizedStringResource) | nullSwift declarationvar categoryName: LocalizedStringResource?The category in which this intent will be grouped into in the Shortcuts editor.
set categoryName(value: (_Foundation_LocalizedStringResource) | null)Swift declarationvar categoryName: LocalizedStringResource?The category in which this intent will be grouped into in the Shortcuts editor.
static initStringLiteral(value: string): IntentDescriptionSwift declarationinit(stringLiteral value: String)Creates an instance initialized to the given string value. - Parameter value: The value of the new instance.
get searchKeywords(): Array<_Foundation_LocalizedStringResource>Swift declarationvar searchKeywords: [LocalizedStringResource]A set of keywords which, when searched in the Shortcuts editor, will reveal this intent.
set searchKeywords(value: Array<_Foundation_LocalizedStringResource>)Swift declarationvar searchKeywords: [LocalizedStringResource]A set of keywords which, when searched in the Shortcuts editor, will reveal this intent.
get descriptionText(): _Foundation_LocalizedStringResourceSwift declarationvar descriptionText: LocalizedStringResourceA short, localized, human-readable string that describes the intent using sentence case and followed by a period.
set descriptionText(value: _Foundation_LocalizedStringResource)Swift declarationvar descriptionText: LocalizedStringResourceA short, localized, human-readable string that describes the intent using sentence case and followed by a period.
get resultValueName(): (_Foundation_LocalizedStringResource) | nullSwift declarationvar resultValueName: LocalizedStringResource?A name for the result of this intent, which will be displayed in the Shortcuts editor, such as when the output is used as a variable.
set resultValueName(value: (_Foundation_LocalizedStringResource) | null)Swift declarationvar resultValueName: LocalizedStringResource?A name for the result of this intent, which will be displayed in the Shortcuts editor, such as when the output is used as a variable.
static initCategoryNameSearchKeywordsResultValueName(descriptionText: _Foundation_LocalizedStringResource, categoryName?: (_Foundation_LocalizedStringResource) | null, searchKeywords?: Array<_Foundation_LocalizedStringResource>, resultValueName?: (_Foundation_LocalizedStringResource) | null): IntentDescriptionSwift declarationinit(_ descriptionText: LocalizedStringResource, categoryName: LocalizedStringResource? = nil, searchKeywords: [LocalizedStringResource] = [], resultValueName: LocalizedStringResource?)static initCategoryNameSearchKeywords(descriptionText: _Foundation_LocalizedStringResource, categoryName?: (_Foundation_LocalizedStringResource) | null, searchKeywords?: Array<_Foundation_LocalizedStringResource>): IntentDescriptionSwift declarationinit(_ descriptionText: LocalizedStringResource, categoryName: LocalizedStringResource? = nil, searchKeywords: [LocalizedStringResource] = [])No declarations were skipped in this snapshot.