This type defines the Client main entry point for the Commerce feature.
More...
|
| CommerceService (IDependencyProvider provider, IBeamableRequester requester) |
|
Promise< Unit > | OnPurchase (string storeSymbol, string listingSymbol) |
| This method will be removed in a future version of Beamable. Please do not use. More...
|
|
Promise< EmptyResponse > | Purchase (string storeSymbol, string listingSymbol) |
| Purchase a listing from a store. After the purchase completes, the player will be granted whatever the listing stated. More...
|
|
void | ForceRefresh (string storeSymbol) |
| This will be removed in a future version of Beamable. Please do not use. 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...
|
|
This type defines the Client main entry point for the Commerce feature.
Related Links
◆ ForceRefresh()
void Beamable.Api.Commerce.CommerceService.ForceRefresh |
( |
string |
storeSymbol | ) |
|
|
inline |
This will be removed in a future version of Beamable. Please do not use.
- Parameters
-
◆ OnPurchase()
Promise< Unit > Beamable.Api.Commerce.CommerceService.OnPurchase |
( |
string |
storeSymbol, |
|
|
string |
listingSymbol |
|
) |
| |
|
inline |
This method will be removed in a future version of Beamable. Please do not use.
- Parameters
-
storeSymbol | |
listingSymbol | |
- Returns
◆ Purchase()
Promise< EmptyResponse > Beamable.Api.Commerce.CommerceService.Purchase |
( |
string |
storeSymbol, |
|
|
string |
listingSymbol |
|
) |
| |
|
inline |
Purchase a listing from a store. After the purchase completes, the player will be granted whatever the listing stated.
- Parameters
-
storeSymbol | The content ID of the store the listing is present in. |
listingSymbol | The content ID of the listing to buy |
- Returns
- A Promise<T> representing the network call
The documentation for this class was generated from the following file:
- com.beamable/Runtime/Core/Platform/SDK/Commerce/CommerceService.cs