public interface

OnRequestReceivedListener

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

This interface is deprecated.
Google+ no longer integrated so social APIs will not work as expected. See Play Games authentication adopting Google Sign-In API

Class Overview

Listener to invoke when a new request is received.

Summary

Public Methods
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 GameRequest: 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 String: The ID of the request that was removed.