Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
ActionResponse
L'oggetto risposta che può essere restituito da una funzione di callback (ad es. un gestore di risposte a un modulo)
eseguire una o più azioni sul client. Alcune combinazioni di azioni non sono supportate.
//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();