接口 ActivityStartingState
参与者接受邀请后,插件的初始状态
启动 activity。
签名
interface ActivityStartingState
属性签名
名称 |
说明 |
additionalData |
该插件内部的数据,可用于初始化自身。非常适合向加入 activity 的用户传达无法存储在网址中的应用专用状态。此字符串的长度不得超过 4,096 个字符。 |
mainStageUrl |
主舞台为加入活动的用户打开的网址。此网址的长度必须少于 512 个字符。 |
sidePanelUrl |
侧边栏为加入活动的用户打开的网址。此网址的长度必须少于 512 个字符。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-10-16。
[null,null,["最后更新时间 (UTC):2024-10-16。"],[[["`ActivityStartingState` interface defines the initial state of an add-on when a user joins an activity."],["It includes properties like `additionalData` for internal add-on data, `mainStageUrl` for the main content URL, and `sidePanelUrl` for the side panel content URL."],["URLs for `mainStageUrl` and `sidePanelUrl` must be less than 512 characters, while `additionalData` string must be less than 4,096 characters."]]],["The `ActivityStartingState` interface defines the initial state of an add-on when a participant joins an activity. It includes `additionalData`, a string under 4,096 characters for internal add-on initialization data. `mainStageUrl` (under 512 characters) specifies the URL for the main stage view, while `sidePanelUrl` (also under 512 characters) indicates the URL for the side panel view for users joining the activity. These URLs are what is opened for users when they join.\n"]]