方法签名 MeetSidePanelClient.notifyMainStage
从侧边栏插件 iframe 向主界面插件发送消息
iframe。在主界面 iframe 中运行的插件会对此消息做出回应
使用
frameToFrameMessage
插件回调(请参阅
AddonCallbacks
)。
此字符串的长度必须小于 100 万个字符。
签名
notifyMainStage(payload: string): Promise<void>;
详细信息
参数
名称 |
类型 |
可选 |
说明 |
payload |
string |
否 |
|
返回
Promise<void>
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-09。
[null,null,["最后更新时间 (UTC):2024-09-09。"],[[["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."]]],[]]