Compartilhar via


UNNotificationAttachment.FromIdentifier Método

Definição

Sobrecargas

FromIdentifier(String, NSUrl, NSDictionary, NSError)

Cria e retorna um novo anexo de notificação com os fornecidos identifier, url, optionse options.

FromIdentifier(String, NSUrl, UNNotificationAttachmentOptions, NSError)

FromIdentifier(String, NSUrl, NSDictionary, NSError)

Cria e retorna um novo anexo de notificação com os fornecidos identifier, url, optionse options.

[Foundation.Export("attachmentWithIdentifier:URL:options:error:")]
public static UserNotifications.UNNotificationAttachment FromIdentifier (string identifier, Foundation.NSUrl url, Foundation.NSDictionary options, out Foundation.NSError error);
static member FromIdentifier : string * Foundation.NSUrl * Foundation.NSDictionary *  -> UserNotifications.UNNotificationAttachment

Parâmetros

identifier
String

O identificador de anexo exclusivo.

url
NSUrl

O local do anexo.

options
NSDictionary

Um dicionário de opções de anexo, como retângulos de recorte, números de quadro de animação e assim por diante.

Esse parâmetro pode ser null.

error
NSError

Um local para o qual os erros serão gravados.

Esse parâmetro pode ser null.

Retornos

Um novo anexador de notificação.

Atributos

Aplica-se a

FromIdentifier(String, NSUrl, UNNotificationAttachmentOptions, NSError)

public static UserNotifications.UNNotificationAttachment FromIdentifier (string identifier, Foundation.NSUrl url, UserNotifications.UNNotificationAttachmentOptions attachmentOptions, out Foundation.NSError error);
static member FromIdentifier : string * Foundation.NSUrl * UserNotifications.UNNotificationAttachmentOptions *  -> UserNotifications.UNNotificationAttachment

Parâmetros

identifier
String
url
NSUrl
error
NSError

Retornos

Aplica-se a