PlayerStateChangedPayload
What playerStateChanged gets: the payload a handler receives.
Definition
Section titled “Definition”type PlayerStateChangedPayload = { player: PlayerSnapshot; fromState: PlayerState; toState: PlayerState;};Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
player |
PlayerSnapshot |
The player. |
fromState |
PlayerState |
The state before. |
toState |
PlayerState |
The state now. |
Related
Section titled “Related”playerStateChanged: the event