Enum Visibility
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
可见性
表示事件可见性的枚举。
若要调用枚举,您可以调用其父类、名称和属性。例如
CalendarApp.Visibility.CONFIDENTIAL
。
属性
媒体资源 | 类型 | 说明 |
CONFIDENTIAL | Enum | 此活动是私人的。提供此值是为了确保兼容性。 |
DEFAULT | Enum | 使用日历上的活动的默认公开范围。 |
PRIVATE | Enum | 此活动是私人的,只有活动参加者才能查看活动详细信息。 |
PUBLIC | Enum | 此活动是公开的,日历的所有读者均可看到活动详细信息。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):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. |"]]