GooglePlus

Adobe AIR native extension

Google Plus AIR Native Extension

The extension is available here: com.distriqt.GooglePlus

Documentation



Setup your Google Project

1. Google Developers Console project
2. Android Certificate Fingerprint
3. Google Identity Options


Setup the Extension

1. Add the Extension
2. Initialise


Usage

1. Setup
2. Signing In/Out
3. Disconnect
4. Sharing a Post


External Links

- ASDocs

Setup the extension

You should perform this once in your application. This initialises the platform using your Google API client ID.

GooglePlus.service.addEventListener( GooglePlusEvent.SETUP_COMPLETE, setupCompleteHandler );

var options:GooglePlusOptions = new GooglePlusOptions( ANDROID_CLIENTID, IOS_CLIENTID );

GooglePlus.service.setup( options );

Then wait for the setup complete handler:

private function setupCompleteHandler( event:GooglePlusEvent ):void
{
	// Google Plus is now setup
}

You can also check whether a user has the Google+ application installed.

if (GooglePlus.service.isGooglePlusAppInstalled())
{
	trace( "The Google+ application is installed on this device" );
}