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. |
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. |
Task<Boolean> | Revokes the authorization to Game Service. |
Method |
---|
public Task<String> getAppId() Obtains the app ID of a game. |
Returns
Type | Description |
---|---|
Task<String> | App ID of a game. |
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. |
Method |
---|
public Task<Boolean> cancelGameService() Provides the function for users to revoke authorization to Game Service. |
Returns
Type | Description |
---|---|
Task<Boolean> | Whether the authorization is revoked successfully. The options are as follows:
|