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.