UAInAppMessageMediaInfo

@interface UAInAppMessageMediaInfo : NSObject

Defines in-app message media content.

  • url

    Media URL.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull url;

    Swift

    var url: String { get }
  • Media type - image, video or YouTube video.

    Declaration

    Objective-C

    @property (readonly, nonatomic) UAInAppMessageMediaInfoType type;

    Swift

    var type: UAInAppMessageMediaInfoType { get }
  • Media description.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull contentDescription;

    Swift

    var contentDescription: String { get }
  • Creates in-app message media info with a builder block.

    Declaration

    Objective-C

    + (nonnull instancetype)mediaInfoWithURL:(nonnull NSString *)url
                          contentDescription:(nonnull NSString *)contentDescription
                                        type:(UAInAppMessageMediaInfoType)type;

    Swift

    convenience init(url: String, contentDescription: String, type: UAInAppMessageMediaInfoType)

    Return Value

    The in-app message media info.