Klasa: CustomStateEvent
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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,["cast.[framework](/cast/docs/reference/web_receiver/cast.framework).[events](/cast/docs/reference/web_receiver/cast.framework.events).CustomStateEvent \nclass static\n\nEvent data for a `cast.framework.events.EventType.CUSTOM_STATE` event.\n\nConstructor\n\nCustomStateEvent\n\nnew\nCustomStateEvent(state)\n\n| Parameter ||\n|-------|--------------------------------|\n| state | Object Value must not be null. |\n\nProperty\n\nstate \nconstant\n\nnon-null Object\n\nThe media status that was sent."]]