---
title: UNNotificationAttachmentOptionsThumbnailTimeKey
framework: usernotifications
role: symbol
role_heading: Global Variable
path: usernotifications/unnotificationattachmentoptionsthumbnailtimekey
---

# UNNotificationAttachmentOptionsThumbnailTimeKey

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

## Declaration

```swift
let UNNotificationAttachmentOptionsThumbnailTimeKey: String
```

## Discussion

Discussion 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:url:options:)](usernotifications/unnotificationattachment/init(identifier:url:options:)-83grx.md)
- [UNNotificationAttachmentOptionsTypeHintKey](usernotifications/unnotificationattachmentoptionstypehintkey.md)
- [UNNotificationAttachmentOptionsThumbnailHiddenKey](usernotifications/unnotificationattachmentoptionsthumbnailhiddenkey.md)
- [UNNotificationAttachmentOptionsThumbnailClippingRectKey](usernotifications/unnotificationattachmentoptionsthumbnailclippingrectkey.md)
