Android Client Reference
Class GameRequests
Namespace: com.playerio
Language: Java
The Player.IO GameRequests service
Methods | |||
---|---|---|---|
public void |
Delete the given requests. Will also update the Received property after deletion is complete. |
||
public GameRequest[] |
The list of oldest received requests that are waiting to be processed and deleted. |
||
public void |
Refresh the list of received requests. public void refresh() throws PlayerIOError { GameRequestsRefreshOutput output = channel.gameRequestsRefresh(PlayCodes.getInstance().getPlayCodes()); PlayCodes.getInstance().setPlayCodes(output.NewPlayCodes); read(output.Requests, output.MoreRequestsWaiting); } Refresh the list of received requests. |
||
public void |
Send a GameRequest to the specified recipients |
||
public void |
Show a dialog to send GameRequests |
GameRequests.delete
public void |
|
Delete the given requests. Will also update the Received property after deletion is complete.
Arguments
GameRequest[] | requests |
Callback<Void> | callback |
GameRequests.getWaitingRequests
public GameRequest[] |
|
The list of oldest received requests that are waiting to be processed and deleted.
GameRequests.refresh
public void |
|
Refresh the list of received requests. public void refresh() throws PlayerIOError { GameRequestsRefreshOutput output = channel.gameRequestsRefresh(PlayCodes.getInstance().getPlayCodes()); PlayCodes.getInstance().setPlayCodes(output.NewPlayCodes); read(output.Requests, output.MoreRequestsWaiting); } Refresh the list of received requests.
Arguments
Callback<Void> | callback |
GameRequests.send
public void |
|
Send a GameRequest to the specified recipients
Arguments
String | requestType |
Map<String,String> | requestData |
String[] | recipients |
Callback<Void> | callback |
GameRequests.showSendDialog
public void |
|
Show a dialog to send GameRequests
Arguments
Activity | activity |
String | requestType |
Map<String,String> | requestData |
Callback<GameRequestSendDialogResult> | callback |