Packagecom.milkmangames.nativeextensions
Classpublic class GVFacebookAppEvent
InheritanceGVFacebookAppEvent Inheritance Object

GVFacebookAppEvent



Public Properties
 PropertyDefined By
  eventName : String
Event Name
GVFacebookAppEvent
  params : Object
Custom Params
GVFacebookAppEvent
  valueToSum : Number
Value to Sum
GVFacebookAppEvent
Public Methods
 MethodDefined By
  
GVFacebookAppEvent(eventName:String)
Creates a new FacebookAppEvent
GVFacebookAppEvent
  
setParameter(paramName:String, paramValue:String):void
Set a parameter for this event.
GVFacebookAppEvent
  
setValueToSum(value:Number):void
Set the valueToSum for this event
GVFacebookAppEvent
Public Constants
 ConstantDefined By
  EVENT_NAME_ACHIEVED_LEVEL : String = fb_mobile_level_achieved
[static] Log this event when the user has achieved a level in the app.
GVFacebookAppEvent
  EVENT_NAME_ACTIVATED_APP : String = fb_mobile_activate_app
[static] Log this event when an app is being activated.
GVFacebookAppEvent
  EVENT_NAME_ADDED_PAYMENT_INFO : String = fb_mobile_add_payment_info
[static] Log this event when the user has entered their payment info.
GVFacebookAppEvent
  EVENT_NAME_ADDED_TO_CART : String = fb_mobile_add_to_cart
[static] Log this event when the user has added an item to their cart.
GVFacebookAppEvent
  EVENT_NAME_ADDED_TO_WISHLIST : String = fb_mobile_add_to_wishlist
[static] Log this event when the user has added an item to their wishlist.
GVFacebookAppEvent
  EVENT_NAME_COMPLETED_REGISTRATION : String = fb_mobile_complete_registration
[static] Log this event when a user has completed registration with the app.
GVFacebookAppEvent
  EVENT_NAME_COMPLETED_TUTORIAL : String = fb_mobile_tutorial_completion
[static] Log this event when the user has completed a tutorial in the app.
GVFacebookAppEvent
  EVENT_NAME_INITIATED_CHECKOUT : String = fb_mobile_initiated_checkout
[static] Log this event when the user has entered the checkout process.
GVFacebookAppEvent
  EVENT_NAME_PURCHASED : String = fb_mobile_purchase
[static] Log this event when the user has completed a purchase.
GVFacebookAppEvent
  EVENT_NAME_RATED : String = fb_mobile_rate
[static] Log this event when the user has rated an item in the app.
GVFacebookAppEvent
  EVENT_NAME_SEARCHED : String = fb_mobile_search
[static] Log this event when a user has performed a search within the app.
GVFacebookAppEvent
  EVENT_NAME_SPENT_CREDITS : String = fb_mobile_spent_credits
[static] Log this event when the user has spent app credits.
GVFacebookAppEvent
  EVENT_NAME_UNLOCKED_ACHIEVEMENT : String = fb_mobile_achievement_unlocked
[static] Log this event when the user has unlocked an achievement in the app.
GVFacebookAppEvent
  EVENT_NAME_VIEWED_CONTENT : String = fb_mobile_content_view
[static] Log this event when a user has viewed a form of content in the app.
GVFacebookAppEvent
  EVENT_PARAM_CONTENT_ID : String = fb_content_id
[static] Parameter key used to specify an ID for the specific piece of content being logged about.
GVFacebookAppEvent
  EVENT_PARAM_CONTENT_TYPE : String = fb_content_type
[static] Parameter key used to specify a generic content type/family for the logged event, e.g.
GVFacebookAppEvent
  EVENT_PARAM_CURRENCY : String = fb_currency
[static] Parameter key used to specify currency used with logged event.
GVFacebookAppEvent
  EVENT_PARAM_DESCRIPTION : String = fb_description
[static] Parameter key used to specify a description appropriate to the event being logged.
GVFacebookAppEvent
  EVENT_PARAM_LEVEL : String = fb_level
[static] Parameter key used to specify the level achieved in a EVENT_NAME_LEVEL_ACHIEVED event.
GVFacebookAppEvent
  EVENT_PARAM_MAX_RATING_VALUE : String = fb_max_rating_value
[static] Parameter key used to specify the maximum rating available for the EVENT_NAME_RATE event.
GVFacebookAppEvent
  EVENT_PARAM_NUM_ITEMS : String = fb_num_items
[static] Parameter key used to specify how many items are being processed for an EVENT_NAME_INITIATED_CHECKOUT or EVENT_NAME_PURCHASE event.
GVFacebookAppEvent
  EVENT_PARAM_PAYMENT_INFO_AVAILABLE : String = fb_payment_info_available
[static] Parameter key used to specify whether payment info is available for the EVENT_NAME_INITIATED_CHECKOUT event.
GVFacebookAppEvent
  EVENT_PARAM_REGISTRATION_METHOD : String = fb_registration_method
[static] Parameter key used to specify method user has used to register for the app, e.g., "Facebook", "email", "Twitter", etc.
GVFacebookAppEvent
  EVENT_PARAM_SEARCH_STRING : String = fb_search_string
[static] Parameter key used to specify the string provided by the user for a search operation.
GVFacebookAppEvent
  EVENT_PARAM_SUCCESS : String = fb_success
[static] Parameter key used to specify whether the activity being logged about was successful or not.
GVFacebookAppEvent
  EVENT_PARAM_VALUE_NO : String = 0
[static] No-valued parameter value to be used with parameter keys that need a Yes/No value
GVFacebookAppEvent
  EVENT_PARAM_VALUE_YES : String = 1
[static] Yes-valued parameter value to be used with parameter keys that need a Yes/No value
GVFacebookAppEvent
Property Detail
eventNameproperty
public var eventName:String

Event Name

paramsproperty 
public var params:Object

Custom Params

valueToSumproperty 
public var valueToSum:Number

Value to Sum

Constructor Detail
GVFacebookAppEvent()Constructor
public function GVFacebookAppEvent(eventName:String)

Creates a new FacebookAppEvent

Parameters
eventName:String
Method Detail
setParameter()method
public function setParameter(paramName:String, paramValue:String):void

Set a parameter for this event.

Parameters

paramName:String — name of the paramter to set
 
paramValue:String — value of the parameter to set

setValueToSum()method 
public function setValueToSum(value:Number):void

Set the valueToSum for this event

Parameters

value:Number — the value to sum

Constant Detail
EVENT_NAME_ACHIEVED_LEVELConstant
public static const EVENT_NAME_ACHIEVED_LEVEL:String = fb_mobile_level_achieved

Log this event when the user has achieved a level in the app.

EVENT_NAME_ACTIVATED_APPConstant 
public static const EVENT_NAME_ACTIVATED_APP:String = fb_mobile_activate_app

Log this event when an app is being activated.

EVENT_NAME_ADDED_PAYMENT_INFOConstant 
public static const EVENT_NAME_ADDED_PAYMENT_INFO:String = fb_mobile_add_payment_info

Log this event when the user has entered their payment info.

EVENT_NAME_ADDED_TO_CARTConstant 
public static const EVENT_NAME_ADDED_TO_CART:String = fb_mobile_add_to_cart

Log this event when the user has added an item to their cart. The valueToSum passed to logEvent should be the item's price.

EVENT_NAME_ADDED_TO_WISHLISTConstant 
public static const EVENT_NAME_ADDED_TO_WISHLIST:String = fb_mobile_add_to_wishlist

Log this event when the user has added an item to their wishlist. The valueToSum passed to logEvent should be the item's price.

EVENT_NAME_COMPLETED_REGISTRATIONConstant 
public static const EVENT_NAME_COMPLETED_REGISTRATION:String = fb_mobile_complete_registration

Log this event when a user has completed registration with the app.

EVENT_NAME_COMPLETED_TUTORIALConstant 
public static const EVENT_NAME_COMPLETED_TUTORIAL:String = fb_mobile_tutorial_completion

Log this event when the user has completed a tutorial in the app.

EVENT_NAME_INITIATED_CHECKOUTConstant 
public static const EVENT_NAME_INITIATED_CHECKOUT:String = fb_mobile_initiated_checkout

Log this event when the user has entered the checkout process. The valueToSum passed to logEvent should be the total price in the cart.

EVENT_NAME_PURCHASEDConstant 
public static const EVENT_NAME_PURCHASED:String = fb_mobile_purchase

Log this event when the user has completed a purchase. The {

EVENT_NAME_RATEDConstant 
public static const EVENT_NAME_RATED:String = fb_mobile_rate

Log this event when the user has rated an item in the app. The valueToSum passed to logEvent should be the numeric rating.

EVENT_NAME_SEARCHEDConstant 
public static const EVENT_NAME_SEARCHED:String = fb_mobile_search

Log this event when a user has performed a search within the app.

EVENT_NAME_SPENT_CREDITSConstant 
public static const EVENT_NAME_SPENT_CREDITS:String = fb_mobile_spent_credits

Log this event when the user has spent app credits. The valueToSum passed to logEvent should be the number of credits spent.

EVENT_NAME_UNLOCKED_ACHIEVEMENTConstant 
public static const EVENT_NAME_UNLOCKED_ACHIEVEMENT:String = fb_mobile_achievement_unlocked

Log this event when the user has unlocked an achievement in the app.

EVENT_NAME_VIEWED_CONTENTConstant 
public static const EVENT_NAME_VIEWED_CONTENT:String = fb_mobile_content_view

Log this event when a user has viewed a form of content in the app.

EVENT_PARAM_CONTENT_IDConstant 
public static const EVENT_PARAM_CONTENT_ID:String = fb_content_id

Parameter key used to specify an ID for the specific piece of content being logged about. Could be an EAN, article identifier, etc., depending on the nature of the app.

EVENT_PARAM_CONTENT_TYPEConstant 
public static const EVENT_PARAM_CONTENT_TYPE:String = fb_content_type

Parameter key used to specify a generic content type/family for the logged event, e.g. "music", "photo", "video". Options to use will vary based upon what the app is all about.

EVENT_PARAM_CURRENCYConstant 
public static const EVENT_PARAM_CURRENCY:String = fb_currency

Parameter key used to specify currency used with logged event. E.g. "USD", "EUR", "GBP". See ISO-4217 for specific values. One reference for these is http://en.wikipedia.org/wiki/ISO_4217.

EVENT_PARAM_DESCRIPTIONConstant 
public static const EVENT_PARAM_DESCRIPTION:String = fb_description

Parameter key used to specify a description appropriate to the event being logged. E.g., the name of the achievement unlocked in the EVENT_NAME_ACHIEVEMENT_UNLOCKED event.

EVENT_PARAM_LEVELConstant 
public static const EVENT_PARAM_LEVEL:String = fb_level

Parameter key used to specify the level achieved in a EVENT_NAME_LEVEL_ACHIEVED event.

EVENT_PARAM_MAX_RATING_VALUEConstant 
public static const EVENT_PARAM_MAX_RATING_VALUE:String = fb_max_rating_value

Parameter key used to specify the maximum rating available for the EVENT_NAME_RATE event. E.g., "5" or "10".

EVENT_PARAM_NUM_ITEMSConstant 
public static const EVENT_PARAM_NUM_ITEMS:String = fb_num_items

Parameter key used to specify how many items are being processed for an EVENT_NAME_INITIATED_CHECKOUT or EVENT_NAME_PURCHASE event.

EVENT_PARAM_PAYMENT_INFO_AVAILABLEConstant 
public static const EVENT_PARAM_PAYMENT_INFO_AVAILABLE:String = fb_payment_info_available

Parameter key used to specify whether payment info is available for the EVENT_NAME_INITIATED_CHECKOUT event. EVENT_PARAM_VALUE_YES and EVENT_PARAM_VALUE_NO are good canonical values to use for this parameter.

EVENT_PARAM_REGISTRATION_METHODConstant 
public static const EVENT_PARAM_REGISTRATION_METHOD:String = fb_registration_method

Parameter key used to specify method user has used to register for the app, e.g., "Facebook", "email", "Twitter", etc.

EVENT_PARAM_SEARCH_STRINGConstant 
public static const EVENT_PARAM_SEARCH_STRING:String = fb_search_string

Parameter key used to specify the string provided by the user for a search operation.

EVENT_PARAM_SUCCESSConstant 
public static const EVENT_PARAM_SUCCESS:String = fb_success

Parameter key used to specify whether the activity being logged about was successful or not. EVENT_PARAM_VALUE_YES and EVENT_PARAM_VALUE_NO are good canonical values to use for this parameter.

EVENT_PARAM_VALUE_NOConstant 
public static const EVENT_PARAM_VALUE_NO:String = 0

No-valued parameter value to be used with parameter keys that need a Yes/No value

EVENT_PARAM_VALUE_YESConstant 
public static const EVENT_PARAM_VALUE_YES:String = 1

Yes-valued parameter value to be used with parameter keys that need a Yes/No value