Class ActionResponse

الإجراءالرد

الإجراءات التي يمكن أن تستخدمها الإضافات في البطاقات أو التطبيق المضيف

متاحة لإضافات Google Workspace التي توسّع نطاق Google Chat.

const notification = AddOnsResponseService.newNotification().setText("You closed a dialog!");

const navigation = AddOnsResponseService.newNavigation()
    .setEndNavigation(AddOnsResponseService.EndNavigation.CLOSE_DIALOG);

// An action that closes the dialog and shows a notification.
const action = AddOnsResponseService.newActionResponseBuilder()
    .setNavigation(navigation)
    .setNotification(notification)
    .build();

الطُرق

الطريقةنوع القيمة التي تم إرجاعهاوصف قصير
printJson()Stringتعرض هذه الطريقة تمثيل JSON لهذا العنصر.

مستندات تفصيلية

printJson()

تعرض هذه الطريقة تمثيل JSON لهذا العنصر. يُستخدم هذا الإعداد لتصحيح الأخطاء فقط.

الإرجاع

String