gpgs.requests.setListener()

Type Function
Return value none
Revision 2017.3060
Keywords Google Play Games Services, game network, gpgs, requests, setListener
See also gpgs.requests
gpgs.*

Overview

Registers a listener function to intercept incoming requests for the current user. If a listener is registered by this method, the incoming request will not generate a status bar notification as long as this client remains connected.

Gotchas

Only one request listener may be active at a time. Calling this method while another request listener is registered will replace the original listener with the new one.

Syntax

gpgs.requests.setListener( listener )
listener (required)

Listener. Listener function which receives a request event.