限制
插件可以执行的操作受到一些限制。请避免这些陷阱,以提升用户的整体体验。
一般限制
以下限制适用于所有插件。请勿执行以下操作:
更改 Google Workspace 中的功能
该插件框架旨在增强 Google Workspace 应用,而不是增加限制。因此,您无法更改现有功能或锁定 Google Workspace 文档共享模式。
向用户收取安装费用
我们不提供向用户收取安装插件费用的方法,并且插件不得包含广告。不过,您可以自行构建付款系统,也可以调用现有结算数据库。您的插件可以连接到向用户收费的非 Google 服务。
检测许多事件
除了某些触发器外,插件无法得知用户在插件本身之外执行了哪些操作。例如,您无法检测用户何时点击宿主应用工具栏。您可以通过边栏的客户端代码轮询文件内容的更改,但始终会存在轻微延迟。
编辑器插件
以下限制仅适用于编辑器插件。请勿执行以下操作:
使用 Card 服务定义界面
编辑器插件目前只能使用 HTML 和 CSS(而非卡片服务)定义界面。
在移动设备上使用编辑器插件
编辑器插件仅适用于桌面客户端,不适用于编辑器的移动应用。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-30。
[null,null,["最后更新时间 (UTC):2025-01-30。"],[[["Google Workspace add-ons enhance existing features but cannot modify or restrict core functionalities or the sharing model."],["Add-ons cannot directly charge users for installation or contain ads, though external payment integrations are permitted."],["While add-ons can respond to specific triggers, they generally cannot detect user actions outside the add-on's scope."],["Editor add-ons are limited to desktop environments and utilize HTML/CSS for UI design instead of the Card service."]]],["Add-ons must not alter existing Google Workspace features or sharing models. They cannot charge users for installation or display ads. Add-ons have limited ability to detect user actions outside of the add-on, except for specific triggers, although content changes can be polled with a delay. Editor add-ons are restricted to HTML/CSS UIs (no Card service) and are only available on desktop, not mobile apps.\n"]]