Enum Visibility
Stay organized with collections
Save and categorize content based on your preferences.
Visibility
An enum representing the visibility of an event.
To call an enum, you call its parent class, name, and property. For example,
CalendarApp.Visibility.CONFIDENTIAL
.
Properties
Property | Type | Description |
CONFIDENTIAL | Enum | The event is private. This value is provided for compatibility reasons. |
DEFAULT | Enum | Uses the default visibility for events on the calendar. |
PRIVATE | Enum | The event is private and only event attendees may view event details. |
PUBLIC | Enum | The event is public and event details are visible to all readers of the calendar. |
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-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\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. |"]]