init(profileNumber:profileLabel:)
Creates the intent object with the specified profile name information.
Declaration
@nonobjc convenience init(profileNumber: Int? = nil, profileLabel: String? = nil)Parameters
- profileNumber:
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.
- profileLabel:
The name of the profile.
Return Value
An initialized intent object or nil if the object could not be created.
Discussion
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.