Package google.apps.script.type.calendar
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
CalendarAddOnManifest
用于自定义 Google 日历插件外观和执行方式的属性。
EventAccess
枚举 |
UNSPECIFIED |
未为 eventAccess 设置任何值时的默认值。 |
METADATA |
向事件触发器授予访问事件元数据(例如事件 ID 和日历 ID)的权限。 |
READ |
向事件触发器授予对所有所提供事件字段(包括元数据、参加者和会议数据)的访问权限。 |
WRITE |
向事件触发器授予对事件元数据的访问权限,并允许执行所有操作,包括添加参加者和设置会议数据。 |
READ_WRITE |
向事件触发器授予对所有提供的事件字段(包括元数据、参加者和会议数据)的访问权限,以及执行所有操作的权限。 |
CalendarExtensionPoint
字段 |
runFunction |
string
必需。激活此扩展点时要执行的端点。
|
ConferenceSolution
字段 |
onCreateFunction |
string
必需。应创建电话会议数据时要调用的端点。
|
id |
string
必需。在一个插件中,应为各种会议解决方案分配唯一的 ID,否则在触发该插件时可能会使用错误的会议解决方案。虽然您可以更改插件的显示名称,但不应更改 ID。
|
name |
string
必需。会议解决方案的显示名称。
|
logoUrl |
string
必需。会议解决方案徽标图片的网址。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-27。
[null,null,["最后更新时间 (UTC):2025-02-27。"],[[["\u003cp\u003eThe \u003ccode\u003eCalendarAddOnManifest\u003c/code\u003e defines the properties, triggers, and data access levels for Google Calendar add-ons.\u003c/p\u003e\n"],["\u003cp\u003eAdd-ons can define triggers to execute functions when events are opened, updated, or when users interact with attachments.\u003c/p\u003e\n"],["\u003cp\u003eConference solutions can be integrated within add-ons, providing functionalities like creating conference data with a specified endpoint.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCalendarExtensionPoint\u003c/code\u003e and \u003ccode\u003eConferenceSolution\u003c/code\u003e further detail how add-ons can extend Calendar's features with specific functionalities and triggers.\u003c/p\u003e\n"],["\u003cp\u003eDifferent levels of data access, ranging from metadata to read-write permissions, can be defined for event triggers in add-ons using \u003ccode\u003eEventAccess\u003c/code\u003e.\u003c/p\u003e\n"]]],["The document outlines configurations for Calendar add-ons, including the `CalendarAddOnManifest` which defines properties like `homepageTrigger`, `conferenceSolution`, and event triggers (`eventOpenTrigger`, `eventUpdateTrigger`, `eventAttachmentTrigger`). `EventAccess` defines data access levels (metadata, read, write, read_write). `CalendarExtensionPoint` specifies trigger endpoints. `ConferenceSolution` defines settings like `onCreateFunction`, `id`, `name`, and `logoUrl` for conference features within the add-on.\n"],null,["# Package google.apps.script.type.calendar\n\nIndex\n-----\n\n- [CalendarAddOnManifest](/workspace/add-ons/reference/rpc/google.apps.script.type/calendar#google.apps.script.type.calendar.CalendarAddOnManifest) (message)\n- [CalendarAddOnManifest.EventAccess](/workspace/add-ons/reference/rpc/google.apps.script.type/calendar#google.apps.script.type.calendar.CalendarAddOnManifest.EventAccess) (enum)\n- [CalendarExtensionPoint](/workspace/add-ons/reference/rpc/google.apps.script.type/calendar#google.apps.script.type.calendar.CalendarExtensionPoint) (message)\n- [ConferenceSolution](/workspace/add-ons/reference/rpc/google.apps.script.type/calendar#google.apps.script.type.calendar.ConferenceSolution) (message)\n\nCalendarAddOnManifest\n---------------------\n\nProperties customizing the appearance and execution of a Calendar add-on.\n\n| Fields ||\n|-----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `homepageTrigger` | [HomepageExtensionPoint](/workspace/add-ons/reference/rpc/google.apps.script.type#google.apps.script.type.HomepageExtensionPoint) Defines an endpoint that is executed in contexts that don't match a declared contextual trigger. Any cards generated by this function will always be available to the user, but might be eclipsed by contextual content when this add-on declares more targeted triggers. If present, this overrides the configuration from `addOns.common.homepageTrigger`. |\n| `conferenceSolution[]` | [ConferenceSolution](/workspace/add-ons/reference/rpc/google.apps.script.type/calendar#google.apps.script.type.calendar.ConferenceSolution) Defines conference solutions provided by this add-on. Third-party conferencing add-ons can only be built in [Apps Script](https://developers.google.com/apps-script/reference/conference-data). |\n| `createSettingsUrlFunction` | `string` An endpoint to execute that creates a URL to the add-on's settings page. |\n| `eventOpenTrigger` | [CalendarExtensionPoint](/workspace/add-ons/reference/rpc/google.apps.script.type/calendar#google.apps.script.type.calendar.CalendarExtensionPoint) An endpoint that triggers when an event is opened to be viewed or edited. |\n| `eventUpdateTrigger` | [CalendarExtensionPoint](/workspace/add-ons/reference/rpc/google.apps.script.type/calendar#google.apps.script.type.calendar.CalendarExtensionPoint) An endpoint that triggers when the open event is updated. |\n| `eventAttachmentTrigger` | [MenuItemExtensionPoint](/workspace/add-ons/reference/rpc/google.apps.script.type#google.apps.script.type.MenuItemExtensionPoint) A configuration for a contextual trigger that fires when the user clicks on the add-on attachment provider in the Calendar dropdown menu. |\n| `currentEventAccess` | [EventAccess](/workspace/add-ons/reference/rpc/google.apps.script.type/calendar#google.apps.script.type.calendar.CalendarAddOnManifest.EventAccess) Defines the level of data access when an event add-on is triggered. |\n\nEventAccess\n-----------\n\nAn enum that defines the level of data access event triggers require.\n\n| Enums ||\n|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `UNSPECIFIED` | Default value when nothing is set for eventAccess. |\n| `METADATA` | Gives event triggers the permission to access the metadata of events, such as event ID and calendar ID. |\n| `READ` | Gives event triggers access to all provided event fields including the metadata, attendees, and conference data. |\n| `WRITE` | Gives event triggers access to the metadata of events and the ability to perform all actions, including adding attendees and setting conference data. |\n| `READ_WRITE` | Gives event triggers access to all provided event fields including the metadata, attendees, and conference data and the ability to perform all actions. |\n\nCalendarExtensionPoint\n----------------------\n\nCommon format for declaring a calendar add-on's triggers.\n\n| Fields ||\n|---------------|------------------------------------------------------------------------------------|\n| `runFunction` | `string` Required. The endpoint to execute when this extension point is activated. |\n\nConferenceSolution\n------------------\n\nDefines conference-related values. Third-party conferencing add-ons can only be built in [Apps Script](https://developers.google.com/apps-script/reference/conference-data).\n\n| Fields ||\n|--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `onCreateFunction` | `string` Required. The endpoint to call when conference data should be created. |\n| `id` | `string` Required. IDs should be uniquely assigned across conference solutions within one add-on, otherwise the wrong conference solution might be used when the add-on is triggered. While you can change the display name of an add-on, the ID shouldn't be changed. |\n| `name` | `string` Required. The display name of the conference solution. |\n| `logoUrl` | `string` Required. The URL for the logo image of the conference solution. |"]]