ZTActivityManager

class ZTActivityManager(activityRepository: ZTActivityRepository, segmentDuration: Long)

ZTActivityManager

Author

Alexandre Lemoult <a.lemoult@zhortech.com>

Constructors

ZTActivityManager
Link copied to clipboard
fun ZTActivityManager(activityRepository: ZTActivityRepository, segmentDuration: Long)

Types

Companion
Link copied to clipboard
object Companion

Functions

addActivityData
Link copied to clipboard
fun addActivityData(timestamp: Long, data: List<Any?>)
addSegment
Link copied to clipboard
fun addSegment(data: ByteArray): ZTSegment?
getMissingSegments
Link copied to clipboard
fun getMissingSegments(): List<Int>
notifyActivityStart
Link copied to clipboard
fun notifyActivityStart()
pushPendingActivities
Link copied to clipboard
fun pushPendingActivities(): Observable<ZTActivity>
start
Link copied to clipboard
fun start(deviceIdentifier: String?, attributes: ZTSerializable? = null)
stop
Link copied to clipboard
fun stop(): Single<ZTActivity>

Properties

activity
Link copied to clipboard
var activity: ZTActivity? = null
activityRepository
Link copied to clipboard
val activityRepository: ZTActivityRepository