UAMediaAttachmentPayload


@interface UAMediaAttachmentPayload : NSObject

Model object for the media attachment device payload

  • Factory method for creating a payload from a JSON object

    Declaration

    Objective-C

    + (instancetype)payloadWithJSONObject:(id)object;

    Swift

    convenience init!(jsonObject object: Any!)
  • An array of media attachment URLs.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSMutableArray *urls;

    Swift

    var urls: NSMutableArray! { get }
  • Attachment options in the dictionary format expected by UNNotificationAttachment

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSDictionary *options;

    Swift

    var options: [AnyHashable : Any]! { get }
  • Optional content override for the modified notification.

    Declaration

    Objective-C

    @property (readonly, nonatomic) UAMediaAttachmentContent *content;

    Swift

    var content: UAMediaAttachmentContent! { get }