Package | com.distriqt.extension.googleanalytics.builders |
Class | public class EventBuilder |
Inheritance | EventBuilder ![]() |
Implements | HitBuilder |
A Builder object to build event hits. For meaningful data, event hits should contain at least the event category and the event action.
Method | Defined By | ||
---|---|---|---|
EventBuilder(category:String = null, action:String = null)
Constructor
| EventBuilder | ||
setAction(action:String):EventBuilder
Set the Action associated with the event
| EventBuilder | ||
setCategory(category:String):EventBuilder
Set the Category in which the event will be filed
| EventBuilder | ||
setLabel(label:String):EventBuilder | EventBuilder | ||
setValue(value:int):EventBuilder | EventBuilder |
EventBuilder | () | Constructor |
public function EventBuilder(category:String = null, action:String = null)
Constructor
Parameterscategory:String (default = null )
| |
action:String (default = null )
|
setAction | () | method |
public function setAction(action:String):EventBuilder
Set the Action associated with the event
Parameters
action:String |
EventBuilder — The EventBuilder for chaining
|
setCategory | () | method |
public function setCategory(category:String):EventBuilder
Set the Category in which the event will be filed
Parameters
category:String |
EventBuilder — The EventBuilder for chaining
|
setLabel | () | method |
setValue | () | method |