Class CalendarTriggerBuilder
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eCalendarTriggerBuilder\u003c/code\u003e helps in building triggers specifically for Google Calendar events.\u003c/p\u003e\n"],["\u003cp\u003eIt offers methods like \u003ccode\u003ecreate()\u003c/code\u003e to finalize the trigger and \u003ccode\u003eonEventUpdated()\u003c/code\u003e to define the trigger activation upon calendar event changes (creation, update, or deletion).\u003c/p\u003e\n"],["\u003cp\u003eTriggers built using \u003ccode\u003eCalendarTriggerBuilder\u003c/code\u003e fire when a calendar entry is created, updated, or deleted.\u003c/p\u003e\n"]]],["The `CalendarTriggerBuilder` creates calendar triggers. The `create()` method generates and returns a new trigger. The `onEventUpdated()` method defines a trigger that activates when a calendar entry is added, modified, or removed, and this method returns the builder itself, allowing for method chaining. Both return the trigger or the builder itself.\n"],null,["# Class CalendarTriggerBuilder\n\nCalendarTriggerBuilder\n\nBuilder for calendar triggers. \n\n### Methods\n\n| Method | Return type | Brief description |\n|---------------------------------------|--------------------------------------------------|---------------------------------------------------------------------------------------|\n| [create()](#create()) | [Trigger](/apps-script/reference/script/trigger) | Creates the trigger and returns it. |\n| [onEventUpdated()](#onEventUpdated()) | [CalendarTriggerBuilder](#) | Specifies a trigger that fires when a calendar entry is created, updated, or deleted. |\n\nDetailed documentation\n----------------------\n\n### `create()`\n\nCreates the trigger and returns it.\n\n#### Return\n\n\n[Trigger](/apps-script/reference/script/trigger) --- The new trigger.\n\n*** ** * ** ***\n\n### `on``Event``Updated()`\n\nSpecifies a trigger that fires when a calendar entry is created, updated, or deleted.\n\n#### Return\n\n\n[CalendarTriggerBuilder](#) --- This [CalendarTriggerBuilder](#), for chaining."]]