API Reference
Complete reference for all public types and members in the OneManage KMP SDK.
OneManage (object)
The top-level singleton entry point. All features are accessed through this object.
| Member | Type | Description |
|---|---|---|
initialize(context, config) |
Unit |
Bootstraps the SDK. Idempotent — safe to call multiple times. |
setUserId(userId) |
Unit |
Sets the user identity. Pass null to revert to anonymous. |
state |
StateFlow<SdkState> |
Observable SDK initialization state |
isInitialized |
Boolean |
true only when state is INITIALIZED |
logger |
Logger |
Remote structured logger |
bugReporter |
BugReporter |
Bug report submission |
configManager |
ConfigManager |
Remote config / feature flags |
OneManageConfig
Configuration passed to OneManage.initialize().
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
apiKey |
String |
✅ | — | Your OneManage API key (starts with sk-live-) |
appId |
String |
✅ | — | Your OneManage app identifier |
enableLogging |
Boolean |
❌ | false |
Prints internal SDK network logs to Logcat/console |
SdkState
Enum representing the SDK lifecycle state.
| State | Meaning |
|---|---|
UNINITIALIZED |
initialize() has not been called |
INITIALIZING |
Credentials are being validated with the server |
INITIALIZED |
SDK is fully ready — all features available |
FAILED |
Server returned 401/403 — check your API key and App ID |
Logger
Accessed via OneManage.logger.
| Method | Description |
|---|---|
info(tag, message) |
Enqueue an INFO log |
warn(tag, message) |
Enqueue a WARN log |
error(tag, message) |
Enqueue an ERROR log |
debug(tag, message) |
Enqueue a DEBUG log |
suspend flush() |
Immediately send all queued logs to the server |
BugReporter
Accessed via OneManage.bugReporter.
| Parameter | Type | Required | Default |
|---|---|---|---|
title |
String |
✅ | — |
description |
String |
✅ | — |
severity |
String |
❌ | "NORMAL" |
steps |
String? |
❌ | null |
submittedBy |
String? |
❌ | null |
metadata |
Map<String, String>? |
❌ | null |
ConfigManager
Accessed via OneManage.configManager.
| Method | Return | Description |
|---|---|---|
getString(key, default) |
String |
Read a string config value |
getBoolean(key, default) |
Boolean |
Read a boolean config value |
getInt(key, default) |
Int |
Read an integer config value |
getDouble(key, default) |
Double |
Read a double config value |
getLong(key, default) |
Long |
Read a long config value |
fetchRemoteConfig() |
Unit |
Trigger a background re-fetch |
configs |
StateFlow<Map<String, String>> |
Reactive map of all current config values |
Published Artifacts
All artifacts share Group ID io.github.iammohdzaki.onemanage.kmp:
| Artifact | Target |
|---|---|
onemanage |
KMP metadata (use this in commonMain) |
onemanage-android |
Android release |
onemanage-android-debug |
Android debug |
onemanage-iosarm64 |
iOS physical device |
onemanage-iossimulatorarm64 |
iOS Simulator (Apple Silicon) |
onemanage-iosx64 |
iOS Simulator (Intel) |
onemanage-jvm |
JVM / Desktop |
Support
- GitHub: github.com/iammohdzaki/OneManage-KMP
- Dashboard: onelog.onrender.com
- Issues: Open a GitHub issue with logs and reproduction steps