BannerMessage

public class BannerMessage extends InAppMessage


Encapsulates a Firebase In App Banner Message.

Summary

Public fields

final @Nullable Action
final @NonNull String
final @Nullable Text
final @Nullable ImageData
final @NonNull Text

!!!!!WARNING!!!!! We are overriding equality in this class.

Public methods

@Nullable Action

Gets the Action associated with this message

@NonNull String

Gets the background hex color associated with this message

@Nullable Text

Gets the body Text associated with this message

@Nullable ImageData

Gets the ImageData associated with this message

@NonNull Text

Gets the title Text associated with this message

Inherited methods

From com.google.firebase.inappmessaging.model.InAppMessage
@Nullable Button

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 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

Public fields

action

public final @Nullable Action action

backgroundHexColor

public final @NonNull String backgroundHexColor

body

public final @Nullable Text body

imageData

public final @Nullable ImageData imageData

title

public final @NonNull Text title

!!!!!WARNING!!!!! We are overriding equality in this class. Please add equality checks for all new private class members.

Public methods

getAction

public @Nullable Action getAction()

Gets the Action associated with this message

getBackgroundHexColor

public @NonNull String getBackgroundHexColor()

Gets the background hex color associated with this message

getBody

public @Nullable Text getBody()

Gets the body Text associated with this message

getImageData

public @Nullable ImageData getImageData()

Gets the ImageData associated with this message

getTitle

public @NonNull Text getTitle()

Gets the title Text associated with this message