GooglePlayGames.
  Player stats.
Summary
See https://developers.google.com/games/services/android/stats
| Constructors and Destructors | |
|---|---|
| PlayerStats(int numberOfPurchases, float avgSessionLength, int daysSinceLastPlayed, int numberOfSessions, float sessPercentile, float spendPercentile, float spendProbability, float churnProbability, float highSpenderProbability, float totalSpendNext28Days) | |
| PlayerStats() | 
| Properties | |
|---|---|
| AvgSessionLength | floatThe length of the avg session in minutes.  | 
| ChurnProbability | floatThe approximate probability of the player not returning to play the game.  | 
| DaysSinceLastPlayed | intThe days since last played.  | 
| HighSpenderProbability | floatThe high spender probability of this player.  | 
| NumberOfPurchases | intThe number of in-app purchases.  | 
| NumberOfSessions | intThe number of sessions based on sign-ins.  | 
| SessPercentile | floatThe approximation of sessions percentile for the player.  | 
| SpendPercentile | floatThe approximate spend percentile of the player.  | 
| SpendProbability | floatThe approximate probability of the player choosing to spend in this game.  | 
| TotalSpendNext28Days | floatThe predicted total spend of this player over the next 28 days.  | 
| Valid | boolIf this PlayerStats object is valid (i.e.  | 
| Public functions | |
|---|---|
| HasAvgSessionLength() | boolDetermines whether this instance has AvgSessionLength.  | 
| HasChurnProbability() | boolDetermines whether this instance has ChurnProbability.  | 
| HasDaysSinceLastPlayed() | boolDetermines whether this instance has DaysSinceLastPlayed.  | 
| HasHighSpenderProbability() | boolDetermines whether this instance has HighSpenderProbability.  | 
| HasNumberOfPurchases() | boolDetermines whether this instance has NumberOfPurchases.  | 
| HasNumberOfSessions() | boolDetermines whether this instance has NumberOfSessions.  | 
| HasSessPercentile() | boolDetermines whether this instance has SessPercentile.  | 
| HasSpendPercentile() | boolDetermines whether this instance has SpendPercentile.  | 
| HasTotalSpendNext28Days() | boolDetermines whether this instance has TotalSpendNext28Days.  | 
Properties
AvgSessionLength
float AvgSessionLength
The length of the avg session in minutes.
ChurnProbability
float ChurnProbability
The approximate probability of the player not returning to play the game.
Higher values indicate that a player is less likely to return. A return value less than zero indicates this value is not available.
DaysSinceLastPlayed
int DaysSinceLastPlayed
The days since last played.
HighSpenderProbability
float HighSpenderProbability
The high spender probability of this player.
NumberOfPurchases
int NumberOfPurchases
The number of in-app purchases.
NumberOfSessions
int NumberOfSessions
The number of sessions based on sign-ins.
SessPercentile
float SessPercentile
The approximation of sessions percentile for the player.
This value is given as a decimal value between 0 and 1 (inclusive). It indicates how many sessions the current player has played in comparison to the rest of this game's player base. Higher numbers indicate that this player has played more sessions. A return value less than zero indicates this value is not available.
SpendPercentile
float SpendPercentile
The approximate spend percentile of the player.
This value is given as a decimal value between 0 and 1 (inclusive). It indicates how much the current player has spent in comparison to the rest of this game's player base. Higher numbers indicate that this player has spent more. A return value less than zero indicates this value is not available.
SpendProbability
float SpendProbability
The approximate probability of the player choosing to spend in this game.
This value is given as a decimal value between 0 and 1 (inclusive). Higher values indicate that a player is more likely to spend. A return value less than zero indicates this value is not available.
TotalSpendNext28Days
float TotalSpendNext28Days
The predicted total spend of this player over the next 28 days.
Valid
bool Valid
If this PlayerStats object is valid (i.e.
successfully retrieved from games services).
Note that a PlayerStats with all stats unset may still be valid.
Public functions
HasAvgSessionLength
bool HasAvgSessionLength()
Determines whether this instance has AvgSessionLength.
| Details | |
|---|---|
| Returns | trueif this instance has AvgSessionLength; otherwise,false. | 
HasChurnProbability
bool HasChurnProbability()
Determines whether this instance has ChurnProbability.
| Details | |
|---|---|
| Returns | trueif this instance has ChurnProbability; otherwise,false. | 
HasDaysSinceLastPlayed
bool HasDaysSinceLastPlayed()
Determines whether this instance has DaysSinceLastPlayed.
| Details | |
|---|---|
| Returns | trueif this instance has DaysSinceLastPlayed; otherwise,false. | 
HasHighSpenderProbability
bool HasHighSpenderProbability()
Determines whether this instance has HighSpenderProbability.
| Details | |
|---|---|
| Returns | trueif this instance has HighSpenderProbability; otherwise,false. | 
HasNumberOfPurchases
bool HasNumberOfPurchases()
Determines whether this instance has NumberOfPurchases.
| Details | |
|---|---|
| Returns | trueif this instance has NumberOfPurchases; otherwise,false. | 
HasNumberOfSessions
bool HasNumberOfSessions()
Determines whether this instance has NumberOfSessions.
| Details | |
|---|---|
| Returns | trueif this instance has NumberOfSessions; otherwise,false. | 
HasSessPercentile
bool HasSessPercentile()
Determines whether this instance has SessPercentile.
| Details | |
|---|---|
| Returns | trueif this instance has SessPercentile; otherwise,false. | 
HasSpendPercentile
bool HasSpendPercentile()
Determines whether this instance has SpendPercentile.
| Details | |
|---|---|
| Returns | trueif this instance has SpendPercentile; otherwise,false. | 
HasTotalSpendNext28Days
bool HasTotalSpendNext28Days()
Determines whether this instance has TotalSpendNext28Days.
| Details | |
|---|---|
| Returns | trueif this instance has TotalSpendNext28Days; otherwise,false. | 
PlayerStats
PlayerStats( int numberOfPurchases, float avgSessionLength, int daysSinceLastPlayed, int numberOfSessions, float sessPercentile, float spendPercentile, float spendProbability, float churnProbability, float highSpenderProbability, float totalSpendNext28Days )
PlayerStats
PlayerStats()
