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 backgroundHexColor: String

body

val body: Text?

landscapeImageData

val landscapeImageData: ImageData?

portraitImageData

val portraitImageData: ImageData?

primaryAction

val primaryAction: Action

secondaryAction

val secondaryAction: Action?

title

val title: Text

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