init

fun init(    context: Context,     accessToken: String,     userAgent: String)

Initialize EventsServiceInterface and TelemetryService that need to send event to Mapbox Telemetry server.

Parameters

context

Android context

accessToken

Mapbox access token

userAgent

Use agent indicate source of metrics