Global Variable


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


let UNNotificationAttachmentOptionsThumbnailTimeKey: String


For animated images, the value of this key is an NSNumber containing the frame number to use as the thumbnail. For movies, the value of this key is the time (in seconds) into the movie from which to grab the thumbnail image; you may also specify the value as a CMTime structure encoded using the CMTimeCopyAsDictionary(_:allocator:) function.

See Also

Creating an Attachment

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

Creates an attachment object from the specified file and options.

let UNNotificationAttachmentOptionsTypeHintKey: String

A hint about an attachment’s file type.

let UNNotificationAttachmentOptionsThumbnailHiddenKey: String

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

let UNNotificationAttachmentOptionsThumbnailClippingRectKey: String

The clipping rectangle for a thumbnail image.