Event

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class Event(val name: String = "", val skipAdapters: Array<KClass<out TrackerAdapter>> = [])

Annotation for @Tracker-marked interface to provide additional event information.

All methods of tracker should be annotated with this annotation. It has no required parameters. When no string passed to name parameter trckr processor use name of this method as event name.

All adapters passed in skipAdapters array would be not used to track this event.

Example event:

// ...
@Event(
name = "Example event name",
skipAdapters = [ExampleAdapter::class],
)
fun exampleEvent()
// ...

Parameters

name

Name of the event, that be used to track this event.

skipAdapters

Array of adapters, for which this event should not be tracked by trckr.

See also

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard