目录

AppPlayerInfo

Class Info

public class AppPlayerInfo extends Object

Saves the in-game information for the current player, such as the level, role, and server region, for you to use when calling the savePlayerInfo method of PlayersClient.

Public Method Summary

Qualifier and Type

Method Name and Description

String

getRank()

Obtains the level of a player in a game.

String

getRole()

Obtains the role of a player in a game.

String

getArea()

Obtains the server region of a player in a game.

String

getSociaty()

Obtains the guild information of a player in a game.

String

getPlayerId()

Obtains the ID of a player in a game.

String

getOpenId()

Obtains the OpenID of a player in a game. The OpenID uniquely identifies a HUAWEI ID in an app.

Public Methods

[h2]getRank

Method

public String getRank()

Obtains the level of a player in a game.

Returns

Type

Description

String

Level of a player in a game.

[h2]getRole

Method

public String getRole()

Obtains the role of a player in a game.

Returns

Type

Description

String

Role of a player in a game.

[h2]getArea

Method

public String getArea()

Obtains the server region of a player in a game.

Returns

Type

Description

String

Server region of a player in a game.

[h2]getSociaty

Method

public String getSociaty()

Obtains the guild information of a player in a game.

Returns

Type

Description

String

Guild information of a player in a game.

[h2]getPlayerId

Method

public String getPlayerId()

Obtains the ID of a player in a game.

Returns

Type

Description

String

Player ID.

[h2]getOpenId

Method

public String getOpenId()

Obtains the OpenID of a player in a game.

Returns

Type

Description

String

OpenID of a player in a game. A user has different OpenIDs across apps. If you use an OpenID to identify a user, the same HUAWEI ID will be identified as different users in your different apps.