클래스: CustomStateEvent
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[[["\u003cp\u003eThe \u003ccode\u003eCustomStateEvent\u003c/code\u003e class provides data for custom state events within the Cast framework.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a \u003ccode\u003estate\u003c/code\u003e property, a non-null object representing the sent media status.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use the \u003ccode\u003eCustomStateEvent\u003c/code\u003e constructor with the \u003ccode\u003estate\u003c/code\u003e parameter to create instances of this event.\u003c/p\u003e\n"]]],["The `CustomStateEvent` class provides event data for `cast.framework.events.EventType.CUSTOM_STATE`. It's created with a constructor, `CustomStateEvent(state)`, which requires a non-null Object for the `state` parameter. The class contains one property: `state`, a non-null Object that holds the media status transmitted during the event. This event signifies that a custom state was sent and this class holds the content of that sent custom media status.\n"],null,["# Class: CustomStateEvent\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[events](/cast/docs/reference/web_receiver/cast.framework.events).CustomStateEvent\n=====================================================================================================================================================\n\nclass static\n\nEvent data for a `cast.framework.events.EventType.CUSTOM_STATE` event.\n\nConstructor\n-----------\n\n### CustomStateEvent\n\nnew\nCustomStateEvent(state)\n\n| #### Parameter ||\n|-------|--------------------------------|\n| state | Object Value must not be null. |\n\nProperty\n--------\n\n### state\n\nconstant\n\nnon-null Object\n\nThe media status that was sent."]]