MBurger Engagement Platform
User GuideHeadless CMSEngagement Platform
  • 🍔MBurger Engagement Platform 🍔
  • 🍏 iOS Docs
    • Messages
      • Installation
      • Initialization
      • Push notifications
        • Rich Notifications
      • Stylize in app messages
      • Message Metrics
    • Audience
      • Installation
      • Initialization
      • Tracked data
      • Tags
      • Identify a user
      • Location
    • Automation
      • Installation
      • Initialization
      • Triggers
      • Send events
      • View Tracking
  • 📱Android Docs
    • Messages
      • Prerequisites for Push Notifications
      • Installation
      • Initialization
      • Stylization and parameters
      • Push notifications
      • Message Metrics
    • Audience
      • Installation
      • Initialization
      • Tracked data
      • Tags
      • Custom Id
      • Mobile User Id
      • Location Data
    • Automation
      • Installation
      • Initialization
      • Triggers
      • Add events
      • View Tracking
      • Stop/Pause tracking
  • 🔷Flutter Docs
    • Messages
      • Installation
      • Initialization
      • Stylize in app messages
      • Push notifications
        • Rich Notifications
      • Message Metrics
    • Audience
      • Installation
      • Initialization
      • Tracked data
      • Tags
      • Custom Id
      • Mobile User Id
      • Location Data
    • Automation
      • Installation
      • Initialization
      • Triggers
      • Send events
      • View Tracking
Powered by GitBook
On this page

Was this helpful?

  1. Android Docs
  2. Messages

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.

PreviousInitializationNextPush notifications

Last updated 4 years ago

Was this helpful?

📱