UmamiOptionsBuilder
A DSL-style builder for constructing UmamiOptions instances, providing a flexible way to configure the Umami client.
This builder allows setting various properties such as the API endpoint, tracking parameters, and technical configurations like the HTTP client engine and coroutine scope. After configuring the desired options, the internal build method is called to create an immutable UmamiOptions object.
Example usage:
val umami = Umami(websiteId = "your-website-id") {
baseUrl("https://my.umami.instance")
hostname("myapp.com")
// ... other configurations
}Properties
The coroutine scope for background tasks. Defaults to Dispatchers.Default.
The maximum number of events to hold in the queue. Defaults to EVENT_QUEUE_CAPACITY.
A suspendable map for managing custom HTTP headers. Defaults to InMemoryHeaders.
The Ktor HTTP client engine for network requests. Defaults to the platform's default engine.
The logger for internal library messages. Defaults to DefaultUmamiLogger.
The screen size of the user's device (e.g., "1920x1080").