gpgs.login()

Type Boolean
Return value none
Revision Current Public Release (2018.3326)
Keywords Google Play Games Services, game network, gpgs
See also gpgs2.*

Overview

Attempts to log in the current player.

Syntax

gpgs.login(params)
params (required)

Table. Contains parameters — see the next section for details.

Parameter Reference

userInitiated (optional)

Boolean. If true, will show sign in dialog if user is not logged in. Use it when user specifically wants to log in (presses log in button for instance) instead of being logged in automatically.

listener (optional)

Listener. Receives login event.