Beamable SDK
|
This class defines the subscribability of services. More...
Public Member Functions | |
PlatformSubscription< Data > | Subscribe (Action< Data > callback) |
Subscribe to the callback to receive fresh data when available. More... | |
PlatformSubscription< Data > | Subscribe (string scope, Action< Data > callback) |
Subscribe to the callback to receive fresh data when available. More... | |
Data | GetLatest () |
Manually fetch the available data. More... | |
Data | GetLatest (string scope) |
Manually fetch the available data. More... | |
Promise< Data > | GetCurrent (string scope="") |
Manually fetch the available data. More... | |
void | Notify (Data data) |
Manually notify observing scopes regarding the available data. More... | |
void | Notify (string scope, Data data) |
Manually notify observing scopes regarding the available data. More... | |
Public Member Functions inherited from Beamable.Common.Api.ISupportsGet< Data > | |
Promise< TData > | GetCurrent (string scope="") |
Public Member Functions inherited from Beamable.Common.Api.ISupportGetLatest< Data > | |
TData | GetLatest (string scope="") |
Protected Member Functions | |
PlatformSubscribable (IPlatformService platform, IBeamableRequester requester, string service, BeamableGetApiResource< ScopedRsp > getter=null) | |
virtual void | Reset () |
Promise< Unit > | Refresh () |
Manually refresh the available data. More... | |
Promise< Unit > | Refresh (string scope) |
Manually refresh the available data. More... | |
virtual Promise< ScopedRsp > | ExecuteRequest (IBeamableRequester requester, string url) |
virtual string | CreateRefreshUrl (string scope) |
abstract void | OnRefresh (ScopedRsp data) |
void | ScheduleRefresh (long seconds, string scope) |
void | Unsubscribe (string scope, PlatformSubscription< Data > subscription) |
Protected Attributes | |
IPlatformService | platform |
IBeamableRequester | requester |
BeamableGetApiResource< ScopedRsp > | getter |
Properties | |
bool | UsesHierarchyScopes [get, protected set] |
This class defines the subscribability of services.
|
inline |
Manually fetch the available data.
scope |
|
inline |
Manually fetch the available data.
|
inline |
Manually fetch the available data.
scope |
|
inline |
Manually notify observing scopes regarding the available data.
data |
|
inline |
Manually notify observing scopes regarding the available data.
scope | |
data |
|
inlineprotected |
Manually refresh the available data.
|
inlineprotected |
Manually refresh the available data.
scope |
|
inline |
Subscribe to the callback to receive fresh data when available.
callback |
|
inline |
Subscribe to the callback to receive fresh data when available.
scope | |
callback |