ModalMessage

public class ModalMessage extends InAppMessage


Encapsulates a Firebase In App Modal Message.

Summary

Public fields

final @NullableAction
final @NonNullString
final @NullableText
final @NullableImageData
final @NonNullText

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

Public methods

@NullableAction

Gets the Action associated with this message

@NonNullString

Gets the background hex color associated with this message

@NullableText

Gets the body Text associated with this message

@NullableImageData

Gets the ImageData associated with this message

@NonNullText

Gets the title Text associated with this message

Inherited methods

From com.google.firebase.inappmessaging.model.InAppMessage
@NullableButton

This method is deprecated.

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

@NullableString

This method is deprecated.

Use getCampaignMetadata instead.

@NullableCampaignMetadata

Gets the CampaignMetadata of the message

@NullableString

This method is deprecated.

Use getCampaignMetadata instead.

@NullableMap<StringString>

Gets the extra data map of the message.

@NullableString

This method is deprecated.

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

@NullableBoolean

This method is deprecated.

Use getCampaignMetadata instead.

@NullableMessageType

Gets the MessageType of the message

Public fields

action

public final @NullableAction action

backgroundHexColor

public final @NonNullString backgroundHexColor

body

public final @NullableText body

imageData

public final @NullableImageData imageData

title

public final @NonNullText title

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

Public methods

getAction

public @NullableAction getAction()

Gets the Action associated with this message

getBackgroundHexColor

public @NonNullString getBackgroundHexColor()

Gets the background hex color associated with this message

getBody

public @NullableText getBody()

Gets the body Text associated with this message

getImageData

public @NullableImageData getImageData()

Gets the ImageData associated with this message

getTitle

public @NonNullText getTitle()

Gets the title Text associated with this message