目录

GamesClient

Interface Info

public interface GamesClient

Provides APIs related to basic game functions, such as obtaining the app ID and setting the position for displaying the game greeting pop-up on the screen.

Public Method Summary

Qualifier and Type

Method Name and Description

Task<String>

getAppId()

Obtains the app ID of a game.

Task<Void>

setPopupsPosition(int position)

Sets the position for displaying the game greeting and achievement unlocking pop-ups on the screen.

CAUTION:

Currently, this API does not support telematics devices.

Public Methods

[h2]getAppId

Method

public Task<String> getAppId()

Obtains the app ID of a game.

Returns

Type

Description

Task<String>

App ID of a game.

[h2]setPopupsPosition

Method

public Task<Void> setPopupsPosition(int position)

Sets the position for displaying the game greeting and achievement unlocking pop-ups on the screen. If this API is not called, the pop-ups will be displayed at the top of the screen by default.

Parameters

Name

Description

position

Position for displaying the game greeting and achievement unlocking pop-ups on the screen. Currently, only the 1 option is available, indicating that the pop-ups are displayed at the top of the screen.

Returns

Type

Description

Task<Void>

Calling result.