GooglePlayGames.BasicApi.PlayerStats
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
|
float
The length of the avg session in minutes.
|
ChurnProbability
|
float
The approximate probability of the player not returning to play the game.
|
DaysSinceLastPlayed
|
int
The days since last played.
|
HighSpenderProbability
|
float
The high spender probability of this player.
|
NumberOfPurchases
|
int
The number of in-app purchases.
|
NumberOfSessions
|
int
The number of sessions based on sign-ins.
|
SessPercentile
|
float
The approximation of sessions percentile for the player.
|
SpendPercentile
|
float
The approximate spend percentile of the player.
|
SpendProbability
|
float
The approximate probability of the player choosing to spend in this game.
|
TotalSpendNext28Days
|
float
The predicted total spend of this player over the next 28 days.
|
Valid
|
bool
If this PlayerStats object is valid (i.e.
|
Public functions |
|
|---|---|
HasAvgSessionLength()
|
bool
Determines whether this instance has AvgSessionLength.
|
HasChurnProbability()
|
bool
Determines whether this instance has ChurnProbability.
|
HasDaysSinceLastPlayed()
|
bool
Determines whether this instance has DaysSinceLastPlayed.
|
HasHighSpenderProbability()
|
bool
Determines whether this instance has HighSpenderProbability.
|
HasNumberOfPurchases()
|
bool
Determines whether this instance has NumberOfPurchases.
|
HasNumberOfSessions()
|
bool
Determines whether this instance has NumberOfSessions.
|
HasSessPercentile()
|
bool
Determines whether this instance has SessPercentile.
|
HasSpendPercentile()
|
bool
Determines whether this instance has SpendPercentile.
|
HasTotalSpendNext28Days()
|
bool
Determines whether this instance has TotalSpendNext28Days.
|
Properties
AvgSessionLength
floatAvgSessionLength
The length of the avg session in minutes.
ChurnProbability
floatChurnProbability
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
intDaysSinceLastPlayed
The days since last played.
HighSpenderProbability
floatHighSpenderProbability
The high spender probability of this player.
NumberOfPurchases
intNumberOfPurchases
The number of in-app purchases.
NumberOfSessions
intNumberOfSessions
The number of sessions based on sign-ins.
SessPercentile
floatSessPercentile
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
floatSpendPercentile
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
floatSpendProbability
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
floatTotalSpendNext28Days
The predicted total spend of this player over the next 28 days.
Valid
boolValid
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
boolHasAvgSessionLength()
Determines whether this instance has AvgSessionLength.
| Details | |
|---|---|
| Returns |
true if this instance has AvgSessionLength; otherwise, false. |
HasChurnProbability
boolHasChurnProbability()
Determines whether this instance has ChurnProbability.
| Details | |
|---|---|
| Returns |
true if this instance has ChurnProbability; otherwise, false. |
HasDaysSinceLastPlayed
boolHasDaysSinceLastPlayed()
Determines whether this instance has DaysSinceLastPlayed.
| Details | |
|---|---|
| Returns |
true if this instance has DaysSinceLastPlayed; otherwise, false. |
HasHighSpenderProbability
boolHasHighSpenderProbability()
Determines whether this instance has HighSpenderProbability.
| Details | |
|---|---|
| Returns |
true if this instance has HighSpenderProbability; otherwise, false. |
HasNumberOfPurchases
boolHasNumberOfPurchases()
Determines whether this instance has NumberOfPurchases.
| Details | |
|---|---|
| Returns |
true if this instance has NumberOfPurchases; otherwise, false. |
HasNumberOfSessions
boolHasNumberOfSessions()
Determines whether this instance has NumberOfSessions.
| Details | |
|---|---|
| Returns |
true if this instance has NumberOfSessions; otherwise, false. |
HasSessPercentile
boolHasSessPercentile()
Determines whether this instance has SessPercentile.
| Details | |
|---|---|
| Returns |
true if this instance has SessPercentile; otherwise, false. |
HasSpendPercentile
boolHasSpendPercentile()
Determines whether this instance has SpendPercentile.
| Details | |
|---|---|
| Returns |
true if this instance has SpendPercentile; otherwise, false. |
HasTotalSpendNext28Days
boolHasTotalSpendNext28Days()
Determines whether this instance has TotalSpendNext28Days.
| Details | |
|---|---|
| Returns |
true if this instance has TotalSpendNext28Days; otherwise, false. |
PlayerStats
PlayerStats( intnumberOfPurchases, floatavgSessionLength, intdaysSinceLastPlayed, intnumberOfSessions, floatsessPercentile, floatspendPercentile, floatspendProbability, floatchurnProbability, floathighSpenderProbability, floattotalSpendNext28Days )
PlayerStats
PlayerStats()