Android Configuration
Configure the Azeoo SDK when you call AzeooSDK.initialize(...). User token/profile data are not part of config; they are passed later in connectUser(...).
Config (AzeooConfig)β
Passed at initialize:
val config = AzeooConfig(
locale = "en",
analyticsEnabled = true,
offlineEnabled = true,
)
AzeooSDK.initialize(
context = this,
apiKey = "your-sdk-api-key",
config = config,
theme = themeConfig, // optional
deepLinks = deepLinkConfig, // optional
safeArea = safeAreaConfig, // optional
callback = { error ->
if (error != null) {
// Handle initialization error
}
},
)
Theme (AzeooThemeConfig)β
Optional theme at initialize:
val themeConfig = AzeooThemeConfig(
lightPrimaryColor = 0xFF0284C7.toInt(),
lightSecondaryColor = 0xFF7dd3fc.toInt(),
darkPrimaryColor = 0xFF38bdf8.toInt(),
darkSecondaryColor = 0xFF0ea5e9.toInt(),
successColor = 0xFF10b981.toInt(),
errorColor = 0xFFef4444.toInt(),
warningColor = 0xFFf59e0b.toInt(),
)
Safe area (AzeooSafeAreaConfig)β
Optional safe area at initialize:
val safeAreaConfig = AzeooSafeAreaConfig(
top = true,
bottom = true,
left = true,
right = true,
)
Deep links (AzeooDeepLinkConfig)β
Optional deep link config at initialize:
val deepLinkConfig = AzeooDeepLinkConfig(
scheme = "yourapp",
host = "yourapp.com",
pathPrefix = "/sdk",
)
Runtime theme changesβ
After connectUser, use the theme API:
AzeooSDK.shared.theme.setDarkMode { result ->
result.onFailure { error -> /* handle error */ }
}
AzeooSDK.shared.theme.setPrimaryColor(0xFF0284C7, callback = { result ->
result.onFailure { error -> /* handle error */ }
})
AzeooSDK.shared.theme.setLightMode { result ->
result.onFailure { error -> /* handle error */ }
}
AzeooSDK.shared.theme.getCurrentTheme { result ->
result.onSuccess { theme -> /* use current theme */ }
result.onFailure { error -> /* handle error */ }
}
Next stepsβ
- Quick Start β init and connect
- SDK API β user, theme, modules
- API Reference β Full API