חתימת השיטה MeetMainStageClient.notifySidePanel
שליחת הודעה מ-iframe של תוסף בשלב הראשי ל-iframe של תוסף בחלונית הצדדית. התוסף שפועל ב-iframe של החלונית הצדדית יכול להגיב להודעה הזו באמצעות קריאה חוזרת (callback) של התוסף frameToFrameMessage
. האורך של המחרוזת הזו חייב להיות קטן מ-1,000,000 תווים.
חתימה
notifySidePanel(payload: string): Promise<void>;
פרטים
פרמטרים
שם |
סוג |
אופציונלי |
תיאור |
payload |
string |
לא |
|
החזרות
Promise<void>
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-06 (שעון UTC).
[null,null,["עדכון אחרון: 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"]]