Enum Visibility
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ระดับการแชร์
enum ที่แทนระดับการเข้าถึงของกิจกรรม
หากต้องการเรียก enum คุณจะต้องเรียกคลาส ชื่อ และพร็อพเพอร์ตี้ระดับบนสุด เช่น
CalendarApp.Visibility.CONFIDENTIAL
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | Type | คำอธิบาย |
CONFIDENTIAL | Enum | กิจกรรมนี้เป็นแบบส่วนตัว ค่านี้ระบุไว้ด้วยเหตุผลด้านความเข้ากันได้ |
DEFAULT | Enum | ใช้ระดับการเข้าถึงเริ่มต้นสำหรับกิจกรรมในปฏิทิน |
PRIVATE | Enum | กิจกรรมนี้เป็นแบบส่วนตัวและเฉพาะผู้เข้าร่วมกิจกรรมเท่านั้นที่จะดูรายละเอียดของกิจกรรมได้ |
PUBLIC | Enum | กิจกรรมนี้เป็นแบบสาธารณะ และรายละเอียดกิจกรรมจะปรากฏแก่ผู้อ่านทุกคนในปฏิทิน |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]