Herald
class Herald : EventTrackerService, PropertyTrackerService, IdentifiableUserService, AnalyticsLifecycleService, ConsentService(source)
The fan-out. Holds every registered vendor and forwards each call to all of them.
It implements all five capabilities, so one instance can be bound to whichever of them your classes depend on. Bind it to those interfaces and depend on the interfaces: a ViewModel takes an EventTrackerService, not a Herald.
Build one with the Herald function.
Types
Link copied to clipboard
class Provider(val name: String, val events: EventTrackerService? = null, val properties: PropertyTrackerService? = null, val identity: IdentifiableUserService? = null, val lifecycle: AnalyticsLifecycleService? = null, val consent: ConsentService? = null)
One registered vendor: a name and whichever of the five capabilities it has.