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.

constupdateVisibilityAction=CardService.newUpdateVisibilityAction()
.setVisibility(CardService.Visibility.VISIBLE);

Methods

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

Detailed documentation

setVisibility(visibility)

Sets the visibility of widgets to visible or hidden.

Parameters

NameTypeDescription
visibilityVisibility The visibility of the widgets.

Return

UpdateVisibilityAction — The UpdateVisibilityAction, for chaining.

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

Last updated 2025年10月28日 UTC.