Podpis metody MeetMainStageClient.notifySidePanel
Wysyła wiadomość z iframe dodatku w głównej części ekranu do iframe dodatku w panelu bocznym. Wtyczka działająca w ramce iframe w panelu bocznym może zareagować na tę wiadomość za pomocą wywołania zwrotnego wtyczki frameToFrameMessage
. Długość tego ciągu musi być mniejsza niż 1 000 000 znaków.
Podpis
notifySidePanel(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-11-06 UTC.
[null,null,["Ostatnia aktualizacja: 2024-11-06 UTC."],[[["Enables communication from the main Google Meet stage to the side panel add-on."],["Utilizes the `frameToFrameMessage` callback in the side panel add-on to handle incoming messages."],["Requires a payload string with a maximum length of 1,000,000 characters."],["`notifySidePanel` function sends the message to the side panel, returning a `Promise\u003cvoid\u003e`."]]],["The `notifySidePanel` function sends a string message (`payload`) from the main stage add-on iframe to the side panel add-on iframe. The side panel add-on can then process this message via the `frameToFrameMessage` callback. The `payload` string is mandatory and must be under 1,000,000 characters. This function returns a promise that resolves when the message is sent.\n"]]