Instance Property

relationship

The relationship of this person to the current user.

Declaration

var relationship: INPersonRelationship? { get }

Discussion

SiriKit sets the value of this property for you based on information provided by the user. For example, if the user says “send a message to my brother”, Siri sets this property to brother. However, if the user said “send a message to Shelly” and Shelly happened to be my spouse, Siri would not set this property.

See Also

Identifiying a Person by Relationship

struct INPersonRelationship

Constants indicating the relationship between the current user and another person.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software