gpgs.videos.setListener()

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

Overview

Registers a listener function to listen for changes to the overlay state launched by gpgs.videos.show().

Gotchas

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

Syntax

gpgs.videos.setListener( listener )
listener (required)

Listener. Listener function which receives a video event.