Swan Config
data class SwanConfig(val debug: Boolean = false, val production: Boolean = true, val pushNotifications: PushNotificationsConfig = PushNotificationsConfig.DEFAULT, val location: LocationConfig = LocationConfig.DEFAULT)
Host-app configuration for Swan.init.
Constructors
Link copied to clipboard
constructor(debug: Boolean = false, production: Boolean = true, pushNotifications: PushNotificationsConfig = PushNotificationsConfig.DEFAULT, location: LocationConfig = LocationConfig.DEFAULT)
Types
Link copied to clipboard
class Builder
Java-friendly mutable builder. Kotlin callers should prefer the primary SwanConfig constructor with named arguments.
Properties
Link copied to clipboard
Location-tracking gate. The SDK does NOT acquire location itself — host apps call Swan.updateLocation with their own coords. This flag is a documented opt-in surfaced via Swan.isLocationEnabled so host apps can branch on it to decide whether to compute coords.
Link copied to clipboard
Link copied to clipboard