HIVE SDK for Unity3D

Classes | Functions
ProviderGoogle

Classes

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

Functions

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

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 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 hive.ProviderGoogle.achievementsIncrement ( String incrementalAchievementId,
int value,
onAchievementsResult 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 hive.ProviderGoogle.achievementsReveal ( String achievementId)
static

It show hidden achievements.


Achievements are only revealed at 0%, not achieved.

Parameters
achievementIdachievementId to reveal

◆ achievementsReveal() [2/2]

static void hive.ProviderGoogle.achievementsReveal ( String achievementId,
onAchievementsResult listener )
static

It show hidden achievements.


Achievements are only revealed at 0%, not achieved.

Parameters
achievementIdachievementId to reveal
listenerGoogleAchievementsListener

◆ achievementsUnlock() [1/2]

static void 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 hive.ProviderGoogle.achievementsUnlock ( String achievementId,
onAchievementsResult listener )
static

It achieve achievements.


Whether hidden or open, achievement is achieved at 100%.

Parameters
achievementIdachievementId to achieve
listenerGoogleAchievementsListener

◆ leaderboardsSubmitScore() [1/2]

static void 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 hive.ProviderGoogle.leaderboardsSubmitScore ( String leaderboardId,
long score,
onLeaderboardsResult 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 hive.ProviderGoogle.showAchievements ( onAchievementsResult listener)
static

It shows the Google achievement UI.


Parameters
listenerGoogleAchievementsListener

◆ showLeaderboards()

static void hive.ProviderGoogle.showLeaderboards ( onLeaderboardsResult listener)
static

It shows Google Leaderboard UI.

Parameters
listenerGoogleLeaderboardsListener
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy