gpgs.multiplayer.turnbased.setListener()

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

Overview

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

Gotchas

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

Syntax

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

Listener. Listener function which receives a match event.