Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[null,null,["Dernière mise à jour le 2025/07/25 (UTC)."],[[["\u003cp\u003e\u003ccode\u003eEventData\u003c/code\u003e is a class used for generic Cast events, requiring an event type as input.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a constructor to create new \u003ccode\u003eEventData\u003c/code\u003e objects with a specified event type.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etype\u003c/code\u003e property indicates the event type and is a non-null value from the \u003ccode\u003ecast.framework.EventType\u003c/code\u003e enum.\u003c/p\u003e\n"]]],["The `EventData` class within the `cast.framework` provides generic data for cast events. It requires a non-null `type` parameter during construction, which specifies the event's type using `cast.framework.EventType`. The primary property of this class is `type`, also defined as a non-null `cast.framework.EventType`, indicating the specific type of event being handled. The class allows the specification of an event type.\n"],null,["# Class: EventData\n\ncast.[framework](/cast/docs/reference/web_sender/cast.framework).EventData\n==========================================================================\n\nclass static\n\nGeneric cast event data. Provide the event type.\n\nConstructor\n-----------\n\n### EventData\n\nnew\nEventData(type)\n\n| #### Parameter ||\n|------|-------------------------------------------------------------------------------------------------------------------------------|\n| type | [cast.framework.EventType](/cast/docs/reference/web_sender/cast.framework#.EventType) The event type. Value must not be null. |\n\nProperty\n--------\n\n### type\n\nnon-null [cast.framework.EventType](/cast/docs/reference/web_sender/cast.framework#.EventType)\n\nThe event type."]]