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

Public Member Functions

IEnumerator< KeyValuePair< string, TValue > > GetEnumerator ()
 
bool ContainsKey (string key)
 
bool TryGetValue (string key, out TValue value)
 
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 (TDict 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]
 
TValue this[string key] [get]
 
IEnumerable< string > Keys [get]
 
IEnumerable< TValue > Values [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.
 

Events

Action< SerializableDictionaryStringToSomething< TValue > > OnDataUpdated
 An event that happens right after IObservable.OnUpdated, but this one contains the dictionary of internal data.
 
- 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.AbsObservableReadonlyDictionary< TValue, TDict >.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: