gamecircle.SetSignedInListener()

Type function
Library gamecircle.*
Return value None
Revision Release 2024.3703
Keywords Leaderboard, Overlay

Overview

Will register a callback with the GameCircle system that will alert the lua code if/when the players sign-in status changes.

Syntax

gamecircle.SetSignedInListener( callback )
callback (required)

Function. The callback function for events propegated by Whispersync.

Information on Callback Function

Your callback function should have a single, boolean parameter. This parameter will be true when a new user signs in, and false when the current user signs out.

Examples

local gamecircle = require("plugin.gamecircle")    
gamecircle.Init(false, false, true)  
function SignedInCallback(result)  
    if result then  
        print("Player Signed In")  
    else
        print("Player SIgned Out")
    end
end  
gamecircle.SetSignedInListener(SignedInCallback)