HIVE SDK for Unreal Engine

Classes | Functions
FHiveProviderGoogle

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

Classes

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

Functions

static void FHiveProviderGoogle::AchievementsReveal (const FString &AchievementId, const FHiveProviderGoogleOnAchievementsDelegate &Delegate)
 It show hidden achievements. More...
 
static void FHiveProviderGoogle::AchievementsUnlock (const FString &AchievementId, const FHiveProviderGoogleOnAchievementsDelegate &Delegate)
 It achieve achievements. More...
 
static void FHiveProviderGoogle::AchievementsIncrement (const FString &AchievementId, int32 Value, const FHiveProviderGoogleOnAchievementsDelegate &Delegate)
 It increases achievement figures. More...
 
static void FHiveProviderGoogle::ShowAchievements (const FHiveProviderGoogleOnAchievementsDelegate &Delegate)
 It shows the Google achievement UI. More...
 
static void FHiveProviderGoogle::LeaderboardsSubmitScore (const FString &LeaderboardId, int64 Score, const FHiveProviderGoogleOnLeaderboardsDelegate &Delegate)
 It update the leaderboard score. More...
 
static void FHiveProviderGoogle::ShowLeaderboard (const FHiveProviderGoogleOnLeaderboardsDelegate &Delegate)
 It shows Google Leaderboard UI. More...
 
static void FHiveProviderGoogle::GetGooglePlayerId (const FHiveProviderGoogleOnGooglePlayerIdDelegate &Delegate)
 It get Google PlayerId and authCode. 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.

Function Documentation

◆ AchievementsIncrement()

static void FHiveProviderGoogle::AchievementsIncrement ( const FString &  AchievementId,
int32  Value,
const FHiveProviderGoogleOnAchievementsDelegate &  Delegate 
)
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
AchievementIdincremental AchievementId
Valuevalue
DelegateFHiveProviderGoogleOnAchievementsDelegate

◆ AchievementsReveal()

static void FHiveProviderGoogle::AchievementsReveal ( const FString &  AchievementId,
const FHiveProviderGoogleOnAchievementsDelegate &  Delegate 
)
static

It show hidden achievements.


Achievements are only revealed at 0%, not achieved.

Parameters
AchievementIdachievementId to reveal
DelegateFHiveProviderGoogleOnAchievementsDelegate

◆ AchievementsUnlock()

static void FHiveProviderGoogle::AchievementsUnlock ( const FString &  AchievementId,
const FHiveProviderGoogleOnAchievementsDelegate &  Delegate 
)
static

It achieve achievements.


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

Parameters
AchievementIdachievementId to achieve
DelegateFHiveProviderGoogleOnAchievementsDelegate

◆ GetGooglePlayerId()

static void FHiveProviderGoogle::GetGooglePlayerId ( const FHiveProviderGoogleOnGooglePlayerIdDelegate &  Delegate)
static

It get Google PlayerId and authCode.

Parameters
listeneronGooglePlayerIdResult

◆ LeaderboardsSubmitScore()

static void FHiveProviderGoogle::LeaderboardsSubmitScore ( const FString &  LeaderboardId,
int64  Score,
const FHiveProviderGoogleOnLeaderboardsDelegate &  Delegate 
)
static

It update the leaderboard score.


The score corresponding to the leaderboardId is updated with the score value.

Parameters
LeaderboardIdleaderboardId
Scorescore
DelegateFHiveProviderGoogleOnLeaderboardsDelegate

◆ ShowAchievements()

static void FHiveProviderGoogle::ShowAchievements ( const FHiveProviderGoogleOnAchievementsDelegate &  Delegate)
static

It shows the Google achievement UI.


Parameters
DelegateFHiveProviderGoogleOnAchievementsDelegate

◆ ShowLeaderboard()

static void FHiveProviderGoogle::ShowLeaderboard ( const FHiveProviderGoogleOnLeaderboardsDelegate &  Delegate)
static

It shows Google Leaderboard UI.

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