类:Event
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003e\u003ccode\u003ecast.framework.system.Event\u003c/code\u003e is dispatched by \u003ccode\u003ecast.framework.CastReceiverContext\u003c/code\u003e and provides system information.\u003c/p\u003e\n"],["\u003cp\u003eIt is constructed with \u003ccode\u003etype\u003c/code\u003e and \u003ccode\u003edata\u003c/code\u003e, where \u003ccode\u003etype\u003c/code\u003e is a non-null \u003ccode\u003ecast.framework.system.EventType\u003c/code\u003e and \u003ccode\u003edata\u003c/code\u003e is deprecated.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etype\u003c/code\u003e property indicates the specific event type from \u003ccode\u003ecast.framework.system.EventType\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Class: Event\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[system](/cast/docs/reference/web_receiver/cast.framework.system).Event\n==========================================================================================================================================\n\nclass static\n\nAn event dispatched by [cast.framework.CastReceiverContext](/cast/docs/reference/web_receiver/cast.framework.CastReceiverContext) which\ncontains system information.\n\nConstructor\n-----------\n\n### Event\n\nnew\nEvent(type, data)\n\n| #### Parameter ||\n|------|-------------------------------------------------------------------------------------------------------------------------------------------|\n| type | [cast.framework.system.EventType](/cast/docs/reference/web_receiver/cast.framework.system#.EventType) Event Type. Value must not be null. |\n| data | (nullable any type or undefined) Event data (deprecated). |\n\nProperty\n--------\n\n### type\n\nnon-null [cast.framework.system.EventType](/cast/docs/reference/web_receiver/cast.framework.system#.EventType)\n\nThe event type."]]