ลายเซ็นเมธอด MeetSidePanelClient.notifyMainStage
ส่งข้อความจาก iframe ของส่วนเสริมแผงด้านข้างไปยังส่วนเสริมหลัก
iframe ส่วนเสริมที่ทำงานอยู่ใน iframe ของเวทีหลักจะตอบสนองต่อข้อความนี้ได้
โดยใช้
frameToFrameMessage
Callback ของส่วนเสริม (โปรดดู
AddonCallbacks
)
สตริงนี้ต้องมีความยาวไม่เกิน 1,000,000 อักขระ
ลายเซ็น
notifyMainStage(payload: string): Promise<void>;
รายละเอียด
พารามิเตอร์
ชื่อ |
ประเภท |
ไม่บังคับ |
คำอธิบาย |
payload |
string |
ไม่ |
|
การคืนสินค้า
Promise<void>
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-09 UTC
[null,null,["อัปเดตล่าสุด 2024-09-09 UTC"],[[["Enables communication from a side panel add-on to a main stage add-on within Google Meet."],["Utilizes the `notifyMainStage` function with a payload string to send messages."],["Main stage add-ons can receive and react to these messages using the `frameToFrameMessage` callback."],["The payload string is limited to under 1,000,000 characters."]]],["The `notifyMainStage` function sends a string message (`payload`) from a side panel add-on iframe to the main stage add-on iframe. The main stage add-on can receive this message via the `frameToFrameMessage` callback. The message string must be under 1,000,000 characters. The `payload` parameter is required and the function returns a Promise that resolves when the message is sent.\n"]]