Compartir a través de


ABPersonInstantMessageKey Clase

Definición

NSDictionary claves para su uso con ABPerson servicios de mensajes instantáneos.

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

Comentarios

Una sola NSDictionary instancia almacena información sobre un único servicio de mensajes instantáneos, con las claves de diccionario y los valores que contienen información sobre diferentes partes del servicio de mensajes instantáneos.

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

Propiedades

Service

Representa el valor asociado a la constante kABPersonInstantMessageServiceKey.

Username

Representa el valor asociado a la constante kABPersonInstantMessageUsernameKey.

Se aplica a

Consulte también