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\u003echrome.cast.media.UserActionState\u003c/code\u003e represents the state of a user action for media on a Cast device.\u003c/p\u003e\n"],["\u003cp\u003eIt is constructed with a mandatory \u003ccode\u003euserAction\u003c/code\u003e parameter indicating the type of user action, like seeking or pausing.\u003c/p\u003e\n"],["\u003cp\u003eThe state includes properties like \u003ccode\u003euserAction\u003c/code\u003e (the action type) and \u003ccode\u003ecustomData\u003c/code\u003e for app-specific information.\u003c/p\u003e\n"]]],["The `UserActionState` class represents the state of a user action for media. It is instantiated with a `UserAction` object, which must not be null. It has two properties: `userAction`, representing the specific user action, and `customData`, an optional object for application-specific data. The `UserActionState` class is used to manage and convey the state information of media user interactions.\n"],null,["# Class: UserActionState\n\nchrome.[cast](/cast/docs/reference/web_sender/chrome.cast).[media](/cast/docs/reference/web_sender/chrome.cast.media).UserActionState\n=====================================================================================================================================\n\nclass static\n\nRepresent User Action state for media.\n\nConstructor\n-----------\n\n### UserActionState\n\nnew\nUserActionState(userAction)\n\n| #### Parameter ||\n|------------|-----------------------------------------------------------------------------------------------------------------------|\n| userAction | [chrome.cast.media.UserAction](/cast/docs/reference/web_sender/chrome.cast.media#.UserAction) Value must not be null. |\n\nProperties\n----------\n\n### customData\n\n(non-null Object or undefined)\n\nOptional app specific data.\n\n### userAction\n\nnon-null [chrome.cast.media.UserAction](/cast/docs/reference/web_sender/chrome.cast.media#.UserAction)\n\nThe user action."]]