-
Notifications
You must be signed in to change notification settings - Fork 10
Connecting
Johann Martinache edited this page Jul 2, 2013
·
3 revisions
if( StatusCode.translate( PlayServices.isAvailable( ) ) == Status.OK ){
}
If available, we initialize the Play Services ( Wait for Event INIT ):
Lib.current.stage.addEventListener( Event.INIT , _onGP_init );
PlayServices.initialize( );
var b = PlayServices.isSigned_in( )
Does the connection can be reopened ?:
Lib.current.stage.addEventListener( SigninEvent.SUCCESS , _onSignin_success , false );
Lib.current.stage.addEventListener( SigninEvent.FAILED , _onSignin_failed , false );
PlayServices.connect( );
Lib.current.stage.addEventListener( SigninEvent.SUCCESS , _onSignin_success , false );
Lib.current.stage.addEventListener( SigninEvent.FAILED , _onSignin_failed , false );
PlayServices.beginUserInitiated_sign_in( );