AddressBook.ABPersonInstantMessageKey Class
Foundation.NSDictionary keys for use with AddressBook.ABPerson instant message services.

See Also: ABPersonInstantMessageKey Members

Syntax

public static class ABPersonInstantMessageKey

See Also

ABPerson.GetInstantMessages
ABPerson.SetInstantMessages(ABMultiValue<Foundation.NSDictionary>)

Remarks

A single Foundation.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.

C# Example

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);

Requirements

Namespace: AddressBook
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0