GlobalContext

This class allows the attachment of context entities to all events, or all events of a chosen type.

Multiple GlobalContext rules can be provided on tracker creation, using the GlobalContextsConfiguration class. Alternatively, GlobalContexts can be added and removed at runtime, using GlobalContextsController.add and GlobalContextsController.remove methods.

These methods can be accessed directly from the tracker like this: tracker.globalContexts.add("rule_name", GlobalContext)

See also

Constructors

Link copied to clipboard
constructor(contextGenerator: ContextGenerator)
constructor(staticContexts: List<SelfDescribingJson>)
constructor(staticContexts: List<SelfDescribingJson>, ruleset: SchemaRuleSet?)
constructor(staticContexts: List<SelfDescribingJson>, filter: FunctionalFilter?)
constructor(generator: FunctionalGenerator, ruleset: SchemaRuleSet?)
constructor(generator: FunctionalGenerator, filter: FunctionalFilter? = null)

Functions