This type defines the subscribability of services.
More...
|
PlatformSubscription< Data > | Subscribe (Action< Data > callback) |
| Subscribe to the callback to receive fresh data when available. More...
|
|
virtual PlatformSubscription< Data > | Subscribe (string scope, Action< Data > callback) |
| Subscribe to the callback to receive fresh data when available. More...
|
|
Promise< Unit > | Refresh () |
| Manually refresh the available data. More...
|
|
Data | GetLatest () |
|
Data | GetLatest (string scope) |
|
async Promise< ScopedRsp > | Fetch (string scope="") |
| Send a request and get the latest state of the subscription. This method will not trigger existing subscriptions More...
|
|
Promise< Data > | GetCurrent (string scope="") |
| Manually fetch the available data. If the server hasn't delivered a new update, this method will not return the absolute latest data unless you pass forceRefresh as true. 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...
|
|
Promise< TData > | GetCurrent (string scope="") |
| Manually fetch the available data. If the server hasn't delivered a new update, this method will not return the absolute latest data unless you pass forceRefresh as true. More...
|
|
TData | GetLatest (string scope="") |
| Manually read the currently cached data. This will not trigger any network request. More...
|
|
|
| PlatformSubscribable (IDependencyProvider provider, string service, BeamableGetApiResource< ScopedRsp > getter=null) |
|
virtual void | Reset () |
|
virtual Promise | OnRefreshScope (string scope) |
|
Promise< Unit > | Refresh (string scope) |
| Manually refresh the available data. More...
|
|
virtual Promise< ScopedRsp > | ExecuteRequest (IBeamableRequester requester, string url) |
|
virtual string | CreateRefreshUrl (string scope) |
|
virtual void | OnRefresh (ScopedRsp data) |
|
virtual Promise | OnRefresh (ScopedRsp data, string[] scopes) |
|
void | ScheduleRefresh (long seconds, string scope) |
|
void | Unsubscribe (string scope, PlatformSubscription< Data > subscription) |
|
|
bool | UsesHierarchyScopes [getprotected set] |
|
This type defines the subscribability of services.
Related Links
◆ Fetch()
Send a request and get the latest state of the subscription. This method will not trigger existing subscriptions
- Parameters
-
- Returns
◆ GetCurrent()
Manually fetch the available data. If the server hasn't delivered a new update, this method will not return the absolute latest data unless you pass forceRefresh as true.
- Parameters
-
- Returns
◆ GetLatest()
◆ Notify() [1/2]
Manually notify observing scopes regarding the available data.
- Parameters
-
◆ Notify() [2/2]
Manually notify observing scopes regarding the available data.
- Parameters
-
◆ Refresh() [1/2]
Manually refresh the available data.
- Returns
◆ Refresh() [2/2]
Manually refresh the available data.
- Parameters
-
- Returns
◆ Subscribe() [1/2]
Subscribe to the callback to receive fresh data when available.
- Parameters
-
- Returns
◆ Subscribe() [2/2]
Subscribe to the callback to receive fresh data when available.
- Parameters
-
- Returns
The documentation for this class was generated from the following file:
- com.beamable/Runtime/Core/Platform/SDK/PlatformSubscribable.cs