Creates a person object with the specified name and contact information.
- iOS 10.0+
- Mac Catalyst 13.0+Beta
- watchOS 3.2+
A string containing information that your app uses to identify the user. You can create a person handle from an email address, phone number, or account name associated with the user.
The name of the user, specified as a set of name components.
The string you display for the user’s name.
An image of the person.
The identifier associated with the user's
CNContactobject. Specify a value for this parameter when the user has a corresponding entry in the Contacts database.
A custom string that you use to identify people in your app.
An initialized person object or
nil if the object could not be created.
Use this method when creating person objects you plan to return as part of a response to Siri. Always specify as much information as possible about the user. This method makes copies of the
custom parameters instead of keeping the originals.