Google Apps Chat V1 Client - Class CardFixedFooter (0.6.0)

Reference documentation and code samples for the Google Apps Chat V1 Client class CardFixedFooter.

A persistent (sticky) footer that that appears at the bottom of the card.

Setting fixedFooter without specifying a primaryButton or a secondaryButton causes an error. For Chat apps, you can use fixed footers in dialogs, but not card messages. For an example in Google Chat apps, see Add a persistent footer. Google Workspace Add-ons and Chat apps:

Generated from protobuf message google.apps.card.v1.Card.CardFixedFooter

Namespace

Google \ Apps \ Card \ V1 \ Card

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ primary_button Google\Apps\Card\V1\Button

The primary button of the fixed footer. The button must be a text button with text and color set.

↳ secondary_button Google\Apps\Card\V1\Button

The secondary button of the fixed footer. The button must be a text button with text and color set. If secondaryButton is set, you must also set primaryButton.

getPrimaryButton

The primary button of the fixed footer. The button must be a text button with text and color set.

Returns
Type Description
Google\Apps\Card\V1\Button|null

hasPrimaryButton

clearPrimaryButton

setPrimaryButton

The primary button of the fixed footer. The button must be a text button with text and color set.

Parameter
Name Description
var Google\Apps\Card\V1\Button
Returns
Type Description
$this

getSecondaryButton

The secondary button of the fixed footer. The button must be a text button with text and color set.

If secondaryButton is set, you must also set primaryButton.

Returns
Type Description
Google\Apps\Card\V1\Button|null

hasSecondaryButton

clearSecondaryButton

setSecondaryButton

The secondary button of the fixed footer. The button must be a text button with text and color set.

If secondaryButton is set, you must also set primaryButton.

Parameter
Name Description
var Google\Apps\Card\V1\Button
Returns
Type Description
$this