Stylization and parameters
You can set a couples of parameters when creating the plugin object:
order: which order to be initialized this plugin, if not set plugin will be initialized according to the plugin array order
delayInSeconds: it's the time after which the messages will be displayed once fetched
The MBMessagesManager
is the main class which shows the messages and handles the stylization and if messages need to be shown or not. There are many possible parameters you can set to change message appaerances:
forceMessageStyle: change the style for the messages:
MBIAMConstants.IAM_STYLE_BANNER_TOP
MBIAMConstants.IAM_STYLE_BANNER_BOTTOM
MBIAMConstants.IAM_STYLE_BANNER_CENTER
MBIAMConstants.IAM_STYLE_FULL_SCREEN_IMAGE
debug: show messages even if they have been already shown
backgroundColor: the color of the background
titleColor: the text color for the title of the message
bodyColor: the text color for the body
closeButtonColor: the color of the close button
closeButtonBackgroundColor: the background color of the close button round
button1BackgroundColor: the background color of the first action button
button1TitleColor: the text color of the first action button
button2BackgroundColor: the background color of the second action button
button2TitleColor: the text color of the second action button
titleFontRes: the font resource of the title
bodyFontRes: the font resource of the body
buttonsTextFontRes: the font resource of the buttons titles
titleSizeRes: the font size resource of the title
bodySizeRes: the font size resource of the body
buttonsSizeRes: the font size resource of the buttons titles
All web links will be automatically handled, the in-app messages must be handled adding the MNBIAMClickListener
which calls onCTAClicked
with the CTA object in order to be handled.
Last updated