Tanda tangan metode MeetSidePanelClient.notifyMainStage
Mengirim pesan dari iframe add-on panel samping ke add-on layar utama
iframe. Add-on yang berjalan di iframe tahap utama dapat bereaksi terhadap pesan ini
menggunakan
frameToFrameMessage
callback add-on (lihat
AddonCallbacks
)
Panjang string ini harus kurang dari 1.000.000 karakter.
Tanda Tangan
notifyMainStage(payload: string): Promise<void>;
Detail
Parameter
Nama |
Jenis |
Opsional |
Deskripsi |
payload |
string |
Tidak |
|
Hasil
Promise<void>
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-09-09 UTC.
[null,null,["Terakhir diperbarui pada 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"]]