CrashModule
class CrashModule(platformContext: PlatformContext, sessionCapture: SessionCapture) : Module<CrashState, CrashAction>
Module for automatic platform crash handler installation.
This module automatically installs the platform-specific CrashHandler during Logic initialization, capturing session data when crashes occur.
Usage:
val sessionCapture = SessionCapture()
val store = createStore {
module(IntrospectionModule(config, sessionCapture, platformContext))
module(CrashModule(platformContext, sessionCapture))
}Content copied to clipboard
Parameters
platformContext
Platform context for file storage
sessionCapture
Shared SessionCapture instance for crash data