ErrorReporterConfig

object ErrorReporterConfig

Contains all the required options and keys to configure the Bugsee SDK and its integration in TomTom Digital Cockpit.

Types

Link copied to clipboard
data class BugseeErrorReporterConfig(    val apiKey: String,     val optionsMap: HashMap<String, Any>,     val attributesMap: Map<String, Any?>)

Contains all the necessary parameters for configuring the Bugsee SDK.

Properties

Link copied to clipboard
val CONFIRMED_REPORT_TIMEOUT: Duration

The delay (usually short) between confirmation and sending an error report. It is used, for example, after attaching an audio recording to the created report.

const val ERROR_REPORTER_HAS_USER_CONSENT_BY_DEFAULT: Boolean = false

The default value of the flag stored using the ERROR_REPORTER_PREFERENCES_KEY_HAS_USER_CONSENT key.

const val ERROR_REPORTER_LAST_USER_CONSENT_VERSION_CODE_BY_DEFAULT: Long = 0

The default value of the version code, stored using the ERROR_REPORTER_PREFERENCES_KEY_LAST_USER_CONSENT_VERSION_CODE key.

const val ERROR_REPORTER_NEVER_ASK_USER_CONSENT_BY_DEFAULT: Boolean = false

Default value of the flag stored using the ERROR_REPORTER_PREFERENCES_KEY_NEVER_ASK_USER_CONSENT key.

Link copied to clipboard
const val ERROR_REPORTER_PREFERENCES_KEY_ENABLED: String

The key to store a flag indicating whether the error reporter is enabled. The default value is set using enabledByDefaultConfigKey.

const val ERROR_REPORTER_PREFERENCES_KEY_HAS_USER_CONSENT: String

The key to store a flag indicating whether the user has given their consent to collecting sensitive data.

The key for storing the application version code for which the user's consent was received previously.

The key to store a flag indicating whether the error reporter should never ask the user's consent.

Link copied to clipboard
const val ERROR_REPORTER_SHARED_PREFERENCES_NAME: String

The name of the SharedPreferences used to store the error reporter related configuration.

Link copied to clipboard
val REPORT_TIMEOUT: Duration

The delay between creating and sending an error report. It is used to send a report automatically, for example while driving. During the delay, the user can modify or cancel the report.

Functions

Link copied to clipboard
fun getBugseeErrorReporterConfig(hasUserConsent: Boolean, context: Context): ErrorReporterConfig.BugseeErrorReporterConfig

Returns all the necessary parameters for configuring the Bugsee SDK.