OnRequestReceivedListener

public interface OnRequestReceivedListener

This interface was deprecated.
See Requests.

Listener to invoke when a new request is received.

Public Method Summary

abstract void
onRequestReceived(GameRequest request)
Callback invoked when a new request is received.
abstract void
onRequestRemoved(String requestId)
Callback invoked when a previously received request has been removed from the local device.

Public Methods

public abstract void onRequestReceived (GameRequest request)

Callback invoked when a new request is received. This allows an app to respond to the request as appropriate. If the app receives this callback, the system will not display a notification for this request.

Parameters
request The request that was received.

public abstract void onRequestRemoved (String requestId)

Callback invoked when a previously received request has been removed from the local device. For example, this might occur if the sender cancels the request.

Parameters
requestId The ID of the request that was removed.