| Package | com.distriqt.extension.facebookapi.appevents |
| Class | public class FacebookAppEvent |
| Inheritance | FacebookAppEvent Object |
This class represents data to be used for sending Facebook App Events.
Note that only the eventName is required. parameters and valueToSum are optional.
See also
| Property | Defined By | ||
|---|---|---|---|
| eventName : String
The name of the event. | FacebookAppEvent | ||
| parameters : Object [read-only]
A key/value object storing additional parameters to be sent with the event (optional)
Keys must be of type String, while their values must either be a String or a Number. | FacebookAppEvent | ||
| valueToSum : Number = 0
The valueToSum value for the event (optional).
These values are aggregated and averaged in Facebook insights for each event type
Setting this value to 0 will cause it to be ignored and not sent with your event. | FacebookAppEvent | ||
| Method | Defined By | ||
|---|---|---|---|
FacebookAppEvent(eventName:String)
Constructor
| FacebookAppEvent | ||
removeParameter(key:String):void
Removes a parameter from this event
| FacebookAppEvent | ||
setParameter(key:String, value:*):void
Adds or updates a parameter for this event
Keys must be of type String, while their values must either be a String or a Number. | FacebookAppEvent | ||
toObject():Object | FacebookAppEvent | ||
| eventName | property |
public var eventName:StringThe name of the event. May be one of the standard Facebook event types or any custom name.
See also
| parameters | property |
parameters:Object [read-only]
A key/value object storing additional parameters to be sent with the event (optional)
Keys must be of type String, while their values must either be a String or a Number. Anything which does not match these types will be converted to a String.
While you can modify this object directly, it's recommended to use the setParameter and removeParameter methods to ensure data validation.
public function get parameters():Object| valueToSum | property |
public var valueToSum:Number = 0
The valueToSum value for the event (optional).
These values are aggregated and averaged in Facebook insights for each event type
Setting this value to 0 will cause it to be ignored and not sent with your event. This is the default value.
| FacebookAppEvent | () | Constructor |
public function FacebookAppEvent(eventName:String)Constructor
ParameterseventName:String |
| removeParameter | () | method |
public function removeParameter(key:String):void
Removes a parameter from this event
Parameters
key:String — String - name of the parameter
|
| setParameter | () | method |
public function setParameter(key:String, value:*):void
Adds or updates a parameter for this event
Keys must be of type String, while their values must either be a String or a Number. Any value which does not match these types will be converted to a String.
Parameters
key:String — String - name of the parameter
| |
value:* — String or Number - value of the parameter
|
| toObject | () | method |
public function toObject():ObjectReturnsObject |