@CheckResult open static fun create(@NonNull category: String, @NonNull method: String, @Nullable object: String?): TelemetryEvent
(source)
Create a new event with mandatory category, method and object.
category
- identifier. The category is a group name for events and helps to avoid name conflicts.
method
- identifier. This describes the type of event that occured, e.g. click, keydown or focus.
object
- identifier. This is the object the event occured on, e.g. reload_button or urlbar.
@CheckResult open static fun create(@NonNull category: String, @NonNull method: String, @Nullable object: String?, value: String): TelemetryEvent
(source)
Create a new event with mandatory category, method, object and value.
category
- identifier. The category is a group name for events and helps to avoid name conflicts.
method
- identifier. This describes the type of event that occured, e.g. click, keydown or focus.
object
- identifier. This is the object the event occured on, e.g. reload_button or urlbar.
value
- This is a user defined value, providing context for the event.