UAInAppMessageMediaStyle

@interface UAInAppMessageMediaStyle : NSObject

Model object representing a custom style to be applied to an in-app message media component. Nil parameters are given default styling.

  • Padding adds constant values to the media component’s top, bottom, trailing or leading constraints within its parent view.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) UAPadding *additionalPadding;
  • Media style factory method.

    Declaration

    Objective-C

    + (nonnull instancetype)styleWithAdditionalPadding:
        (nullable UAPadding *)additionalPadding;

    Swift

    convenience init(additionalPadding: Any!)

    Parameters

    additionalPadding

    The media view additional padding.

    Return Value

    Media Style with specified styling. Nil parameters will be given default styling.

  • Media style factory method for styling from a plist.

    Declaration

    Objective-C

    + (nonnull instancetype)styleWithDictionary:
        (nullable NSDictionary *)mediaStyleDict;

    Swift

    convenience init(dictionary mediaStyleDict: [AnyHashable : Any]?)

    Return Value

    Media Style with specified styling. Nil parameters will be given default styling.