Google is committed to advancing racial equity for Black communities. See how.

InAppMessage

public abstract class InAppMessage extends Object
Known Direct Subclasses

Encapsulates a Firebase In App Message.

Public Method Summary

abstract Action
getAction()
This method is deprecated. Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.
Button
getActionButton()
This method is deprecated. Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.
String
getBackgroundHexColor()
This method is deprecated. Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.
Text
getBody()
This method is deprecated. Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.
String
getCampaignId()
This method is deprecated. Use ERROR(/#getCampaignMetadata()#getCampaignId()) instead.
CampaignMetadata
getCampaignMetadata()
Gets the CampaignMetadata of the message
String
getCampaignName()
This method is deprecated. Use ERROR(/#getCampaignMetadata()#getCampaignName()) instead.
Map<StringString>
getData()
Gets the extra data map of the message.
ImageData
getImageData()
This method is deprecated. Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.
String
getImageUrl()
This method is deprecated. Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.
Boolean
getIsTestMessage()
This method is deprecated. Use ERROR(/#getCampaignMetadata()#getIsTestMessage()) instead.
MessageType
getMessageType()
Gets the MessageType of the message
Text
getTitle()
This method is deprecated. Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.

Inherited Method Summary

Public Methods

public abstract Action getAction ()

This method is deprecated.
Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.

public Button getActionButton ()

This method is deprecated.
Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.

public String getBackgroundHexColor ()

This method is deprecated.
Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.

public Text getBody ()

This method is deprecated.
Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.

public String getCampaignId ()

This method is deprecated.
Use ERROR(/#getCampaignMetadata()#getCampaignId()) instead.

public CampaignMetadata getCampaignMetadata ()

Gets the CampaignMetadata of the message

public String getCampaignName ()

This method is deprecated.
Use ERROR(/#getCampaignMetadata()#getCampaignName()) instead.

public Map<StringString> getData ()

Gets the extra data map of the message. This is defined in the Firebase Console for each campaign.

public ImageData getImageData ()

This method is deprecated.
Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.

public String getImageUrl ()

This method is deprecated.
Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.

public Boolean getIsTestMessage ()

This method is deprecated.
Use ERROR(/#getCampaignMetadata()#getIsTestMessage()) instead.

public MessageType getMessageType ()

Gets the MessageType of the message

public Text getTitle ()

This method is deprecated.
Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.