守望者--AIR技术交流

标题: Air Native Extension for Apsalar analytics on iOS & Android [打印本页]

作者: 破晓    时间: 2015-1-23 15:08
标题: Air Native Extension for Apsalar analytics on iOS & Android
Air Native Extension for Apsalar analytics on iOS & Android

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

Version

This is version 0.2.0 of this extension. The compiled extension contains version 6.0.1 of the Apsalar Analytics library for iOS and version 4.0.2 of the Apsalar Analytics library for Android.

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 extensionStart an Apsalar session

At its simplest, you initialize the extension with your api keys as follows

  1. Apsalar.startSession( "your api key", "your api secret" );
复制代码
You should only start the session once, after which you can log as many events as you wish.Start an Apsalar session with an opening url (iOS only)
  1. Apsalar.startSession( "your api key", "your api secret", "opening url" );
复制代码
Th eopening url is the url that directed iOS to open your app.Log a simple eventYou may then log events with Apsalar like this
  1. Apsalar.logEvent( "User did something" );
复制代码
Log an event with parametersYou can pass parameters through to a Apsalar event via a simple object, as follows
  1. Apsalar.logEvent( "Screen resolution", { width : Capabilities.screenResolutionX, height : Capabilities.screenResolutionY, dpi : Capabilities.screenDPI } );
复制代码
End an Apsalar sessionEnds the current session.
  1. Apsalar.endSession();
复制代码
DevelopersLicenseThis project is licensed under the BSD license

[attach]588[/attach]


相关链接:
https://github.com/StickSports/Apsalar-ANE






欢迎光临 守望者--AIR技术交流 (http://www.airmyth.com/)