Edit

Share via


ABPersonInstantMessageKey Class

Definition

NSDictionary keys for use with ABPerson instant message services.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.None, "Use the 'Contacts' API instead.")]
public static class ABPersonInstantMessageKey
type ABPersonInstantMessageKey = class
Inheritance
ABPersonInstantMessageKey
Attributes

Remarks

A single NSDictionary instance stores information regarding a single instant message service, with the dictionary keys and values holding information about different parts of the instant message service.

NSDictionary instantMessage = NSDictionary.FromObjectsAndKeys(
    new NSObject[]{
        ABPersonInstantMessageService.Jabber,
        new NSString ("user@example.org"),
    },
    new NSObject[]{
        ABPersonInstantMessageKey.Service,
        ABPersonInstantMessageKey.Username,
    }
);
ABMutableDictionaryMultiValue instantMessages = new ABMutableDictionaryMultiValue() {
    { address, ABLabel.Home },
};
ABPerson person = GetMeSomePerson();
person.SetInstantMessages(addresses);

Properties

Service

Represents the value associated with the constant kABPersonInstantMessageServiceKey

Username

Represents the value associated with the constant kABPersonInstantMessageUsernameKey

Applies to

See also