Quick Start
Minimal setup to get WormaCeptor running in your Android app.
Initialization
Call WormaCeptorApi.init() as early as possible in your Application.onCreate():
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
WormaCeptorApi.init(
context = this,
logCrashes = true,
features = Feature.ALL,
leakNotifications = true,
)
}
}Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
context | Context | required | Application context |
logCrashes | Boolean | true | Capture uncaught exceptions and display them in the Crashes tab |
features | Set<Feature> | Feature.DEFAULT | Which features to enable (see Feature Toggles) |
leakNotifications | Boolean | true | Show system notifications when memory leaks are detected |
Selective Feature Initialization
// Enable only performance and WebSocket monitoring
WormaCeptorApi.init(
context = this,
features = setOf(
Feature.MEMORY_MONITOR,
Feature.FPS_MONITOR,
Feature.CPU_MONITOR,
Feature.WEBSOCKET_MONITOR,
),
)