UAInAppMessageButtonInfo
Objective-C
@interface UAInAppMessageButtonInfo : NSObject
Swift
class InAppMessageButtonInfo : NSObject
Defines an in-app message button.
Note
This object is built usingUAInAppMessageButtonInfoBuilder
.
-
Button label.
Declaration
Objective-C
@property (nonatomic, readonly) UAInAppMessageTextInfo *_Nonnull label;
Swift
var label: InAppMessageTextInfo { get }
-
Button identifier.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull identifier;
Swift
var identifier: String { get }
-
Button tap behavior.
Declaration
Objective-C
@property (nonatomic, readonly) UAInAppMessageButtonInfoBehaviorType behavior;
Swift
var behavior: InAppMessageButtonInfoBehaviorType { get }
-
The button’s border radius. Use to set the border radius to non-integer values.
Declaration
Objective-C
@property (nonatomic, readonly) CGFloat borderRadiusPoints;
Swift
var borderRadiusPoints: CGFloat { get }
-
Button background color.
Declaration
Objective-C
@property (nonatomic, readonly) UIColor *_Nonnull backgroundColor;
Swift
var backgroundColor: UIColor { get }
-
Button border color.
Declaration
Objective-C
@property (nonatomic, readonly) UIColor *_Nonnull borderColor;
Swift
var borderColor: UIColor { get }
-
Button actions.
Declaration
Objective-C
@property (nonatomic, readonly, 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 (InAppMessageButtonInfoBuilder) -> 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 (InAppMessageButtonInfoBuilder) -> Void) -> InAppMessageButtonInfo?
Parameters
builderBlock
The builder block.
Return Value
An extended instance of UAInAppMessageButtonInfo.