ลายเซ็นเมธอด MeetMainStageClient.unloadSidePanel
ปิด iframe ของแผงด้านข้าง โปรดทราบว่าระบบจะไม่เก็บสถานะส่วนเสริมของแผงด้านข้างไว้ใน Meet เมื่อเรียกใช้เมธอด หากเปิด iframe ของแผงด้านข้างอีกครั้ง เช่น โดยใช้การเรียกใช้ loadSidePanel
ระบบจะตั้งค่า URL แหล่งที่มาของ iframe ของแผงด้านข้างเป็นค่าเดิมจาก ไฟล์ Manifest ของส่วนเสริม
ส่วนเสริมจะต้องเก็บสถานะส่วนเสริมไว้ในแบ็กเอนด์ของส่วนเสริมก่อนจึงจะเรียกใช้เมธอดนี้ได้
ลายเซ็น
unloadSidePanel(): Promise<void>;
รายละเอียด
การคืนสินค้า
Promise<void>
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-06 UTC
[null,null,["อัปเดตล่าสุด 2024-11-06 UTC"],[[["Calling `unloadSidePanel` closes the side panel in Google Meet, but any add-on-specific data within the side panel is not saved."],["Reopening the side panel using `loadSidePanel` will revert the side panel's content back to its original state defined in the add-on manifest."],["Add-ons should save any necessary data to their backend before `unloadSidePanel` is called to ensure data persistence."],["`unloadSidePanel` returns a `Promise` that resolves when the side panel has been successfully closed."]]],["The `unloadSidePanel` method closes the side panel iframe in Meet. Calling this method does not retain the side panel's state. Reopening the side panel resets its URL to the original value from the add-on manifest. Add-ons must persist their state in their backend before invoking `unloadSidePanel`. The method returns a promise that resolves when the operation is complete. This function is not optional.\n"]]