Registers the specified vocabulary strings with the user.
- iOS 11.0+
- Mac Catalyst 13.0+Beta
- watchOS 6.0+Beta
The speakable content to associate with the specified
type. Each item should contain terms that are unique to your app and to the specific user. Sort the items in descending order of importance. In other words, the first item should be the most important, followed by items of decreasing importance. Each item must be no more than 1024 bytes in size.
The designated purpose for the strings in the
vocabularyparameter. You must specify one of the designated types. You cannot specify custom types of strings. For a list of possible values, see
Use this method to register user-specific vocabulary terms of the specified type. You may register different sets of strings for each of the supported types, but you may register only one group of strings for each type. Calling this method again for a given type replaces the previously registered strings already assigned to that type.
Don’t use this method to register terminology that’s common to all users of your app. Use this method only to register terms that are specific to the current user. Include common terminology in the vocabulary property list file that you include with your Intents extension.
Calling this method isn’t a guarantee that Siri uses the terms you supply. If you specify more than just a few strings, Siri may ingest only the first few strings rather than the entire list. So always place the most important strings first in the ordered set. In addition, if any of the strings exceed the maximum size limit, Siri ignores them.
It’s a programmer error to register terms that aren’t supported by any of your extension’s intents.