Class Notification
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
বিজ্ঞপ্তি কোনো UI উপাদানের সাথে মিথস্ক্রিয়ার প্রতিক্রিয়া হিসেবে ব্যবহারকারীকে দেখানো একটি বিজ্ঞপ্তি।
const action = CardService.newAction().setFunctionName('notificationCallback');
CardService.newTextButton().setText('Save').setOnClickAction(action);
// ...
function notificationCallback() {
return CardService.newActionResponseBuilder()
.setNotification(
CardService.newNotification().setText('Some info to display to user'),
)
.build();
} বিস্তারিত ডকুমেন্টেশন
setText(text)
নোটিফিকেশনে প্রদর্শিতব্য টেক্সট নির্ধারণ করে। আবশ্যক।
প্যারামিটার
| নাম | প্রকার | বর্ণনা |
|---|
text | String | বিজ্ঞপ্তির লেখা। |
ফেরত
Notification — এই অবজেক্টটি, চেইনিংয়ের জন্য।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2026-04-13 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2026-04-13 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],["The core content details how to create and display a notification to a user interacting with a UI element. A new `Action` is created, and a `TextButton` is linked to it using `setOnClickAction`. The `notificationCallback` function, triggered by the button, builds an `ActionResponse` with a `Notification`. `setText()` method is used to set the notification message text. It takes a string and returns the `Notification` object, permitting method chaining.\n"]]