MapboxMetricsReporter

object MapboxMetricsReporter : MetricsReporter

Default implementation of MetricsReporter interface.

Functions

addEvent
Link copied to clipboard
open override fun addEvent(metricEvent: MetricEvent)
Adds an event to the metrics reporter when this event occurs.
disable
Link copied to clipboard
fun disable()
Disables metrics reporting and ends mapboxTelemetry session.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
init
Link copied to clipboard
fun init(context: Context, accessToken: String, userAgent: String)
Initialize mapboxTelemetry that need to send event to Mapbox Telemetry server.
removeObserver
Link copied to clipboard
open override fun removeObserver()
Remove the MetricsObserver.
setMetricsObserver
Link copied to clipboard
open override fun setMetricsObserver(metricsObserver: MetricsObserver)
Adds a MetricsObserver that will be triggered when a metric event is handled.
toggleLogging
Link copied to clipboard
fun toggleLogging(isDebugLoggingEnabled: Boolean)
Toggle whether or not you'd like to log mapboxTelemetry events.
toString
Link copied to clipboard
open fun toString(): String