Class Dialog
المحادثة
لمعرفة التفاصيل، يُرجى الاطّلاع على فتح حوارات interactive في مستندات Google Chat.
أداة إنشاء لكائنات Dialog
لا تتوفّر هذه الميزة إلا لتطبيقات Google Chat. لا تتوفّر الإضافات في Google Workspace.
const card = CardService.newCardBuilder()
.setHeader(CardService.newCardHeader().setTitle('Card title'))
.build();
// Sets the card of the dialog.
const dialog = CardService.newDialog().setBody(card);
مستندات تفصيلية
setBody(card)
لضبط بطاقة Dialog
const card = CardService.newCardBuilder()
.setHeader(CardService.newCardHeader().setTitle('Card title'))
.build();
// Sets the card of the dialog.
const dialog = CardService.newDialog().setBody(card);
المعلمات
الاسم | النوع | الوصف |
card | Card | Card المطلوب استخدامه |
الإرجاع
Dialog
: هذا العنصر، لإنشاء سلسلة.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-01-30 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-01-30 (حسب التوقيت العالمي المتفَّق عليه)"],[[["`Dialog` helps you create interactive dialogs within Google Chat apps for displaying information or gathering input."],["It's exclusively for Google Chat apps and not available for Google Workspace Add-ons."],["The core functionality involves setting a card, built using `CardService`, as the body of the dialog to present content to the user."],["`setBody()` method is key to setting the card within the dialog and supports chaining for further configurations."]]],[]]