यह रिस्पॉन्स ऑब्जेक्ट है. इसे कॉलबैक फ़ंक्शन (जैसे, फ़ॉर्म रिस्पॉन्स हैंडलर) से वापस भेजा जा सकता है, ताकि क्लाइंट पर एक या उससे ज़्यादा कार्रवाइयां की जा सकें. कार्रवाइयों के कुछ कॉम्बिनेशन काम नहीं करते.
// An action that opens a link const actionResponse = CardService.newActionResponseBuilder() .setOpenLink(CardService.newOpenLink().setUrl('https://www.google.com')) .build(); // An action that shows a notification. const notificationActionResponse = CardService.newActionResponseBuilder() .setNotification( CardService.newNotification().setText( 'Some info to display to user'), ) .build(); // An action that shows an additional card. It also sets a flag to indicate that // the original state data has changed. const cardBuilder = CardService.newCardBuilder(); // Build card ... const navigationActionResponse = CardService.newActionResponseBuilder() .setNavigation(CardService.newNavigation().pushCard( cardBuilder.build())) .setStateChanged(true) .build();
तरीके
| तरीका | रिटर्न टाइप | संक्षिप्त विवरण |
|---|---|---|
print | String | इस ऑब्जेक्ट को JSON फ़ॉर्मैट में दिखाता है. |
ज़्यादा जानकारी वाला दस्तावेज़
printJson()
इस ऑब्जेक्ट को JSON फ़ॉर्मैट में दिखाता है. यह सिर्फ़ डीबग करने के लिए है.
वापसी का टिकट
String