PlayerIO

The fastest way to build online games without breaking a sweat.

Android Client Reference

Android  class documentationClass PublishingNetworkProfiles

Namespace: com.playerio
Language: Java

The PlayerIO Publishing Network profile service

Methods

 
public PublishingNetworkProfile
getMyProfile ()

The profile of the current user

public void
loadProfiles (String[] userIds, Callback<PublishingNetworkProfile[]> callback)

Load a set of PlayerIO Publishing Network profiles

public void
showProfile (Activity activity, String userId, Callback<Void> closedCallback)

Show the profile for the specified user

PublishingNetworkProfiles.getMyProfile

public PublishingNetworkProfile
getMyProfile ()

The profile of the current user

PublishingNetworkProfiles.loadProfiles

public void
loadProfiles (String[] userIds, Callback<PublishingNetworkProfile[]> callback)

Load a set of PlayerIO Publishing Network profiles

Arguments

String[] userIds
The userIds of the profiles to load.
Callback<PublishingNetworkProfile[]> callback
Callback that will be called when the profiles are loaded, or if they fail to load. If successful, it will return an array that is the same length as the input array, and will have a one-to-one mapping between them. However, if any userId was invalid, then the corresponding PublishingNetworkProfile will be null.

PublishingNetworkProfiles.showProfile

public void
showProfile (Activity activity, String userId, Callback<Void> closedCallback)

Show the profile for the specified user

Arguments

Activity activity
String userId
The userId of the user
Callback<Void> closedCallback
Callback that will be called when the profile page is closed