Creates the intent object with the specified profile name information.
- iOS 10.0+
- Mac Catalyst 13.0+
- Xcode 8.0+
An integer number to use when saving the profile. This value represents the index of the profile in your system. The index can be a soft index inside your vehicle’s electronics systems or it can correspond to physical buttons that the user presses.
The name of the profile.
An initialized intent object or
nil if the object could not be created.
Normally, you don’t create instances of this class yourself. Instead, Siri creates instances when the user asks to save the current settings. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.