Class UpdateVisibilityAction

UpdateVisibilityAction

Updates the visibility of a card widget to make it display or to hide it.

Only available through the Gemini Alpha program for Google Workspace add-ons that extend Google Workspace Flows.

const updateVisibilityAction = CardService.newUpdateVisibilityAction()
.setVisibility(CardService.Visibility.VISIBLE);

Methods

MethodReturn typeBrief description
setVisibility(visibility)UpdateVisibilityActionSets the visibility of widgets to visible or hidden.

Detailed documentation

setVisibility(visibility)

Sets the visibility of widgets to visible or hidden.

Parameters

NameTypeDescription
visibilityVisibilityThe visibility of the widgets.

Return

UpdateVisibilityAction — The UpdateVisibilityAction, for chaining.