Hide

OnRequestReceivedListener

public interface OnRequestReceivedListener
com.google.android.gms.games.request.OnRequestReceivedListener

Listener to invoke when a new request is received.

Public Method Summary

abstract void
abstract void

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.