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. |
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 | Obtains the guild information of a player in a game. |
String | Obtains the ID of a player in a game. |
String | Obtains the OpenID of a player in a game. The OpenID uniquely identifies a HUAWEI ID in an app. |
Method |
|---|
public String getRank() Obtains the level of a player in a game. |
Returns
Type | Description |
|---|---|
String | Level of a player in a game. |
Method |
|---|
public String getRole() Obtains the role of a player in a game. |
Returns
Type | Description |
|---|---|
String | Role of a player in a game. |
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. |
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. |
Method |
|---|
public String getPlayerId() Obtains the ID of a player in a game. |
Returns
Type | Description |
|---|---|
String | Player ID. |
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. |