Enum EventType
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
EventType
טיפוס בני מנייה (enum) שמייצג את סוג האירוע.
כדי לקרוא למאפיין enum, צריך לקרוא לכיתה ההורה, לשם ולנכס שלו. לדוגמה,
CalendarApp.EventType.DEFAULT
.
מאפיינים
נכס | סוג | תיאור |
DEFAULT | Enum | האירוע הוא אירוע קבוע. |
BIRTHDAY | Enum | האירוע הוא אירוע מיוחד שנמשך כל היום וחוזר מדי שנה. |
FOCUS_TIME | Enum | האירוע הוא אירוע 'זמן לעצמי'. |
FROM_GMAIL | Enum | האירוע הוא אירוע מ-Gmail. |
OUT_OF_OFFICE | Enum | האירוע הוא אירוע מסוג 'לא בעבודה'. |
WORKING_LOCATION | Enum | האירוע הוא אירוע של מיקום עבודה. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון 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\u003eEventType\u003c/code\u003e is an enum used to represent the type of a calendar event, such as a regular event, a birthday, or a focus-time event.\u003c/p\u003e\n"],["\u003cp\u003eTo call an enum property, use the syntax \u003ccode\u003eCalendarApp.EventType.PROPERTY_NAME\u003c/code\u003e, for example, \u003ccode\u003eCalendarApp.EventType.BIRTHDAY\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEventType\u003c/code\u003e enum includes properties like \u003ccode\u003eDEFAULT\u003c/code\u003e, \u003ccode\u003eBIRTHDAY\u003c/code\u003e, \u003ccode\u003eFOCUS_TIME\u003c/code\u003e, \u003ccode\u003eFROM_GMAIL\u003c/code\u003e, \u003ccode\u003eOUT_OF_OFFICE\u003c/code\u003e, and \u003ccode\u003eWORKING_LOCATION\u003c/code\u003e, each representing a different event type.\u003c/p\u003e\n"]]],[],null,["# Enum EventType\n\nEventType\n\nAn enum representing the type of an event.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCalendarApp.EventType.DEFAULT`. \n\n### Properties\n\n| Property | Type | Description |\n|--------------------|--------|-----------------------------------------------------------------|\n| `DEFAULT` | `Enum` | The event is a regular event. |\n| `BIRTHDAY` | `Enum` | The event is a special all-day event with an annual recurrence. |\n| `FOCUS_TIME` | `Enum` | The event is a focus-time event. |\n| `FROM_GMAIL` | `Enum` | The event is an event from Gmail. |\n| `OUT_OF_OFFICE` | `Enum` | The event is an out-of-office event. |\n| `WORKING_LOCATION` | `Enum` | The event is a working location event. |"]]