PlayerIO

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

Unity3D Client Reference

Multiplayer  class documentationClass PublishingNetworkRelations

Namespace: PlayerIOClient
Language: C# / .NET

The PlayerIO Publishing Network relations service

Properties

 
public PublishingNetworkProfile[]
Friends  [read-only]

List of all friends

Methods

 
public bool
IsBlocked (string userId)

Check if a specific user is blocked

public bool
IsFriend (string userId)

Check if a specific user is a friend

public void
ShowBlockedUsersManager (Callback closedCallback)

Shows the a dialog where the user can manage their blocked users list.

public void
ShowFriendsManager (Callback closedCallback)

Shows the a dialog where the user can manage their friends list.

public void
ShowRequestBlockUserDialog (string userId, Callback closedCallback)

Shows a dialog where the user can choose to block a specific user

public void
ShowRequestFriendshipDialog (string userId, Callback closedCallback)

Shows a dialog where the user can choose to send a friend request to the specified user.

PublishingNetworkRelations.Friends

public PublishingNetworkProfile[]
Friends  [read-only]

List of all friends

PublishingNetworkRelations.IsBlocked

public bool
IsBlocked (string userId)

Check if a specific user is blocked

Arguments

string userId
The userId of the user to check.

PublishingNetworkRelations.IsFriend

public bool
IsFriend (string userId)

Check if a specific user is a friend

Arguments

string userId
The userId of the user to check.

PublishingNetworkRelations.ShowBlockedUsersManager

public void
ShowBlockedUsersManager (Callback closedCallback)

Shows the a dialog where the user can manage their blocked users list.

Arguments

Callback closedCallback
Callback that will be called when the dialog closes

PublishingNetworkRelations.ShowFriendsManager

public void
ShowFriendsManager (Callback closedCallback)

Shows the a dialog where the user can manage their friends list.

Arguments

Callback closedCallback
Callback that will be called when the dialog closes

PublishingNetworkRelations.ShowRequestBlockUserDialog

public void
ShowRequestBlockUserDialog (string userId, Callback closedCallback)

Shows a dialog where the user can choose to block a specific user

Arguments

string userId
The userId of the user to block
Callback closedCallback
Callback that will be called when the dialog is closed

PublishingNetworkRelations.ShowRequestFriendshipDialog

public void
ShowRequestFriendshipDialog (string userId, Callback closedCallback)

Shows a dialog where the user can choose to send a friend request to the specified user.

Arguments

string userId
The userId of the user that will receive the friendship request, if sent
Callback closedCallback
Callback that will be called when the dialog is closed