Configuration

data class Configuration @JvmOverloads constructor(val endpoint: String, val sourceSlug: String, val appId: String, val debugMode: Boolean = false, val pushNotifications: PushNotificationsConfiguration = PushNotificationsConfiguration(), val language: String? = null, val firebaseProjectId: String? = null, val automaticTrackingOptions: AutomaticTrackingOptions = AutomaticTrackingOptions())

Configuration of the SDK

Throws

if sourceSlug is blank

Constructors

Link copied to clipboard
constructor(endpoint: String, sourceSlug: String, appId: String, debugMode: Boolean = false, pushNotifications: PushNotificationsConfiguration = PushNotificationsConfiguration(), language: String? = null, firebaseProjectId: String? = null, automaticTrackingOptions: AutomaticTrackingOptions = AutomaticTrackingOptions())

Properties

Link copied to clipboard

application id. If you are using Firebase, you should use R.string.google_app_id

Link copied to clipboard

configuration of automatic tracking options

Link copied to clipboard

if enabled, includes additional logs. Should be disabled in production

Link copied to clipboard

Meiro Data Platform endpoint

Link copied to clipboard

Firebase project id. If you are using Firebase, you should use R.string.project_id

Link copied to clipboard

language of the application. Used if you want to target users by language

Link copied to clipboard

push notifications configuration

Link copied to clipboard

Meiro CDP source slug. Identifies the source events are collected into, events are sent to <endpoint>/collect/<sourceSlug>. Must not be blank.