Android Client Reference
Class PlayerInsight
Namespace: com.playerio
Language: Java
PlayerInsight
Methods | |||
---|---|---|---|
public int |
The numbers of players online in the entire game |
||
public String |
Gets the segment value for the given segment group. For instance, if the player is tagged in the segment 'source:facebook' the method will return 'facebook' when called with 'source' as the argument. |
||
public void |
Refresh the players online counter and the current segments of the user. public void refresh() throws PlayerIOError { state = channel.playerInsightRefresh(); } Refresh the players online counter and the current segments of the user. |
||
public void |
Every API call performs a session keep-alive implicitly, but if there will be long periods of inactivity this method can be used to ensure that the session that was started through Authenticate does not die out. |
||
public void |
Assign custom PlayerInsight segments to the current user |
||
public void |
Track the given event for the current user in PlayerInsight |
||
public void |
Track a completed payment in PlayerInsight from an external non-PayVault payment method. |
||
public void |
Tell PlayerInsight who invited the current user in this session. Used for viral analysis. |
PlayerInsight.getPlayersOnline
public int |
|
The numbers of players online in the entire game
PlayerInsight.getSegment
public String |
|
Gets the segment value for the given segment group. For instance, if the player is tagged in the segment 'source:facebook' the method will return 'facebook' when called with 'source' as the argument.
Arguments
String | segmentGroup |
PlayerInsight.refresh
public void |
|
Refresh the players online counter and the current segments of the user. public void refresh() throws PlayerIOError { state = channel.playerInsightRefresh(); } Refresh the players online counter and the current segments of the user.
Arguments
Callback<Void> | callback |
PlayerInsight.sessionKeepAlive
public void |
|
Every API call performs a session keep-alive implicitly, but if there will be long periods of inactivity this method can be used to ensure that the session that was started through Authenticate does not die out.
Arguments
Callback<Void> | callback |
PlayerInsight.setSegments
public void |
|
Assign custom PlayerInsight segments to the current user
Arguments
String[] | playerInsightSegments |
Callback<Void> | callback |
PlayerInsight.trackEvent
public void |
|
Track the given event for the current user in PlayerInsight
Arguments
String | eventType |
int | value |
Callback<Void> | callback |
PlayerInsight.trackExternalPayment
public void |
|
Track a completed payment in PlayerInsight from an external non-PayVault payment method.
Arguments
String | currency |
int | amount |
Callback<Void> | callback |
PlayerInsight.trackInvitedBy
public void |
|
Tell PlayerInsight who invited the current user in this session. Used for viral analysis.
Arguments
String | invitingUserId |
String | invitationChannel |
Callback<Void> | callback |