Beamable SDK
Public Member Functions | Static Public Member Functions | Protected Member Functions | Properties | Events | List of all members
Beamable.Common.Player.Observable< T > Class Template Reference
Inheritance diagram for Beamable.Common.Player.Observable< T >:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Common.Player.Observable< T >:
Collaboration graph
[legend]

Public Member Functions

 Observable (T data)
 
void BindTo (Observable< T > other)
 
override string ToString ()
 
override int GetBroadcastChecksum ()
 The broadcast checksum is a concept for change-detection. More...
 
- Public Member Functions inherited from Beamable.Common.Player.AbsRefreshableObservable
async Promise Refresh ()
 Forces a check of the data to make sure its up to date.If a refresh is already running, then this resulting Promise will represent the existing refresh call. This means you can't have multiple refreshes happening at once. More...
 

Static Public Member Functions

static implicit operator T (Observable< T > observable)
 

Protected Member Functions

override Promise PerformRefresh ()
 
- Protected Member Functions inherited from Beamable.Common.Player.DefaultObservable
void TriggerUpdate ()
 

Properties

bool IsAssigned [get]
 
bool IsNullOrUnassigned [get]
 
virtual T Value [getset]
 
- Properties inherited from Beamable.Common.Player.AbsRefreshableObservable
bool IsLoading [get]
 Represents if the object is between OnLoadingStarted and OnLoadingFinished events.
 

Events

Action< T > OnDataUpdated
 
- Events inherited from Beamable.Common.Player.AbsRefreshableObservable
Action OnLoadingStarted
 An event that happens when the Refresh method starts. This event will always be accompanied by a OnLoadingFinished event. More...
 
Action OnLoadingFinished
 An event that happens after the Refresh method finishes. This event will always be after a OnLoadingStarted event. More...
 
- Events inherited from Beamable.Common.Player.DefaultObservable
Action OnUpdated
 A "change" only happens when the value of the GetBroadcastChecksum changes.
 
- Events inherited from Beamable.Common.Player.IObservable
Action OnUpdated
 An event that happens whenever the object has changed.
 

Member Function Documentation

◆ GetBroadcastChecksum()

override int Beamable.Common.Player.Observable< T >.GetBroadcastChecksum ( )
inlinevirtual

The broadcast checksum is a concept for change-detection.

An observable may have a complex data structure, and detecting changes can be very context specific. This method provides a way to compute some "hash" or "checksum" of the data. The "same" internal values should always produce the same output integer.

By default, the broadcast checksum will use the object's GetHashCode() implementation.

Returns
an checksum of the object state

Reimplemented from Beamable.Common.Player.DefaultObservable.

◆ PerformRefresh()

override Promise Beamable.Common.Player.Observable< T >.PerformRefresh ( )
inlineprotectedvirtual

The documentation for this class was generated from the following file: