InAppMessage

public abstract class InAppMessage

Known direct subclasses
BannerMessage

Encapsulates a Firebase In App Banner Message.

CardMessage

Encapsulates a Firebase In App Card Message.

ImageOnlyMessage

Encapsulates a Firebase In App ImageOnly Message.

ModalMessage

Encapsulates a Firebase In App Modal Message.


Encapsulates a Firebase In App Message.

Summary

Public methods

abstract @Nullable Action

This method is deprecated.

Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.

@Nullable Button

This method is deprecated.

Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.

@Nullable String

This method is deprecated.

Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.

@Nullable Text

This method is deprecated.

Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.

@Nullable String

This method is deprecated.

Use getCampaignMetadata instead.

@Nullable CampaignMetadata

Gets the CampaignMetadata of the message

@Nullable String

This method is deprecated.

Use getCampaignMetadata instead.

@Nullable Map<StringString>

Gets the extra data map of the message.

@Nullable ImageData

This method is deprecated.

Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.

@Nullable String

This method is deprecated.

Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.

@Nullable Boolean

This method is deprecated.

Use getCampaignMetadata instead.

@Nullable MessageType

Gets the MessageType of the message

@Nullable Text

This method is deprecated.

Use the message specific methods (see CardMessage, ModalMessage, BannerMessage, ImageOnlyMessage) instead.

Public fields

actionButton

public Button actionButton

backgroundHexColor

public String backgroundHexColor

body

public Text body

campaignId

public String campaignId

campaignMetadata

public CampaignMetadata campaignMetadata

campaignName

public String campaignName

data

public @Nullable Map<StringStringdata

imageData

public ImageData imageData

imageUrl

public String imageUrl

isTestMessage

public Boolean isTestMessage

messageType

public MessageType messageType

title

public Text title

Public methods

getAction

public abstract @Nullable Action getAction()

getActionButton

public @Nullable Button getActionButton()

getBackgroundHexColor

public @Nullable String getBackgroundHexColor()

getBody

public @Nullable Text getBody()

getCampaignId

public @Nullable String getCampaignId()

getCampaignMetadata

public @Nullable CampaignMetadata getCampaignMetadata()

Gets the CampaignMetadata of the message

getCampaignName

public @Nullable String getCampaignName()

getData

public @Nullable Map<StringStringgetData()

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

getImageData

public @Nullable ImageData getImageData()

getImageUrl

public @Nullable String getImageUrl()

getIsTestMessage

public @Nullable Boolean getIsTestMessage()

getMessageType

public @Nullable MessageType getMessageType()

Gets the MessageType of the message

getTitle

public @Nullable Text getTitle()