Edytuj

Udostępnij za pośrednictwem


UNNotificationAttachment.FromIdentifier Method

Definition

Overloads

FromIdentifier(String, NSUrl, NSDictionary, NSError)

Creates and returns a new notification attachment with the supplied identifier, url, options, and options.

FromIdentifier(String, NSUrl, UNNotificationAttachmentOptions, NSError)

FromIdentifier(String, NSUrl, NSDictionary, NSError)

Creates and returns a new notification attachment with the supplied identifier, url, options, and 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

Parameters

identifier
String

The unique attachment identifier.

url
NSUrl

The location of the attachment.

options
NSDictionary

A dictionary of attachment options, such as clipping rectangles, animation frame numbers, and so on.

This parameter can be null.

error
NSError

A location to which errors will be written.

This parameter can be null.

Returns

A new notification attachmen.

Attributes

Applies to

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

Parameters

identifier
String
url
NSUrl
error
NSError

Returns

Applies to