gpgs.getAccountName()

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

Overview

Requests the current player's account name.

Note

If you want to use this function, you must include the GET_ACCOUNTS permission in your build.settings file — please see here for instructions.

Syntax

gpgs.getAccountName( [listener] )
listener (optional)

Listener. Listener function which receives a getAccountName event.