public class InstrumentationEventBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
InstrumentationEventBuilder.EventBuilderException
Exception thrown if the event can not be built.
|
Modifier and Type | Method and Description |
---|---|
InstrumentationEventBuilder |
attributes(JSONObject attributes)
Sets attributes.
|
InstrumentationEvent |
buildEvent()
Validates and builds an InstrumentationEvent object.
|
InstrumentationEventBuilder |
endTime(long endTime)
Sets end time.
|
InstrumentationEventBuilder |
errorType(InstrumentationEvent.ErrorType errorType)
Sets error type.
|
InstrumentationEventBuilder |
eventType(InstrumentationEvent.EventType eventType)
Sets event type.
|
static InstrumentationEventBuilder |
getInstance(AnalyticsManager analyticsManager,
Context context)
Returns an instance of this class.
|
InstrumentationEventBuilder |
marks(JSONObject marks)
Sets marks.
|
InstrumentationEventBuilder |
name(java.lang.String name)
Sets name.
|
InstrumentationEventBuilder |
page(JSONObject page)
Sets page.
|
InstrumentationEventBuilder |
previousPage(JSONObject previousPage)
Sets previous page.
|
InstrumentationEventBuilder |
schemaType(InstrumentationEvent.SchemaType schemaType)
Sets schema type.
|
InstrumentationEventBuilder |
senderContext(JSONObject senderContext)
Sets sender context.
|
InstrumentationEventBuilder |
senderId(java.lang.String senderId)
Sets sender ID.
|
InstrumentationEventBuilder |
senderParentId(java.lang.String senderParentId)
Sets sender parent ID.
|
InstrumentationEventBuilder |
sessionId(java.lang.String sessionId)
Sets session ID.
|
InstrumentationEventBuilder |
sessionStartTime(long sessionStartTime)
Sets session start time.
|
InstrumentationEventBuilder |
startTime(long startTime)
Sets start time.
|
public static final InstrumentationEventBuilder getInstance(AnalyticsManager analyticsManager, Context context)
analyticsManager
- Instance of AnalyticsManager.context
- Context.public InstrumentationEventBuilder startTime(long startTime)
startTime
- Start time.public InstrumentationEventBuilder endTime(long endTime)
endTime
- End time.public InstrumentationEventBuilder name(java.lang.String name)
name
- Name.public InstrumentationEventBuilder attributes(JSONObject attributes)
attributes
- Attributes.public InstrumentationEventBuilder sessionId(java.lang.String sessionId)
sessionId
- Session ID.public InstrumentationEventBuilder senderId(java.lang.String senderId)
senderId
- Sender ID.public InstrumentationEventBuilder senderContext(JSONObject senderContext)
senderContext
- Sender context.public InstrumentationEventBuilder schemaType(InstrumentationEvent.SchemaType schemaType)
schemaType
- Schema type.public InstrumentationEventBuilder eventType(InstrumentationEvent.EventType eventType)
eventType
- Event type.public InstrumentationEventBuilder errorType(InstrumentationEvent.ErrorType errorType)
errorType
- Error type.public InstrumentationEventBuilder senderParentId(java.lang.String senderParentId)
senderParentId
- Sender parent ID.public InstrumentationEventBuilder sessionStartTime(long sessionStartTime)
sessionStartTime
- Session start time.public InstrumentationEventBuilder page(JSONObject page)
page
- Page.public InstrumentationEventBuilder previousPage(JSONObject previousPage)
previousPage
- Previous page.public InstrumentationEventBuilder marks(JSONObject marks)
marks
- Marks.public InstrumentationEvent buildEvent() throws InstrumentationEventBuilder.EventBuilderException
InstrumentationEventBuilder.EventBuilderException