Enum EventTransparency
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
事件資訊公開代表事件透明度的列舉。
如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如
CalendarApp.EventTransparency.OPAQUE
。
屬性
屬性 | 類型 | 說明 |
OPAQUE | Enum | 活動會在日曆上顯示為已預約的時間。這相當於在 Google 日曆 UI 中將「顯示我為」設定為「忙碌」。 |
TRANSPARENT | Enum | 活動不會在日曆上阻擋時間。這相當於在 Google 日曆 UI 中將「顯示我為」設定為「可用」。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003e\u003ccode\u003eEventTransparency\u003c/code\u003e is an enum used to define how an event appears on a calendar, indicating whether it blocks time or not.\u003c/p\u003e\n"],["\u003cp\u003eThe two possible values are \u003ccode\u003eOPAQUE\u003c/code\u003e (event blocks time, like "Busy") and \u003ccode\u003eTRANSPARENT\u003c/code\u003e (event doesn't block time, like "Available").\u003c/p\u003e\n"],["\u003cp\u003eTo use these values, call them through the parent class and name, for example, \u003ccode\u003eCalendarApp.EventTransparency.OPAQUE\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum EventTransparency\n\nEventTransparency\n\nAn enum representing the transparency of an event.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCalendarApp.EventTransparency.OPAQUE`. \n\n### Properties\n\n| Property | Type | Description |\n|---------------|--------|------------------------------------------------------------------------------------------------------------------------------|\n| `OPAQUE` | `Enum` | The event does block time on the calendar. This is equivalent to setting \"Show me as\" to \"Busy\" in the Calendar UI. |\n| `TRANSPARENT` | `Enum` | The event does not block time on the calendar. This is equivalent to setting \"Show me as\" to \"Available\" in the Calendar UI. |"]]