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