Enum EventTransparency
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
事件透明度
表示事件透明度的枚举。
如需调用枚举,您可以调用其父类、名称和属性。例如
CalendarApp.EventTransparency.OPAQUE
。
属性
属性 | 类型 | 说明 |
OPAQUE | Enum | 该活动会在日历上占用相应时间。这相当于在 Google 日历界面中将“显示我为”设置为“忙碌”。 |
TRANSPARENT | Enum | 活动不会占用日历上的时间。这相当于在 Google 日历界面中将“显示我为”设置为“可用”。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eEventTransparency\u003c/code\u003e is an enum used to define how an event appears on a calendar, indicating whether it blocks time or not.\u003c/p\u003e\n"],["\u003cp\u003eThe two possible values are \u003ccode\u003eOPAQUE\u003c/code\u003e (event blocks time, like "Busy") and \u003ccode\u003eTRANSPARENT\u003c/code\u003e (event doesn't block time, like "Available").\u003c/p\u003e\n"],["\u003cp\u003eTo use these values, call them through the parent class and name, for example, \u003ccode\u003eCalendarApp.EventTransparency.OPAQUE\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum EventTransparency\n\nEventTransparency\n\nAn enum representing the transparency of an event.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCalendarApp.EventTransparency.OPAQUE`. \n\n### Properties\n\n| Property | Type | Description |\n|---------------|--------|------------------------------------------------------------------------------------------------------------------------------|\n| `OPAQUE` | `Enum` | The event does block time on the calendar. This is equivalent to setting \"Show me as\" to \"Busy\" in the Calendar UI. |\n| `TRANSPARENT` | `Enum` | The event does not block time on the calendar. This is equivalent to setting \"Show me as\" to \"Available\" in the Calendar UI. |"]]