HomeTrigger 資訊清單資源
用於定義 Google Workspace 外掛程式
首頁觸發事件的資源設定。
HomepageTrigger
首頁觸發事件的 Google Workspace 外掛程式資訊清單設定。
您可以在 addOns.common.homepageTrigger
資源或個別主機應用程式的資源中定義首頁觸發事件。如果已定義並啟用主機應用程式的首頁觸發事件,就會覆寫在 addOns.common.homepageTrigger
中定義的首頁觸發事件。
詳情請參閱首頁設定。
JSON 表示法 |
{
"enabled": boolean,
"runFunction": string
} |
欄位 |
enabled |
boolean
是否為這個代管應用程式啟用首頁 (非情境) 資訊卡。預設值為 true 。 |
runFunction |
string
觸發條件觸發時要執行的函式名稱。如果已指定,您必須實作此函式,以便建構及傳回一或多個 Card 物件的陣列,以便在這個主機應用程式中顯示這個外掛程式的首頁。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-21 (世界標準時間)。
[null,null,["上次更新時間:2024-12-21 (世界標準時間)。"],[[["Homepage triggers define the configuration for Google Workspace Add-on homepages, letting you control card display and functionality."],["These triggers can be set globally or for specific host applications, with host-specific settings taking precedence."],["Homepage triggers are configured using the `enabled` and `runFunction` fields within the add-on's manifest file."],["The `runFunction` field points to a function that constructs and returns `Card` objects to populate the add-on's homepage."]]],[]]