One Logo Pool Ball
AppIntents · IOS API REFERENCE

NegativeAppShortcutPhrase

struct · iOS 17.0+ · SDK 27.1

struct NegativeAppShortcutPhrase

An object that represents a negative phrase. Each negative phrase will be used to populate an app-level negative training set. This set will contain phrases that will completely bypass your app.

Members (3)

init · iOS 17.0+

init

TypeScript
static initStringLiteral(value: SDKHandle): NegativeAppShortcutPhrase
Swift declaration
init(stringLiteral value: StringLiteralType)

Creates an instance initialized to the given string value. - Parameter value: The value of the new instance.

init · iOS 17.0+

init

TypeScript
static initStringInterpolation(stringInterpolation: NegativeAppShortcutPhrase_StringInterpolation): NegativeAppShortcutPhrase
Swift declaration
init(stringInterpolation: NegativeAppShortcutPhrase.StringInterpolation)

Creates an instance from a string interpolation. Most `StringInterpolation` types will store information about the literals and interpolations appended to them in one or more properties. `init(stringInterpolation:)` should use these properties to initialize the instance. - Parameter stringInterpolation: An instance of `StringInterpolation` which has had each segment of the string literal appended to it.

init · iOS 17.0+

init

TypeScript
static init(phraseKey: string): NegativeAppShortcutPhrase
Swift declaration
init(_ phraseKey: String)

Skipped declarations

No declarations were skipped in this snapshot.

All AppIntents types →