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