Global Variable

UNNotificationAttachmentOptionsThumbnailClippingRectKey

The clipping rectangle for a thumbnail image.

Declaration

NSString *const UNNotificationAttachmentOptionsThumbnailClippingRectKey;

Discussion

The value of this key is a dictionary containing a normalized CGRect—that is, a unit rectangle whose values are in the range 0.0 to 1.0 and represent the portion of the original image that you want to display. For example, specifying an origin of (0.25, 0.25) and a size of (0.5, 0.5) defines a clipping rectangle that shows only the center portion of the image. Use the CGRectCreateDictionaryRepresentation function to create the dictionary for your rectangle.

See Also

Creating an Attachment

+ attachmentWithIdentifier:URL:options:error:

Creates an attachment object from the specified file and options.

UNNotificationAttachmentOptionsTypeHintKey

A hint about an attachment’s file type.

UNNotificationAttachmentOptionsThumbnailHiddenKey

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

UNNotificationAttachmentOptionsThumbnailTimeKey

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