Beamable SDK
|
Public Member Functions | |
Promise< IContentObject > | GetContent (string contentId, string manifestID="") |
Get the content data for a requested content id. The content is stored on Beamable servers and cached on each player's device. This method will always get the latest version of the content. Each time there is a new version, this method will cause a network call. Once the version has been cached, this method will read from the cache. More... | |
Promise< IContentObject > | GetContent (string contentId, Type contentType, string manifestID="") |
Get the content data for a requested content id. The content is stored on Beamable servers and cached on each player's device. This method will always get the latest version of the content. Each time there is a new version, this method will cause a network call. Once the version has been cached, this method will read from the cache. More... | |
Promise< IContentObject > | GetContent (IContentRef reference, string manifestID="") |
Get the content data for a requested IContentRef. The content is stored on Beamable servers and cached on each player's device. This method will always get the latest version of the content. Each time there is a new version, this method will cause a network call. Once the version has been cached, this method will read from the cache. More... | |
Promise< TContent > | GetContent< TContent > (IContentRef reference, string manifestID="") |
Get the content data for a requested IContentRef. The content is stored on Beamable servers and cached on each player's device. This method will always get the latest version of the content. Each time there is a new version, this method will cause a network call. Once the version has been cached, this method will read from the cache. More... | |
Promise< TContent > | GetContent< TContent > (IContentRef< TContent > reference, string manifestID="") |
Get the content data for a requested IContentRef<TContent>. The content is stored on Beamable servers and cached on each player's device. This method will always get the latest version of the content. Each time there is a new version, this method will cause a network call. Once the version has been cached, this method will read from the cache. More... | |
Promise< ClientManifest > | GetManifestWithID (string manifestID="") |
A ClientManifest describes all the content available in a manifest for a realm. This method will always start a network request to get the manifest from Beamable. More... | |
Promise< ClientManifest > | GetManifest (string filter="", string manifestID="") |
A ClientManifest describes all the content available in a manifest for a realm. This method will always start a network request to get the manifest from Beamable. More... | |
Promise< ClientManifest > | GetManifest (ContentQuery query, string manifestID="") |
A ClientManifest describes all the content available in a manifest for a realm. This method will always start a network request to get the manifest from Beamable. More... | |
Public Member Functions inherited from Beamable.Common.Api.ISupportsGet< ClientManifest > | |
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... | |
Promise< IContentObject > Beamable.Common.Api.Content.IContentApi.GetContent | ( | IContentRef | reference, |
string | manifestID = "" |
||
) |
Get the content data for a requested IContentRef. The content is stored on Beamable servers and cached on each player's device. This method will always get the latest version of the content. Each time there is a new version, this method will cause a network call. Once the version has been cached, this method will read from the cache.
reference | A IContentRef that contains a fully qualified content id. |
manifestID | By default, use the "global" manifest. A realm can have multiple groupings of content, where each group has its own manifest. If you haven't published multiple manifests, you should not use this field. |
Implemented in Beamable.Content.ContentService.
Promise< IContentObject > Beamable.Common.Api.Content.IContentApi.GetContent | ( | string | contentId, |
string | manifestID = "" |
||
) |
Get the content data for a requested content id. The content is stored on Beamable servers and cached on each player's device. This method will always get the latest version of the content. Each time there is a new version, this method will cause a network call. Once the version has been cached, this method will read from the cache.
contentId | A content id should be a dot separated string, with at least 1 dot. The right-most clause represents the content's name, and everything else represents the content's type. |
manifestID | By default, use the "global" manifest. A realm can have multiple groupings of content, where each group has its own manifest. If you haven't published multiple manifests, you should not use this field. |
Implemented in Beamable.Content.ContentService.
Promise< IContentObject > Beamable.Common.Api.Content.IContentApi.GetContent | ( | string | contentId, |
Type | contentType, | ||
string | manifestID = "" |
||
) |
Get the content data for a requested content id. The content is stored on Beamable servers and cached on each player's device. This method will always get the latest version of the content. Each time there is a new version, this method will cause a network call. Once the version has been cached, this method will read from the cache.
contentId | A content id should be a dot separated string, with at least 1 dot. The right-most clause represents the content's name, and everything else represents the content's type. |
contentType | If you know the type of the content, you can pass it so that the resulting IContentObject will be castable to the given contentType |
manifestID | By default, use the "global" manifest. A realm can have multiple groupings of content, where each group has its own manifest. If you haven't published multiple manifests, you should not use this field. |
Implemented in Beamable.Content.ContentService.
Promise< TContent > Beamable.Common.Api.Content.IContentApi.GetContent< TContent > | ( | IContentRef | reference, |
string | manifestID = "" |
||
) |
Get the content data for a requested IContentRef. The content is stored on Beamable servers and cached on each player's device. This method will always get the latest version of the content. Each time there is a new version, this method will cause a network call. Once the version has been cached, this method will read from the cache.
reference | A IContentRef that contains a fully qualified content id. |
manifestID | By default, use the "global" manifest. A realm can have multiple groupings of content, where each group has its own manifest. If you haven't published multiple manifests, you should not use this field. |
TContent | The type of the content that the reference refers to. |
Implemented in Beamable.Content.ContentService.
TContent | : | ContentObject | |
TContent | : | new() |
Promise< TContent > Beamable.Common.Api.Content.IContentApi.GetContent< TContent > | ( | IContentRef< TContent > | reference, |
string | manifestID = "" |
||
) |
Get the content data for a requested IContentRef<TContent>. The content is stored on Beamable servers and cached on each player's device. This method will always get the latest version of the content. Each time there is a new version, this method will cause a network call. Once the version has been cached, this method will read from the cache.
reference | A IContentRef that contains a fully qualified content id. |
manifestID | By default, use the "global" manifest. A realm can have multiple groupings of content, where each group has its own manifest. If you haven't published multiple manifests, you should not use this field. |
TContent | The type of the content that the reference refers to. |
Implemented in Beamable.Content.ContentService.
TContent | : | ContentObject | |
TContent | : | new() |
Promise< ClientManifest > Beamable.Common.Api.Content.IContentApi.GetManifest | ( | ContentQuery | query, |
string | manifestID = "" |
||
) |
A ClientManifest describes all the content available in a manifest for a realm. This method will always start a network request to get the manifest from Beamable.
query | A ContentQuery that will be used to down filter the resulting ClientContentInfo entries in the ClientManifest |
manifestID | By default, use the "global" manifest. A realm can have multiple groupings of content, where each group has its own manifest. If you haven't published multiple manifests, you should not use this field. |
Implemented in Beamable.Content.ContentService.
Promise< ClientManifest > Beamable.Common.Api.Content.IContentApi.GetManifest | ( | string | filter = "" , |
string | manifestID = "" |
||
) |
A ClientManifest describes all the content available in a manifest for a realm. This method will always start a network request to get the manifest from Beamable.
filter | A string version of a ContentQuery that will be used to down filter the resulting ClientContentInfo entries in the ClientManifest |
manifestID | By default, use the "global" manifest. A realm can have multiple groupings of content, where each group has its own manifest. If you haven't published multiple manifests, you should not use this field. |
Implemented in Beamable.Content.ContentService.
Promise< ClientManifest > Beamable.Common.Api.Content.IContentApi.GetManifestWithID | ( | string | manifestID = "" | ) |
A ClientManifest describes all the content available in a manifest for a realm. This method will always start a network request to get the manifest from Beamable.
manifestID | By default, use the "global" manifest. A realm can have multiple groupings of content, where each group has its own manifest. If you haven't published multiple manifests, you should not use this field. |
Implemented in Beamable.Content.ContentService.