Podpis metody MeetSidePanelClient.notifyMainStage
Wysyła wiadomość z elementu iframe dodatku w panelu bocznym do dodatku sceny głównej
iframe. Dodatek działający w elemencie iframe sceny głównej może zareagować na tę wiadomość
za pomocą
frameToFrameMessage
wywołanie zwrotne dodatku (patrz
AddonCallbacks
).
Długość tego ciągu musi być mniejsza niż 1 000 000 znaków.
Podpis
notifyMainStage(payload: string): Promise<void>;
Szczegóły
Parametry
Nazwa |
Typ |
Opcjonalnie |
Opis |
payload |
string |
Nie |
|
Zwroty
Promise<void>
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-10 UTC.
[null,null,["Ostatnia aktualizacja: 2024-09-10 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"]]