CardMessage

class CardMessage : InAppMessage


Encapsulates a Firebase In App Card Message.

Summary

Public functions

Action?

This function is deprecated.

Use getPrimaryAction or getSecondaryAction instead.

ImageData?

This function is deprecated.

Use getPortraitImageData or getLandscapeImageData instead.

Public properties

String
Text?
ImageData?
ImageData?
Action
Action?
Text

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

Inherited functions

From com.google.firebase.inappmessaging.model.InAppMessage
Button?

This function is deprecated.

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

String?

This function is deprecated.

Use getCampaignMetadata instead.

CampaignMetadata?

Gets the CampaignMetadata of the message

String?

This function is deprecated.

Use getCampaignMetadata instead.

(Mutable)Map<String!, String!>?

Gets the extra data map of the message.

String?

This function is deprecated.

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

Boolean?

This function is deprecated.

Use getCampaignMetadata instead.

MessageType?

Gets the MessageType of the message

Public functions

getAction

fun getAction(): Action?

getImageData

fun getImageData(): ImageData?

Public properties

backgroundHexColor

val backgroundHexColorString

body

val bodyText?

landscapeImageData

val landscapeImageDataImageData?

portraitImageData

val portraitImageDataImageData?

primaryAction

val primaryActionAction

secondaryAction

val secondaryActionAction?

title

val titleText

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