Skip to content

Titanium.App.iOS.UserNotificationAttachment

Provide at least the property identifier and url property to identify a local image, sound or video. If your media is invalid, the API will throw an error log and skip the invalid attachment.

Since: 7.3.0 · Platforms: iphone, ipad, macos

Properties #

identifier#

Type: String

The identifier of this attachment.

options#

Type: Dictionary

An additional dictionary of options to provide.

Allowed options are:

  • typeHint - File type hint (String)
  • clipping - Clipping enabled or not (Boolean)
  • thumbnailHidden - Thumbnail hidden or not (Boolean)
  • thumbnailTime - Video frame in milliseconds (Number)

url#

Type: String

The URL to the attachment's data. If you have obtained this attachment from
the notification-center then the URL will be security-scoped.

Titanium SDK Documentation