Global Variable

UNNotificationAttachmentOptionsTypeHintKey

A hint about an attachment’s file type.

Declaration

let UNNotificationAttachmentOptionsTypeHintKey: String

Discussion

The value of this key is an NSString containing a Uniform Type Identifier (UTI) that describes the file’s type. If you do not include this key, the attachment’s filename extension is used to determine its type.

See Also

Creating an Attachment

init(identifier: String, url: URL, options: [AnyHashable : Any]? = nil)

Creates an attachment object from the specified file and options.

let UNNotificationAttachmentOptionsThumbnailHiddenKey: String

A Boolean value indicating whether the attachment’s thumbnail is hidden.

let UNNotificationAttachmentOptionsThumbnailClippingRectKey: String

The clipping rectangle for a thumbnail image.

let UNNotificationAttachmentOptionsThumbnailTimeKey: String

The frame number of an animation to use as a thumbnail image.