本帖最后由 破晓 于 2015-1-22 11:05 编辑
Air Native Extension for Flurry analytics on iOS & AndroidThis is an Air native extension for Flurry analytics on the iOS and Android platforms. VersionThis 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 filesThe 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 extensionStart a Flurry sessionAt 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 sessionOn 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. Log a simple eventYou may then log events with Flurry like this - Flurry.logEvent( "User did something" );
复制代码 Log an event with parametersYou 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 eventFlurry 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 errorYou can also log errors with Flurry - Flurry.logError( "NullPointer", "Attempt to use a reference to a null pointer" );
复制代码 More infoThat’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. DevelopersLicenseThis project is licensed under the BSD license
相关链接:
https://github.com/jsaade/ANE-Flurry-Analytics
https://github.com/StickSports/ANE-Flurry-Analytics
相关下载:
ANE-Flurry
|