Beamable SDK
|
This type defines part of the Beamable ContentObject system. More...
Public Member Functions | |
ManifestSubscription (IDependencyProvider provider, string manifestID) | |
override PlatformSubscription< ClientManifest > | Subscribe (string scope, Action< ClientManifest > callback) |
This method is obsolete. The scope field won't do anything, and there is no support for subscribing to individual content type updates. You should simply use the variant of this method that doesn't accept the scope field. PlatformSubscribable<ScopedRsp,Data>.Subscribe() More... | |
bool | TryGetContentId (string contentId, out ClientContentInfo clientInfo) |
Try to retrieve a ClientContentInfo from the current manifest, by content id. More... | |
Promise< ClientManifest > | GetManifest () |
Get the latest ClientManifest that was received by the game client. This method will not start a network request. Instead, it will reference the most recent network request that is fetching the manifest. More... | |
Promise< ClientManifest > | GetManifest (ContentQuery query) |
Promise< ClientManifest > | GetManifest (string filter) |
Public Member Functions inherited from Beamable.Api.PlatformSubscribable< ClientManifest, ClientManifest > | |
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... | |
Public Attributes | |
Dictionary< Type, ContentCache > | _contentCaches = new Dictionary<Type, ContentCache>() |
This will be removed in a future release. Please do not use. | |
Protected Member Functions | |
override string | CreateRefreshUrl (string scope) |
override Promise< ClientManifest > | ExecuteRequest (IBeamableRequester requester, string url) |
override void | OnRefresh (ClientManifest data) |
Protected Member Functions inherited from Beamable.Api.PlatformSubscribable< ClientManifest, ClientManifest > | |
PlatformSubscribable (IDependencyProvider provider, string service, BeamableGetApiResource< ScopedRsp > getter=null) | |
virtual void | Reset () |
Promise< Unit > | Refresh (string scope) |
Manually refresh the available data. More... | |
virtual Promise | OnRefreshScope (string scope) |
virtual Promise< ScopedRsp > | ExecuteRequest (IBeamableRequester requester, string url) |
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) |
Properties | |
string | ManifestID = "global" [get] |
Every content manifest has an ID. Usually, a game will only have a single content manifest called "global", but it is possible to add more. | |
Properties inherited from Beamable.Api.PlatformSubscribable< ClientManifest, ClientManifest > | |
bool | UsesHierarchyScopes [getprotected set] |
Additional Inherited Members | |
Protected Attributes inherited from Beamable.Api.PlatformSubscribable< ClientManifest, ClientManifest > | |
IBeamableRequester | requester |
IConnectivityService | connectivityService |
INotificationService | notificationService |
CoroutineService | coroutineService |
IUserContext | userContext |
BeamableGetApiResource< ScopedRsp > | getter |
readonly string | service |
This type defines part of the Beamable ContentObject system.
|
inlineprotectedvirtual |
Reimplemented from Beamable.Api.PlatformSubscribable< ClientManifest, ClientManifest >.
|
inline |
Get the latest ClientManifest that was received by the game client. This method will not start a network request. Instead, it will reference the most recent network request that is fetching the manifest.
|
inline |
query | A ContentQuery that will filter the resulting ClientManifest.entries field. |
|
inline |
filter | A ContentQuery in string form that will filter the resulting ClientManifest.entries field |
|
inline |
This method is obsolete. The scope field won't do anything, and there is no support for subscribing to individual content type updates. You should simply use the variant of this method that doesn't accept the scope field. PlatformSubscribable<ScopedRsp,Data>.Subscribe()
scope | |
callback |
|
inline |
Try to retrieve a ClientContentInfo from the current manifest, by content id.
contentId | A content ID |
clientInfo | An out parameter for a ClientContentInfo that will be assigned the content associated with the contentId, or left null if the content ID isn't in the current manifest. |