TrackSegmentEventTask

open class TrackSegmentEventTask : SDKTask

Transform Segment's event attribute format to MoEngage format and track an event.

Author

Umang Chamaria Date: 29/04/19

Constructors

TrackSegmentEventTask
Link copied to clipboard
open fun TrackSegmentEventTask(context: Context, eventName: String, eventAttributes: JSONObject)

Functions

createTaskResult
Link copied to clipboard
open fun createTaskResult(payload: Any, taskState: Boolean): TaskResult
execute
Link copied to clipboard
open fun execute(): TaskResult
The business logic which needs to be run on the worker thread.
getTaskTag
Link copied to clipboard
open fun getTaskTag(): String
Tag name of the task
isSynchronous
Link copied to clipboard
open fun isSynchronous(): Boolean
Tells whether the task can asynchronous or not.