This type defines the Client main entry point for the Events feature.
More...
|
| EventsService (IPlatformService platform, IBeamableRequester requester, IDependencyProvider provider) |
|
async Promise< TryEventClaimResponse > | TryClaim (string eventId) |
| Try to claim the earned rewards for an event. The claim could fail due to a variety of reasons, but this method will safely return even if an error occured. In that event, the response's TryEventClaimResponse.isClaimed will be false to let you know the claim didn't happen. If you want to see the exact failure of the claim, use Claim instead. More...
|
|
override async Promise< EventClaimResponse > | Claim (string eventId) |
| Claim the earned rewards for an event. This method will an exception if the player has never submitted a score to the event. For a safer Claim method, use TryClaim More...
|
|
override Promise< EventsGetResponse > | GetCurrent (string scope="") |
|
virtual Promise< Unit > | SetScore (string eventId, double score, bool incremental=false, IDictionary< string, object > stats=null) |
| Submit a score for the current player. Note that this is only allowed if the event has the write_self permission. 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...
|
|
This type defines the Client main entry point for the Events feature.
Related Links
◆ Claim()
Claim the earned rewards for an event. This method will an exception if the player has never submitted a score to the event. For a safer Claim method, use TryClaim
- Parameters
-
eventId | The runtime id of the event you'd like to claim |
- Returns
- A promise representing the rewards the player earned
- Exceptions
-
Reimplemented from Beamable.Common.Api.Events.AbsEventsApi.
◆ GetCurrent()
◆ TryClaim()
Try to claim the earned rewards for an event. The claim could fail due to a variety of reasons, but this method will safely return even if an error occured. In that event, the response's TryEventClaimResponse.isClaimed will be false to let you know the claim didn't happen. If you want to see the exact failure of the claim, use Claim instead.
- Parameters
-
eventId | The runtime id of the event you'd like to claim |
- Returns
- A TryEventClaimResponse containing the claim response, and a boolean flag to let you know if the claim was successful.
The documentation for this class was generated from the following file:
- com.beamable/Runtime/Core/Platform/SDK/Events/EventsService.cs