Enum Visibility
瀏覽權限
列舉代表事件的瀏覽權限。
如要呼叫列舉,您可以呼叫其父項類別、名稱和屬性。例如
CalendarApp.Visibility.CONFIDENTIAL
。
屬性
屬性 | 類型 | 說明 |
CONFIDENTIAL | Enum | 這是私人活動。系統會基於相容性考量提供這個值。 |
DEFAULT | Enum | 為日曆上的活動使用預設的顯示設定。 |
PRIVATE | Enum | 這是私人活動,只有活動與會者看得到活動詳細資訊。 |
PUBLIC | Enum | 活動是公開的,且日曆的所有讀者都能看到活動詳細資訊。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-02 (世界標準時間)。
[null,null,["上次更新時間:2023-12-02 (世界標準時間)。"],[[["`CalendarApp.Visibility` is an enum used to define the visibility of an event."],["You can set an event's visibility to `CONFIDENTIAL`, `DEFAULT`, `PRIVATE`, or `PUBLIC` to control who can view its details."],["`PRIVATE` events are only visible to attendees, while `PUBLIC` events are visible to all calendar readers."],["`CONFIDENTIAL` is provided for compatibility and `DEFAULT` uses the calendar's default visibility settings."]]],["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"]]