Essential Kit
Loading...
Searching...
No Matches
IAchievement

Provides an interface to communicate with game server about local players progress towards completing achievement. More...

Public Member Functions

void ReportProgress (CompletionCallback callback)
 Reports the progress of this achievement.
 

Properties

string Id [get]
 An unique identifier used to identify the achievement across all the supported platforms. (read-only)
 
string PlatformId [get]
 A string used to identify the achievement in the current platform. (read-only)
 
double PercentageCompleted [get, set]
 The percentage describes how far the player has progressed on this achievement.
 
bool IsCompleted [get]
 The bool value indicates whether the current player has completed this achievement. (read-only)
 
DateTime LastReportedDate [get]
 The last time that progress on the achievement was successfully reported to game server. (read-only)
 

Detailed Description

By default, when an achievement is completed, a notification banner is displayed to the player. If your game wants to display its own interface, you can prevent it by setting ShowAchievementCompletionBanner property in Game Services Settings to NO.

Note
Your game must authenticate the local user before using any features.

Member Function Documentation

◆ ReportProgress()

void ReportProgress ( CompletionCallback callback)
Parameters
callbackCallback that will be called after operation is completed.

Referenced by GameServices.ReportAchievementProgress().