Enum Visibility
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Chế độ hiển thị
Một giá trị enum thể hiện chế độ hiển thị của một sự kiện.
Để gọi một enum, bạn phải gọi lớp, tên và thuộc tính gốc của lớp đó. Ví dụ:
CalendarApp.Visibility.CONFIDENTIAL
.
Thuộc tính
Tài sản | Loại | Nội dung mô tả |
CONFIDENTIAL | Enum | Sự kiện này đang ở chế độ riêng tư. Giá trị này được cung cấp vì lý do tương thích. |
DEFAULT | Enum | Sử dụng chế độ hiển thị mặc định cho các sự kiện trên lịch. |
PRIVATE | Enum | Sự kiện này là riêng tư và chỉ những người tham dự sự kiện mới có thể xem thông tin chi tiết của sự kiện. |
PUBLIC | Enum | Sự kiện này diễn ra công khai và chi tiết về sự kiện hiển thị cho tất cả người đọc lịch. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 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. |"]]