Class UniversalActionResponse
ইউনিভার্সাল অ্যাকশন রেসপন্স প্রতিক্রিয়া বস্তু যা একটি পদ্ধতি থেকে ফেরত দেওয়া হতে পারে যা সর্বজনীন ক্রিয়া তৈরি করে।
// A universal action that opens a link.
const openLinkUniversalAction = CardService.newUniversalActionResponseBuilder()
.setOpenLink(CardService.newOpenLink()
.setUrl("https://www.google.com"))
.build();
const cardBuilder1 = CardService.newCardBuilder();
const cardBuilder2 = CardService.newCardBuilder();
// Finish building the cards ...
// A universal action that shows two static cards.
const cardsUniversalAction = CardService.newUniversalActionResponseBuilder()
.displayAddOnCards([
cardBuilder1.build(),
cardBuilder2.build(),
]).build();
পদ্ধতি
পদ্ধতি | রিটার্ন টাইপ | সংক্ষিপ্ত বিবরণ |
---|
printJson() | String | এই বস্তুর JSON উপস্থাপনা প্রিন্ট করে। |
বিস্তারিত ডকুমেন্টেশন
printJson()
এই বস্তুর JSON উপস্থাপনা প্রিন্ট করে। এটি শুধুমাত্র ডিবাগ করার জন্য।
প্রত্যাবর্তন
String
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-01-06 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-01-06 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["`UniversalActionResponse` objects are returned from methods creating universal actions, like opening links or displaying cards."],["These objects can define actions like opening a web link using `setOpenLink()` or showing cards using `displayAddOnCards()`."],["For debugging, the `printJson()` method outputs the object's JSON representation as a string."]]],["The `UniversalActionResponse` object is used to define actions within a card-based interface. Key actions include using the `setOpenLink` method to open a URL and `displayAddOnCards` to display multiple static cards. `printJson()` is a method for debugging, that returns the JSON representation of the object as a string. These methods are used within the `UniversalActionResponseBuilder` to create the object.\n"]]