PlayerIO

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

HTML5 (Javascript) Client Reference

javascript (html5) publishingNetworkProfiles class informationClass publishingNetworkProfiles

Language: Javascript (HTML5)

PlayerIO Publishing Network Profiles service. This class is used to fetch or show the profile of the current user, or to load the profiles of other users.

Properties

 
myProfile :publishingNetworkProfile

The profile of the current user

Methods

 
loadProfiles (userIds, successCallback, errorCallback):

Load a set of PlayerIO Publishing Network profiles

showProfile (userId, closedCallback):

Show the profile for the specified user

publishingNetworkProfiles.myProfile

myProfile :publishingNetworkProfile

The profile of the current user

publishingNetworkProfiles.loadProfiles

loadProfiles (userIds, successCallback, errorCallback):

Load a set of PlayerIO Publishing Network profiles

Arguments

userIds:string[]
The userIds of the profiles to load
successCallback:function(publishingNetworkProfile[])
Callback function that will be called with the loaded profiles
errorCallback:function(PlayerIOError)
Callback function that will be called if an error occurs.

publishingNetworkProfiles.showProfile

showProfile (userId, closedCallback):

Show the profile for the specified user

Arguments

userId:string
The userId of the user to show
closedCallback:function()
Callback function that will be called when the profile is closed