UNNotificationAttachment.FromIdentifier Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FromIdentifier(String, NSUrl, NSDictionary, NSError) |
Creates and returns a new notification attachment with the supplied |
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
.
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
- attachmentOptions
- UNNotificationAttachmentOptions
- error
- NSError