Class CalendarTriggerBuilder
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כליהיצירהשל טריגריםביומן
הכלי ליצירת טריגרים ביומן.
מסמכים מפורטים
create()
יצירת הטריגר והחזרתו.
חזרה
Trigger
— הטריגר החדש.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\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."]]