Enum EventType
Stay organized with collections
Save and categorize content based on your preferences.
EventType
An enum representing the type of an event.
To call an enum, you call its parent class, name, and property. For example,
CalendarApp.EventType.DEFAULT
.
Properties
Property | Type | Description |
DEFAULT | Enum | The event is a regular event. |
BIRTHDAY | Enum | The event is a special all-day event with an annual recurrence. |
FOCUS_TIME | Enum | The event is a focus-time event. |
FROM_GMAIL | Enum | The event is an event from Gmail. |
OUT_OF_OFFICE | Enum | The event is an out-of-office event. |
WORKING_LOCATION | Enum | The event is a working location event. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[null,null,["Last updated 2024-12-02 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. |"]]