Type function Library gamecircle.* Return value None Revision Release 2022.3683 Keywords gamecircle, player, profile
This function allows you to fetch information about the player currently signed in with Amazon's services.
gamecircle.GetLocalPlayerPrifle(callback)
Function. Pass to a callback function since the request requires the GameCircle SDK to contact Amazon's servers. The callback will recieve a single parameter of a [PlayerProfileReturn][gamecircle.PlayerProfileReturn].
local gamecircle = require("plugin.gamecircle") gamecircle.Init(true, false, true) function PlayerProfileCallback(returnValue) if returnValue.isError == true then print("Player Profile returned with error message: " .. returnValue.errorMessage) else print("PLayer Profile return with this info: " .. returnValue.player.alias .. "-" .. returnValue.player.id) end end gamecircle.GetLocalPlayerProfile(PlayerProfileCallback)