Objective-C Client Reference
Class PIOGameRequests
Language: Objective-C
The Player.IO GameRequests service
Properties | |||
---|---|---|---|
|
|||
Methods | |||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
@property (nonatomic) NSArray * waitingRequests
The list of oldest received requests that are waiting to be processed and deleted.
deleteWithGameRequests:successBlock:
Delete the given requests synchronously. Will also update the Received property after deletion is complete.
Arguments
NSArray* | requests |
void(^)() | successBlock |
deleteWithGameRequests:successBlock:errorBlock:
Delete the given requests asynchronously. Will also update the Received property after deletion is complete.
Arguments
NSArray* | requests |
void(^)() | successBlock |
void(^)(PIOError*) | errorBlock |
refreshWithSuccessBlock:
Refresh the list of received requests synchronously. Refresh the list of received requests asynchronously.
Arguments
void(^)() | successBlock |
refreshWithSuccessBlock:errorBlock:
Refresh the list of received requests asynchronously.
Arguments
void(^)() | successBlock |
void(^)(PIOError*) | errorBlock |
sendWithRequestType:requestData:recipients:successBlock:
Send a GameRequest to the specified recipients synchronously.
Arguments
NSString* | requestType |
NSDictionary* | requestData |
NSArray* | recipients |
void(^)() | successBlock |
sendWithRequestType:requestData:recipients:successBlock:errorBlock:
Send a GameRequest to the specified recipients asynchronously.
Arguments
NSString* | requestType |
NSDictionary* | requestData |
NSArray* | recipients |
void(^)() | successBlock |
void(^)(PIOError*) | errorBlock |
showSendDialogWithRequestType:requestData:closeBlock:
Show a dialogue to send GameRequests
Arguments
NSString* | requestType |
NSDictionary* | requestData |
void(^)(PIOGameRequestSendDialogResult*) | closeBlock |