HIVE SDK for Android

Classes | Functions
ProviderGoogle

You can use achievements and leaderboards within Google Play Games. More...

Classes

class  com.hive.ProviderGoogle
 You can use achievements and leaderboards within Google Play Games. More...
 

Functions

static void com.hive.ProviderGoogle.achievementsReveal (final String achievementId)
 It show hidden achievements. More...
 
static void com.hive.ProviderGoogle.achievementsReveal (final String achievementId, final GoogleAchievementsListener listener)
 It show hidden achievements. More...
 
static void com.hive.ProviderGoogle.achievementsUnlock (String achievementId)
 It achieve achievements. More...
 
static void com.hive.ProviderGoogle.achievementsUnlock (String achievementId, final GoogleAchievementsListener listener)
 It achieve achievements. More...
 
static void com.hive.ProviderGoogle.achievementsIncrement (String incrementalAchievementId, int value)
 It increases achievement figures. More...
 
static void com.hive.ProviderGoogle.achievementsIncrement (String incrementalAchievementId, int value, final GoogleAchievementsListener listener)
 It increases achievement figures. More...
 
static void com.hive.ProviderGoogle.showAchievements (GoogleAchievementsListener listener)
 It shows the Google achievement UI. More...
 
static void com.hive.ProviderGoogle.leaderboardsSubmitScore (String leaderboardId, long score)
 It update the leaderboard score. More...
 
static void com.hive.ProviderGoogle.leaderboardsSubmitScore (String leaderboardId, long score, final GoogleLeaderboardsListener listener)
 It update the leaderboard score. More...
 
static void com.hive.ProviderGoogle.showLeaderboards (GoogleLeaderboardsListener listener)
 It shows Google Leaderboard UI. More...
 

Detailed Description

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

Function Documentation

§ 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
incrementalAchievementIdincrementalAchievementId
valuevalue

§ 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
incrementalAchievementIdincrementalAchievementId
valuevalue
listenerGoogleAchievementsListener

§ 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
achievementIdachievementId 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
achievementIdachievementId to reveal
listenerGoogleAchievementsListener

§ 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
achievementIdachievementId 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
achievementIdachievementId to achieve
listenerGoogleAchievementsListener

§ 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
leaderboardIdleaderboardId
scorescore

§ 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
leaderboardIdleaderboardId
scorescore
listenerGoogleLeaderboardsListener

§ showAchievements()

static void com.hive.ProviderGoogle.showAchievements ( GoogleAchievementsListener  listener)
static

It shows the Google achievement UI.


Parameters
listenerGoogleAchievementsListener

§ showLeaderboards()

static void com.hive.ProviderGoogle.showLeaderboards ( GoogleLeaderboardsListener  listener)
static

It shows Google Leaderboard UI.

Parameters
listenerGoogleLeaderboardsListener
Copyright © GAMEVIL COM2US PLATFORM Inc. All Right Reserved. Terms of Use Privacy Policy