PlayerIO

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

Objective-C Client Reference

Multiplayer  class documentationClass PIOYahooRelations

Language: Objective-C

The YahooRelations Service.

Properties

 
friends
List of all friends

Methods

 
- (BOOL)
isBlockedWithUserId:
Check if a specific user is blocked
- (BOOL)
isFriendWithUserId:
Check if a specific user is a friend
- (void)
showBlockedUserManagerWithClosedBlock:
Shows the a dialog where the user can manage their blocked users list.
- (void)
showFriendsManagerWithClosedBlock:
Shows the a dialog where the user can manage their friends list.
- (void)
showRequestBlockUserDialogWithUserId:closedBlock:
Shows a dialog where the user can choose to block a specific user.
- (void)
showRequestFriendshipDialogWithUserId:closedBlock:
Shows a dialog where the user can choose to send a friend request to the specified user.

@property (nonatomic) NSArray * friends

List of all friends

isBlockedWithUserId:

Check if a specific user is blocked

Arguments

NSString* userId
The userId of the user to check.

Return Value

BOOL

isFriendWithUserId:

Check if a specific user is a friend

Arguments

NSString* userId
The userId of the user to check.

Return Value

BOOL

showBlockedUserManagerWithClosedBlock:

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

Arguments

void(^)() closedBlock
Callback that will be called when the dialog closes

showFriendsManagerWithClosedBlock:

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

Arguments

void(^)() closedBlock
Callback block that will be called when the dialog closes

showRequestBlockUserDialogWithUserId:closedBlock:

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

Arguments

NSString* userId
The userId of the user to block
void(^)() closedBlock
Callback block that will be called when the dialog is closed

showRequestFriendshipDialogWithUserId:closedBlock:

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

Arguments

NSString* userId
The userId of the user that will receive the friendship request, if sent
void(^)() closedBlock
Callback block that will be called when the dialog is closed