TrapManager

The central manager and orchestrator of the collection platform system.

Parameters

application

The android Application instance.

config

The library config.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun addCustomEvent(custom: Any)

Adds a custom event to the event stream.

Link copied to clipboard
fun addCustomMetadata(key: String, value: Any)

Adds a custom key-value to the metadata event.

Link copied to clipboard

Stop and disable the data collection

Link copied to clipboard

Restart the data collection

Link copied to clipboard
fun halt(collector: TrapDatasource)

Stops and removes a collector from the platform.

Link copied to clipboard
open override fun onActivityCreated(activity: Activity, savedInstanceState: Bundle?)
Link copied to clipboard
open override fun onActivityDestroyed(activity: Activity)
Link copied to clipboard
open override fun onActivityPaused(activity: Activity)
Link copied to clipboard
open override fun onActivityResumed(activity: Activity)
Link copied to clipboard
open override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle)
Link copied to clipboard
open override fun onActivityStarted(activity: Activity)
Link copied to clipboard
open override fun onActivityStopped(activity: Activity)
Link copied to clipboard

Removes a custom key-value from the metadata event.

Link copied to clipboard
fun run(collector: TrapDatasource)

Adds a collector instance to the platform and starts it immediately.