Class: PlayerDataChangedEvent

  • PlayerDataChangedEvent is a class for events indicating changes in player data, providing the field that changed and its new value.

  • The constructor requires the event type, the changed field name (as a string), and the new value of the field.

  • The event object has properties to access the changed field name, the event type (which is non-null), and the new value of the field.

Constructor

PlayerDataChangedEvent

new PlayerDataChangedEvent(type, field, value)

Parameter

type

cast.framework.ui.PlayerDataEventType

Event type.

Value must not be null.

field

string

The changed field name.

value

any type

The new field value.

Properties

field

string

The field name that was changed.

type

non-null cast.framework.ui.PlayerDataEventType

value

any type

The new field value.