Go to console

CardMessage

public class CardMessage extends InAppMessage

Encapsulates a Firebase In App Card Message.

Public Method Summary

Action
getAction()
Deprecated - Use getPrimaryAction() instead.
String
getBackgroundHexColor()
Gets the background hex color associated with this message
Text
getBody()
Gets the body Text associated with this message
ImageData
getImageData()
Deprecated - Use getPortraitImageData() instead.
ImageData
getLandscapeImageData()
Gets the ImageData displayed when the phone is in a landcscape orientation
ImageData
getPortraitImageData()
Gets the ImageData displayed when the phone is in a portrait orientation
Action
getPrimaryAction()
Gets the primary Action associated with this message.
Action
getSecondaryAction()
Gets the secondary Action associated with this message
Text
getTitle()
Gets the title Text associated with this message

Inherited Method Summary

Public Methods

public Action getAction ()

Deprecated - Use getPrimaryAction() instead. Gets the primary Action associated with this message

public String getBackgroundHexColor ()

Gets the background hex color associated with this message

public Text getBody ()

Gets the body Text associated with this message

public ImageData getImageData ()

Deprecated - Use getPortraitImageData() instead. Gets the ImageData associated with this message

public ImageData getLandscapeImageData ()

Gets the ImageData displayed when the phone is in a landcscape orientation

public ImageData getPortraitImageData ()

Gets the ImageData displayed when the phone is in a portrait orientation

public Action getPrimaryAction ()

Gets the primary Action associated with this message. If none is defined, the primary action is 'dismiss'

public Action getSecondaryAction ()

Gets the secondary Action associated with this message