import com.zixflow.sdk.ZixflowConfigBuilder
import com.zixflow.sdk.core.util.ZixflowLogLevel
import com.zixflow.sdk.data.model.Region
import com.zixflow.datapipelines.config.ScreenView
val config = ZixflowConfigBuilder(
applicationContext = this,
apiKey = "YOUR_API_KEY"
)
// Logging
.logLevel(ZixflowLogLevel.DEBUG) // NONE, ERROR, INFO, DEBUG
// Workspace region (default: Region.US)
.region(Region.US)
// Auto-tracking
.autoTrackDeviceAttributes(true) // default: true
.autoTrackActivityScreens(false) // default: false
.trackApplicationLifecycleEvents(true) // default: true
// How screen events are used (default: ScreenView.All)
.screenViewUse(ScreenView.All)
// Optional host overrides (override region-based defaults)
// .apiHost("api-events.zixflow.com/v1")
// .cdnHost("cdn.example.com")
// Event batching
.flushAt(20) // Send after 20 events (default: 20)
.flushInterval(30) // Or every 30 seconds (default: 30)
.build()