HomepageTrigger 清单资源
用于定义 Google Workspace 插件
首页触发器的资源配置。
HomepageTrigger
首页触发器的 Google Workspace 插件清单配置。
您可以在 addOns.common.homepageTrigger
资源或各个托管应用的资源中定义首页触发器。如果已定义并启用托管应用的首页触发器,则该触发器会替换 addOns.common.homepageTrigger
中定义的首页触发器。
如需了解详情,请参阅首页配置。
JSON 表示法 |
{
"enabled": boolean,
"runFunction": string
} |
字段 |
enabled |
boolean
是否为此托管应用启用了首页(非情境)卡片。默认值为 true 。
|
runFunction |
string
用于运行此触发器触发的函数的名称。如果指定了此属性,您必须实现此函数,以构建并返回一个或多个 Card 对象的数组,以便在该托管应用中显示此插件的主页。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-21。
[null,null,["最后更新时间 (UTC):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."]]],[]]