Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Air native extension for Flurry Analytics (iOS and Android)

branch: master
README.textile

Air Native Extension for Flurry analytics on iOS & Android

This is an Air native extension for Flurry analytics on the iOS and Android platforms.

Version

This is version 0.5.0 of this extension. The compiled extension contains version 4.2.3 of the Flurry Analytics library for iOS and version 3.2.1 of the Flurry Analytics library for Android.

If you wish to use a different version of the Flurry Analytics library, you may do so by following the instructions below to compile the extension.

Binary files

The bin folder contains the compiled extension and the default swc, which can be used for local testing if required by your development environment (Flash Builder shouldn’t need it, but other IDEs may).

Using the extension

Start a Flurry session

At its simplest, you initialize the extension with your application’s identifier as follows

Flurry.startSession( "your flurry id" );

You should only start the session once, after which you can log as many events as you wish.

End a Flurry session

On Android, this ends the current session (and sends the accumulated event data to Flurry). On iOS it does nothing, the session automatically ends when your app enters the background.

Flurry.endSession();

Log a simple event

You may then log events with Flurry like this

Flurry.logEvent( "User did something" );

Log an event with parameters

You can pass parameters through to a Flurry event via a simple object, as follows

Flurry.logEvent( "Screen resolution", { width : Capabilities.screenResolutionX, height : Capabilities.screenResolutionY, dpi : Capabilities.screenDPI } );

Log a timed event

Flurry will also log timed events. This is a two-step process. You first start the timed event.

Flurry.startTimedEvent( "User playing game" );

Then, later, you end the timed event.

Flurry.endTimedEvent( "User playing game" );

Log an error

You can also log errors with Flurry

Flurry.logError( "NullPointer", "Attempt to use a reference to a null pointer" );

More info

That’s just a starter. All the features of the Flurry api have been implemented. Read the documentation in the Actionscript source code for all the features.

Developers

License

This project is licensed under the BSD license

Something went wrong with that request. Please try again.