Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
ActionResponse
Objek respons yang mungkin ditampilkan dari fungsi callback (misalnya, pengendali respons formulir)
untuk melakukan satu tindakan
atau lebih pada klien. Beberapa kombinasi tindakan tidak didukung.
//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();
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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."]]],[]]