HTML5 (Javascript) Client Reference
Class publishingNetworkRelations
Language: Javascript (HTML5)
The PlayerIO Publishing Network Relations service. This class is used to fetch the current users friends, and to show the various friend management dialogs for games published on the PlayerIO Publishing Network.
Properties | ||||
---|---|---|---|---|
|
||||
Methods | ||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
publishingNetworkRelations.friends
|
List of all friends
publishingNetworkRelations.isBlocked
|
Check if a specific user is a blocked
Arguments
userId:string | |
The userId of the user to check |
publishingNetworkRelations.isFriend
|
Check if a specific user is a friend
Arguments
userId:string | |
The userId of the user to check |
publishingNetworkRelations.showBlockedUsersManager
|
Shows the a dialog where the user can manage their blocked users list
Arguments
closedCallback:function() | |
Callback function that will be called when the dialog is closed |
publishingNetworkRelations.showFriendsManager
|
Shows the a dialog where the user can manage their friends list
Arguments
closedCallback:function() | |
Callback function that will be called when the dialog is closed |
publishingNetworkRelations.showRequestBlockUserDialog
|
Shows a dialog where the user can choose to block a specific user
Arguments
userId:string | |
The userId of the user to block | |
closedCallback:function() | |
Callback function that will be called when the dialog is closed |
publishingNetworkRelations.showRequestFriendshipDialog
|
Shows a dialog where the user can choose to send a friend request to the specified user
Arguments
userId:string | |
The userId of the user that will receive the friendship request, if sent | |
closedCallback:function() | |
Callback function that will be called when the dialog is closed |