Instance Property

isMe

A Boolean value indicating whether the person is the current user of the device.

Declaration

@property(readonly, assign, nonatomic) BOOL isMe;

Discussion

It’s essential that you set isMe to YES for the current device user when creating an INPerson object for use with Messaging intents. For example, if the sender of an outgoing message is also the user of the device, set isMe to YES. Similarly, when creating the recipient array for an incoming message—which should include the current device user—set isMe to YES for the person in the recipient list that is the current device user, and set isMe to NO for all other recipients.

To set isMe, call the initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isMe: method when creating the INPerson object.

See Also

Getting Identifiying Information

personHandle

The unique handle that your app assigned to the user.

image

An image of the person.

aliases

An array of alternate identifiers for the user.

handle

The unique identifier that your app assigned to the user.

Deprecated