Enum EventType
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
事件類型
代表事件類型的列舉。
如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如
CalendarApp.EventType.DEFAULT
。
屬性
屬性 | 類型 | 說明 |
DEFAULT | Enum | 活動為一般活動。 |
BIRTHDAY | Enum | 這項活動是每年週期性重複發生的全天活動。 |
FOCUS_TIME | Enum | 該事件是專注時間活動。 |
FROM_GMAIL | Enum | 活動是 Gmail 中的活動。 |
OUT_OF_OFFICE | Enum | 活動是不在辦公室的活動。 |
WORKING_LOCATION | Enum | 活動是工作地點活動。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\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. |"]]