Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
HUAWEI HMS Core
Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.
The GamePlayerStatistics class returns the game statistics of a player in the statistical period of the past 12 months. An instance of the GamePlayerStatistics type is returned when the getGamePlayerStatistics method of GamePlayerStatisticsClient is called.
Return | Method |
float | Obtains the average session duration of a player in the statistical period of the past 12 months, in minutes. |
int | Obtains the number of days elapsed since a player last played. |
int | Obtains the number of in-app purchases for a player in the statistical period of the past 12 months. |
int | Obtains the number of sessions for a player in the statistical period of the past 12 months. |
int | getTotalPurchasesAmountRange() Obtains the total spending rank of a player in the statistical period of the past 12 months. |
Obtains the average session duration of a player in the statistical period of the past 12 months, in minutes.
Return Values
Type | Description |
float | Average session duration of a player, in minutes. |
Obtains the number of days elapsed since a player last played in the statistical period of the past 12 months.
Return Values
Type | Description |
int | Number of days elapsed since a player last played. |
Obtains the number of in-app purchases for a player in the statistical period of the past 12 months.
Return Values
Type | Description |
int | Number of in-app purchases for a player. |
Obtains the number of sessions for a player in the statistical period of the past 12 months.
Return Values
Type | Description |
int | Number of sessions for a player. |
Obtains the total spending amount rank of a player in the statistical period of the past 12 months.
Return Values
Type | Description |
int | Spending rank of a player.
|
Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Quick start
Helps you find desired resources with ease.