UAInAppMessageButtonInfo

@interface UAInAppMessageButtonInfo : NSObject

Defines an in-app message button.

Note

This object is built using UAInAppMessageButtonInfoBuilder.
  • Button label.

    Declaration

    Objective-C

    @property (readonly, nonatomic) UAInAppMessageTextInfo *_Nonnull label;

    Swift

    var label: UAInAppMessageTextInfo { get }
  • Button identifier.

    Declaration

    Objective-C

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

    Swift

    var identifier: String { get }
  • Button tap behavior.

    Declaration

    Objective-C

    @property (readonly, nonatomic) UAInAppMessageButtonInfoBehaviorType behavior;

    Swift

    var behavior: UAInAppMessageButtonInfoBehaviorType { get }
  • The button’s border radius. Use to set the border radius to non-integer values.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CGFloat borderRadiusPoints;

    Swift

    var borderRadiusPoints: CGFloat { get }
  • Button background color.

    Declaration

    Objective-C

    @property (readonly, nonatomic) UIColor *_Nonnull backgroundColor;

    Swift

    var backgroundColor: UIColor { get }
  • Button border color.

    Declaration

    Objective-C

    @property (readonly, nonatomic) UIColor *_Nonnull borderColor;

    Swift

    var borderColor: UIColor { get }
  • Button actions.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSDictionary *actions;

    Swift

    var actions: [AnyHashable : Any]? { get }
  • Creates an in-app message button info with a builder block.

    Declaration

    Objective-C

    + (nullable instancetype)buttonInfoWithBuilderBlock:
        (nonnull void (^)(UAInAppMessageButtonInfoBuilder *_Nonnull))builderBlock;

    Swift

    convenience init?(builderBlock: @escaping (UAInAppMessageButtonInfoBuilder) -> Void)

    Return Value

    The in-app message button info if the builder sucessfully built it, otherwise nil.

  • Extends an in-app message button info with a builder block.

    Declaration

    Objective-C

    - (nullable UAInAppMessageButtonInfo *)extend:
        (nonnull void (^)(UAInAppMessageButtonInfoBuilder *_Nonnull))builderBlock;

    Swift

    func extend(_ builderBlock: @escaping (UAInAppMessageButtonInfoBuilder) -> Void) -> UAInAppMessageButtonInfo?

    Parameters

    builderBlock

    The builder block.

    Return Value

    An extended instance of UAInAppMessageButtonInfo.