public interface

InAppMessageManager

com.salesforce.marketingcloud.messages.iam.InAppMessageManager

Summary

Nested Classes
interface InAppMessageManager.EventListener When an object of this type is registered with the InAppMessageManager, its methods will be called to signal certain in app message events. 
Public Methods
abstract void setInAppMessageListener(InAppMessageManager.EventListener listener)
Set a InAppMessageManager.EventListener that will be called during In App Message life cycle events.
abstract void setStatusBarColor(int color)
Set the color of the In App Message Activity status bar on Android 21 or higher.
abstract void setTypeface(Typeface typeface)
Set the font android.graphics.Typeface to be used for In app Messages.
abstract void showMessage(String messageId)
Will display the InAppMessage with the matching id as long as:

Public Methods

public abstract void setInAppMessageListener (InAppMessageManager.EventListener listener)

Set a InAppMessageManager.EventListener that will be called during In App Message life cycle events.

Parameters
listener an instance of the listener, or null to clear an existing instance.

public abstract void setStatusBarColor (int color)

Set the color of the In App Message Activity status bar on Android 21 or higher.

Parameters
color Packed color int to be used for the status bar.

public abstract void setTypeface (Typeface typeface)

Set the font android.graphics.Typeface to be used for In app Messages.

Parameters
typeface the typeface to be applied to the title, body and buttons of an In App Message. Set to null to use system default.

public abstract void showMessage (String messageId)

Will display the InAppMessage with the matching id as long as:

  • The message's start date is in the past.
  • The message's end date is in the future.
  • The message has not previously been displayed.

Parameters
messageId The id of a previously blocked in app message display attempt.