Param

annotation class Param(val name: String, val strategy: TrackStrategy = TrackStrategy.DEFAULT)

Annotation for parameter of event method.

This annotation provides parameter name and specify behaviour for parameter value conversion.

Example usage:

// ...
@Event
fun exampleEvent(
@Param(
name = "Parameter name",
strategy = TrackStrategy.SKIP_IF_NULL,
) count: Int?,
)
// ...

Parameters

name

Name of parameter that would be tracked. Required parameter.

strategy

Specify value conversion behavior. By default, it is set to TrackStrategy.DEFAULT. More about strategies: TrackStrategy.

See also

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard