WormaCeptor

Quick Start

Minimal setup to get WormaCeptor running in your Android app.

Initialization

Call WormaCeptorApi.init() as early as possible in your Application.onCreate():

MyApplication.kt
class MyApplication : Application() {
    override fun onCreate() {
        super.onCreate()

        WormaCeptorApi.init(
            context = this,
            logCrashes = true,
            features = Feature.ALL,
            leakNotifications = true,
        )
    }
}

Parameters

ParameterTypeDefaultDescription
contextContextrequiredApplication context
logCrashesBooleantrueCapture uncaught exceptions and display them in the Crashes tab
featuresSet<Feature>Feature.DEFAULTWhich features to enable (see Feature Toggles)
leakNotificationsBooleantrueShow 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,
    ),
)

On this page