Packagecom.distriqt.extension.facebook.appevents
Interfacepublic interface AppEventsLogger extends flash.events.IEventDispatcher

Access to App Events and Facebook Analytics for Apps



Public Methods
 MethodDefined By
  
Notifies the events system that the app has launched and activate and deactivate events should start being logged automatically.
AppEventsLogger
  
clearUserID():Boolean
Delete the user ID stored on the device.
AppEventsLogger
  
flush():Boolean
Manually flushes pending Facebook app events
AppEventsLogger
  
getUserID():String
Returns the user id or null if none has been set
AppEventsLogger
  
logEvent(event:AppEvent):Boolean
Log an app event with the specified name, supplied value, and set of parameters
AppEventsLogger
  
Logs a purchase event with Facebook explicitly, in the specified amount and with the specified currency.
AppEventsLogger
  
setFlushBehaviour(mode:String):void
Sets the default behaviour for when the app should flush app events and send them to Facebook The mode should be one of the values defined in the FlushBehaviour class the default is MODE_AUTO that will automatically flush events and send when appropriate.
AppEventsLogger
  
setUserID(userID:String):void
Assign an ID to a user of your app
AppEventsLogger
Method Detail
activateApp()method
public function activateApp():void

Notifies the events system that the app has launched and activate and deactivate events should start being logged automatically. By default this function is called automatically from initialise() flow. In case 'AutoLogAppEventsEnabled' setting is set to false, it should typically be called from the Event.ACTIVATE event listener method of you application.

clearUserID()method 
public function clearUserID():Boolean

Delete the user ID stored on the device.

Returns
Booleantrue if successful and false if there was an error
flush()method 
public function flush():Boolean

Manually flushes pending Facebook app events

Returns
Booleantrue if successful and false if there was an error
getUserID()method 
public function getUserID():String

Returns the user id or null if none has been set

Returns
String — The user id
logEvent()method 
public function logEvent(event:AppEvent):Boolean

Log an app event with the specified name, supplied value, and set of parameters

Parameters

event:AppEventAppEvent object

Returns
Booleantrue if successful and false if there was an error
logPurchase()method 
public function logPurchase(event:AppPurchaseEvent):Boolean

Logs a purchase event with Facebook explicitly, in the specified amount and with the specified currency. Additional detail about the purchase can be passed in through the parameters bundle.

Parameters

event:AppPurchaseEventAppPurchaseEvent object

Returns
Booleantrue if successful and false if there was an error
setFlushBehaviour()method 
public function setFlushBehaviour(mode:String):void

Sets the default behaviour for when the app should flush app events and send them to Facebook

The mode should be one of the values defined in the FlushBehaviour class the default is MODE_AUTO that will automatically flush events and send when appropriate.

If you set MODE_EXPLICIT, you must then call the flush method manually in order for your events to be sent.

Parameters

mode:String (default = NaN) — The flush behaviour mode

See also

setUserID()method 
public function setUserID(userID:String):void

Assign an ID to a user of your app

Parameters

userID:String — The ID to use for the current user