You can use achievements and leaderboards within Google Play Games.
More...
You can use achievements and leaderboards within Google Play Games.
If it is not connected to Google Play Games, it will try to connect automatically when calling API.
It can be used independently regardless of AuthV4 Connect.
Even if automatic connection is made, it is not connected with the current playerId.
Created by hife on 2017. 6. 7.
- Author
- hife
- Since
- 4.3.0
§ achievementsIncrement() [1/2]
static void com.hive.ProviderGoogle.achievementsIncrement |
( |
String |
incrementalAchievementId, |
|
|
int |
value |
|
) |
| |
|
static |
It increases achievement figures.
Achievement figures is added as much as value set by the API call, not by setting.
If the total sum is Max, the achievement is automatically accomplished.
- Parameters
-
incrementalAchievementId | incrementalAchievementId |
value | value |
§ achievementsIncrement() [2/2]
static void com.hive.ProviderGoogle.achievementsIncrement |
( |
String |
incrementalAchievementId, |
|
|
int |
value, |
|
|
final GoogleAchievementsListener |
listener |
|
) |
| |
|
static |
It increases achievement figures.
Achievement figures is added as much as value set by the API call, not by setting.
If the total sum is Max, the achievement is automatically accomplished.
- Parameters
-
incrementalAchievementId | incrementalAchievementId |
value | value |
listener | GoogleAchievementsListener |
§ achievementsReveal() [1/2]
static void com.hive.ProviderGoogle.achievementsReveal |
( |
final String |
achievementId | ) |
|
|
static |
It show hidden achievements.
Achievements are only revealed at 0%, not achieved.
- Parameters
-
achievementId | achievementId to reveal |
§ achievementsReveal() [2/2]
static void com.hive.ProviderGoogle.achievementsReveal |
( |
final String |
achievementId, |
|
|
final GoogleAchievementsListener |
listener |
|
) |
| |
|
static |
It show hidden achievements.
Achievements are only revealed at 0%, not achieved.
- Parameters
-
achievementId | achievementId to reveal |
listener | GoogleAchievementsListener |
§ achievementsUnlock() [1/2]
static void com.hive.ProviderGoogle.achievementsUnlock |
( |
String |
achievementId | ) |
|
|
static |
It achieve achievements.
Whether hidden or open, achievement is achieved at 100%.
- Parameters
-
achievementId | achievementId to achieve |
§ achievementsUnlock() [2/2]
static void com.hive.ProviderGoogle.achievementsUnlock |
( |
String |
achievementId, |
|
|
final GoogleAchievementsListener |
listener |
|
) |
| |
|
static |
It achieve achievements.
Whether hidden or open, achievement is achieved at 100%.
- Parameters
-
achievementId | achievementId to achieve |
listener | GoogleAchievementsListener |
§ leaderboardsSubmitScore() [1/2]
static void com.hive.ProviderGoogle.leaderboardsSubmitScore |
( |
String |
leaderboardId, |
|
|
long |
score |
|
) |
| |
|
static |
It update the leaderboard score.
The score corresponding to the leaderboardId is updated with the score value.
- Parameters
-
leaderboardId | leaderboardId |
score | score |
§ leaderboardsSubmitScore() [2/2]
static void com.hive.ProviderGoogle.leaderboardsSubmitScore |
( |
String |
leaderboardId, |
|
|
long |
score, |
|
|
final GoogleLeaderboardsListener |
listener |
|
) |
| |
|
static |
It update the leaderboard score.
The score corresponding to the leaderboardId is updated with the score value.
- Parameters
-
leaderboardId | leaderboardId |
score | score |
listener | GoogleLeaderboardsListener |
§ showAchievements()
static void com.hive.ProviderGoogle.showAchievements |
( |
GoogleAchievementsListener |
listener | ) |
|
|
static |
It shows the Google achievement UI.
- Parameters
-
listener | GoogleAchievementsListener |
§ showLeaderboards()
static void com.hive.ProviderGoogle.showLeaderboards |
( |
GoogleLeaderboardsListener |
listener | ) |
|
|
static |
It shows Google Leaderboard UI.
- Parameters
-
listener | GoogleLeaderboardsListener |