امضای متد MeetMainStageClient.notifySidePanel
یک پیام از مرحله اصلی iframe افزودنی به iframe افزودنی پانل کناری ارسال می کند. افزونهای که در iframe پانل کناری اجرا میشود، میتواند با استفاده از فراخوان frameToFrameMessage
به این پیام واکنش نشان دهد. طول این رشته باید کمتر از 1,000,000 کاراکتر باشد.
امضا
notifySidePanel(payload: string): Promise<void>;
جزئیات
پارامترها
نام | تایپ کنید | اختیاری | توضیحات |
---|
payload | string | خیر | |
برمی گرداند
Promise<void>
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی."],[[["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"]]