Braze iOS SDK
Documentation for the Braze iOS SDK
 All Classes Functions Properties
Instance Methods | Properties | List of all members
ABKInAppMessageImmersive Class Reference

Instance Methods

(void) - logInAppMessageClickedWithButtonID:
 
(void) - setInAppMessageButtons:
 
- Instance Methods inherited from ABKInAppMessage
(void) - logInAppMessageImpression
 
(void) - logInAppMessageClicked
 
(void) - setInAppMessageClickAction:withURI:
 
(nullable NSData *) - serializeToData
 

Properties

NSString * header
 
UIColor * headerTextColor
 
UIColor * closeButtonColor
 
NSArray< ABKInAppMessageButton * > * buttons
 
UIColor * frameColor
 
NSTextAlignment headerTextAlignment
 
ABKInAppMessageImmersiveImageStyle imageStyle
 
- Properties inherited from ABKInAppMessage
NSString * message
 
NSDictionary * extras
 
NSTimeInterval duration
 
ABKInAppMessageClickActionType inAppMessageClickActionType
 
NSURL * uri
 
BOOL openUrlInWebView
 
ABKInAppMessageDismissType inAppMessageDismissType
 
UIColor * backgroundColor
 
UIColor * textColor
 
NSString * icon
 
UIColor * iconColor
 
UIColor * iconBackgroundColor
 
BOOL enableDarkTheme
 
ABKInAppMessageDarkThemedarkTheme
 
NSInteger overrideUserInterfaceStyle
 
NSURL * imageURI
 
UIViewContentMode imageContentMode
 
ABKInAppMessageOrientation orientation
 
NSTextAlignment messageTextAlignment
 
BOOL animateIn
 
BOOL animateOut
 
BOOL isControl
 

Method Documentation

- (void) logInAppMessageClickedWithButtonID: (NSInteger)  buttonId
Parameters
buttonIdThe clicked button's button ID for the in-app message. This number can't be negative. If you're handling in-app messages completely on your own, you should still report clicks on the in-app message button back to Braze with this method so that your campaign reporting features still work in the dashboard.

Note: Each in-app message can log at most one button click.

- (void) setInAppMessageButtons: (NSArray *)  buttonArray
Parameters
buttonArrayThe button array for the in-app message. This array should NOT be nil nor empty. Every object in the array must be an instance of ABKInAppMessageButton.

This method will set the in-app message buttons.

Property Documentation

- (NSArray<ABKInAppMessageButton *>*) buttons
readatomiccopy

buttons defines the buttons of the in-app message. Each button must be an instance of ABKInAppMessageButton. When there are more than two buttons in the array, only the first two buttons will be displayed in the in-app message. For more information and setting of ABKInAppMessageButton, please see the documentation in ABKInAppMessageButton.h for additional details.

- (UIColor*) closeButtonColor
readwritenonatomicstrong

closeButtonColor defines the close button color of the in-app message. When this property is nil, the close button's default color is black.

- (UIColor*) frameColor
readwritenonatomicstrong

frameColor defines the frame color of an immersive in-app message. This color will fill the screen outside of the in-app message. When the property is nil, the color will be set to the default color, which is black with 90% opacity.

- (NSString*) header
readwriteatomiccopy

header defines the header text of the in-app message. The header will only be displayed in one line on the default Braze in-app messages. If the header is more than one line, it will be truncated at the end.

- (NSTextAlignment) headerTextAlignment
readwriteatomic

headerTextAlignment defines the preferred text alignment of the header label. The default value is NSTextAlignmentCenter.

- (UIColor*) headerTextColor
readwritenonatomicstrong

headerTextColor defines the header text color, when there is a header string in the in-app message. The default text color is black.

- (ABKInAppMessageImmersiveImageStyle) imageStyle
readwriteatomic

imageStyle defines the image style of a immersive in-app message. For more information about the possible image styles, please check the documentation of ABKInAppMessageImmersiveImageStyle above.