Enum Visibility
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
瀏覽權限
列舉代表事件的瀏覽權限。
如要呼叫列舉,您可以呼叫其父項類別、名稱和屬性。例如
CalendarApp.Visibility.CONFIDENTIAL
。
屬性
屬性 | 類型 | 說明 |
CONFIDENTIAL | Enum | 這是私人活動。系統會基於相容性考量提供這個值。 |
DEFAULT | Enum | 為日曆上的活動使用預設的顯示設定。 |
PRIVATE | Enum | 這是私人活動,只有活動與會者看得到活動詳細資訊。 |
PUBLIC | Enum | 活動是公開的,且日曆的所有讀者都能看到活動詳細資訊。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003e\u003ccode\u003eCalendarApp.Visibility\u003c/code\u003e is an enum used to define the visibility of an event.\u003c/p\u003e\n"],["\u003cp\u003eYou can set an event's visibility to \u003ccode\u003eCONFIDENTIAL\u003c/code\u003e, \u003ccode\u003eDEFAULT\u003c/code\u003e, \u003ccode\u003ePRIVATE\u003c/code\u003e, or \u003ccode\u003ePUBLIC\u003c/code\u003e to control who can view its details.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePRIVATE\u003c/code\u003e events are only visible to attendees, while \u003ccode\u003ePUBLIC\u003c/code\u003e events are visible to all calendar readers.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCONFIDENTIAL\u003c/code\u003e is provided for compatibility and \u003ccode\u003eDEFAULT\u003c/code\u003e uses the calendar's default visibility settings.\u003c/p\u003e\n"]]],["The `Visibility` enum defines the privacy settings for calendar events. It has four properties: `CONFIDENTIAL` (private, for compatibility), `DEFAULT` (calendar's default setting), `PRIVATE` (visible only to attendees), and `PUBLIC` (visible to all calendar readers). To access these, use the format `CalendarApp.Visibility.[Property]`. Each property is of `Enum` type, and defines who can view the event details.\n"],null,["# Enum Visibility\n\nVisibility\n\nAn enum representing the visibility of an event.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCalendarApp.Visibility.CONFIDENTIAL`. \n\n### Properties\n\n| Property | Type | Description |\n|----------------|--------|-----------------------------------------------------------------------------------|\n| `CONFIDENTIAL` | `Enum` | The event is private. This value is provided for compatibility reasons. |\n| `DEFAULT` | `Enum` | Uses the default visibility for events on the calendar. |\n| `PRIVATE` | `Enum` | The event is private and only event attendees may view event details. |\n| `PUBLIC` | `Enum` | The event is public and event details are visible to all readers of the calendar. |"]]