Instance Property

identifier

The identifier associated with the string in your app’s custom vocabulary file.

Declaration

optional var identifier: String? { get }

Discussion

For phrases that are included in your app’s AppIntentVocabulary.plist file, this property contains the value of the VocabularyItemIdentifier key associated with that phrase. When determining the resolution for speakable strings, you can use this identifier (when present) to validate and resolve the term to a known phrase.

If the specified phrase was not defined in your vocabulary file, this property is nil.

See Also

Getting the Identifier

var vocabularyIdentifier: String?

The identifier associated with the string in your app’s custom vocabulary file.

Required.