Button

public classButton


Encapsulates any button used in a Firebase In App Message.

Summary

Public fields

final @NonNullString
final @NonNullText

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

Public methods

@NonNullString

Gets the background hex color associated with this button

@NonNullText

Gets theText associated with this button

Public fields

buttonHexColor

public final @NonNullString buttonHexColor

text

public final @NonNullText text

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

Public methods

getButtonHexColor

public @NonNullString getButtonHexColor()

Gets the background hex color associated with this button

getText

public @NonNullText getText()

Gets theText associated with this button

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.