ActivityStartState 介面
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
參與者接受邀請時,外掛程式的啟動狀態
開始活動。
簽名
interface ActivityStartingState
屬性簽名
名稱 |
說明 |
additionalData |
外掛程式內部的資料,可用於初始化自身。可用來向加入網址中無法儲存的活動的使用者,傳達應用程式的專屬狀態。此字串長度不得超過 4,096 個字元。 |
mainStageUrl |
使用者加入活動的主要階段網址。這個網址的長度不得超過 512 個字元。 |
sidePanelUrl |
側邊面板為加入活動的使用者開啟的網址。這個網址的長度不得超過 512 個字元。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],null,["# Interface ActivityStartingState\n\nStarting state of the add-on when the participant accepts the invitation to\nstart an activity.\n\nSignature\n---------\n\n interface ActivityStartingState\n\nProperty signatures\n-------------------\n\n| Name | Description |\n|-------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [`additionalData`](./addon_sdk.activitystartingstate.additionaldata.md) | Data internal to the add-on that it can use to initialize itself. Useful for communicating application-specific state to users joining the activity that cannot be stored in the URLs. The length of this string must be less than 4,096 characters. |\n| [`mainStageUrl`](./addon_sdk.activitystartingstate.mainstageurl.md) | The URL that the main stage opens for users joining the activity. The length of this URL must be less than 512 characters. |\n| [`sidePanelUrl`](./addon_sdk.activitystartingstate.sidepanelurl.md) | The URL that the side panel opens for users joining the activity. The length of this URL must be less than 512 characters. |"]]