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

Public Member Functions

IEnumerator< T > GetEnumerator ()
 
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...
 

Protected Member Functions

void SetData (List< T > nextData)
 
- Protected Member Functions inherited from Beamable.Common.Player.AbsRefreshableObservable
abstract Promise PerformRefresh ()
 
- Protected Member Functions inherited from Beamable.Common.Player.DefaultObservable
void TriggerUpdate ()
 

Properties

int Count [get]
 
this[int index] [get]
 
bool IsInitialized [getprotected set]
 
- Properties inherited from Beamable.Common.Player.AbsRefreshableObservable
bool IsLoading [get]
 Represents if the object is between OnLoadingStarted and OnLoadingFinished events.
 
- Properties inherited from Beamable.Common.Player.IObservableReadonlyList< T >
this[int index] [get]
 
- Properties inherited from Beamable.Common.Player.IGetProtectedDataList< T >
List< T > Data [get]
 

Events

Action< List< T > > OnDataUpdated
 An event that happens right after IObservable.OnUpdated, but this one contains the list of internal data.
 
Action< IEnumerable< T > > OnElementsAdded
 An event that happens when new items are added to the list from a AbsRefreshableObservable.Refresh call. This event happens after the IObservable.OnUpdated event
 
Action< IEnumerable< T > > OnElementRemoved
 An event that happens when new items are removed to the list from a AbsRefreshableObservable.Refresh call. This event happens after the IObservable.OnUpdated event
 
- 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.AbsObservableReadonlyList< 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.


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