Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
ActionResponse
El objeto de respuesta que puede devolverse desde una función de devolución de llamada (p.ej., un controlador de respuestas de formulario)
realizar una o más acciones en el cliente. Algunas combinaciones de acciones no son compatibles.
//AnactionthatopensalinkvaractionResponse=CardService.newActionResponseBuilder().setOpenLink(CardService.newOpenLink().setUrl("https://www.google.com")).build();//Anactionthatshowsanotification.varactionResponse=CardService.newActionResponseBuilder().setNotification(CardService.newNotification().setText("Some info to display to user")).build();//Anactionthatshowsanadditionalcard.Italsosetsaflagtoindicatethattheoriginal//statedatahaschanged.varcardBuilder=CardService.newCardBuilder();//Buildcard...varactionResponse=CardService.newActionResponseBuilder().setNavigation(CardService.newNavigation().pushCard(cardBuilder.build())).setStateChanged(true).build();
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2024-08-21 (UTC)"],[[["`ActionResponse` enables callback functions to trigger actions like opening links, displaying notifications, and navigating between cards within Google Workspace add-ons."],["Developers can use `ActionResponseBuilder` methods to define these actions and control client-side behavior based on user interactions."],["The `printJson()` method helps with debugging by providing the JSON representation of the `ActionResponse` object."]]],[]]