gpgs.multiplayer.invitations.setListener()

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

Overview

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

Gotchas

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

Syntax

gpgs.multiplayer.invitations.setListener( listener )
listener (required)

Listener. Listener function which receives an invitation event.