Skip to main content

RealtimeModelEvent

RealtimeModelEvent

An enum that represents the type of event to subscribe to. Generally used with [RealtimeCallback]

Static Fields

OnWillWrite

public RealtimeModelEvent OnWillWrite

Dispatched before a serialization pass.

OnDidWrite

public RealtimeModelEvent OnDidWrite

Dispatched after a serialization pass.

OnWillRead

public RealtimeModelEvent OnWillRead

Dispatched before a deserialization pass.

OnDidRead

public RealtimeModelEvent OnDidRead

Dispatched after a deserialization pass.

OnDidReadProperties

public RealtimeModelEvent OnDidReadProperties

Dispatched after a model reads property changes from a remote update.

If no properties were changed by the update (meaning, it was redundant) this event is not dispatched.

OnDidReadModel

public RealtimeModelEvent OnDidReadModel

Dispatched after a model reads properties from a remote update.

Unlike OnDidReadProperties, this event is dispatched for redundant updates.

DynamicOnDidRead

public RealtimeModelEvent DynamicOnDidRead

Dispatched after a deserialization pass if the model called [Normal.Realtime.RealtimeModel.SubscribeToDynamicOnDidReadCallback(Normal.Realtime.Serialization.StreamContext@)](Normal.Realtime.RealtimeModel.SubscribeToDynamicOnDidReadCallback(Normal.Realtime.Serialization#streamcontext@)) during the pass.

Unlike the other OnDidRead variants, this variant adds zero overhead when the model isn't part of the deserialization pass.