限制
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
插件可以执行的操作受到一些限制。请避免这些陷阱,以提升用户的整体体验。
一般限制
以下限制适用于所有插件。请勿执行以下操作:
更改 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。"],[[["\u003cp\u003eGoogle Workspace add-ons enhance existing features but cannot modify or restrict core functionalities or the sharing model.\u003c/p\u003e\n"],["\u003cp\u003eAdd-ons cannot directly charge users for installation or contain ads, though external payment integrations are permitted.\u003c/p\u003e\n"],["\u003cp\u003eWhile add-ons can respond to specific triggers, they generally cannot detect user actions outside the add-on's scope.\u003c/p\u003e\n"],["\u003cp\u003eEditor add-ons are limited to desktop environments and utilize HTML/CSS for UI design instead of the Card service.\u003c/p\u003e\n"]]],["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"],null,["# Restrictions\n\nThere are a few restrictions on what add-ons can do. Improve your users'\noverall experience by avoiding these pitfalls.\n\nGeneral restrictions\n--------------------\n\nThe following restrictions apply to all add-ons. Don't do the following:\n\n### Change features in Google Workspace\n\nThe add-ons framework is designed to enhance\nGoogle Workspace applications---not to\nadd limits. Consequently, you can't alter existing features or lock down the\nGoogle Workspace document sharing model.\n\n### Charge users to install\n\nWe don't provide a way to charge users for installing add-ons, and add-ons\n[can't include ads](/apps-script/terms). However, you can roll your own payment\nsystem or call into an existing billing database. Your add-on can connect to\nnon-Google services that bill users.\n\n### Detect many events\n\nExcept for [certain triggers](/workspace/add-ons/concepts/triggers), add-ons can't\ntell what a user does outside the add-on itself. For example, you can't detect\nwhen the user clicks on the host application toolbar. It is possible to poll for\nchanges in a file's contents from a sidebar's client-side code, although\nyou'll always have a slight delay.\n\nEditor add-ons\n--------------\n\nThe following restrictions only apply to Editor add-ons. Don't do the following:\n\n### Define UIs with the Card service\n\nEditor add-ons can currently only define a UI using HTML and CSS, not the\n[Card service](/apps-script/reference/card-service/card-service).\n\n### Use Editor add-ons on mobile\n\nEditor add-ons are only available on desktop clients, not the mobile apps\nfor the editors."]]