IntrospectionLogic

Logic class for introspection and session capture operations.

The SessionCapture is created externally and passed to both IntrospectionModule and DevToolsModule, ensuring a single point of capture:

val sessionCapture = SessionCapture()
val introspectionModule = IntrospectionModule(config, sessionCapture, platformContext)
val devToolsModule = DevToolsModule(devToolsConfig, scope, sessionCapture)

// Install crash handler (any platform)
CrashHandler(platformContext, sessionCapture).install()

// Export session to Downloads
val path = introspectionLogic.exportSessionToDownloads()

Functions

Link copied to clipboard
open suspend override fun beforeReset()
Link copied to clipboard
fun cleanup()

Cleans up resources.

Link copied to clipboard

Exports the current session with crash information.

Link copied to clipboard
fun exportCrashSessionToDownloads(throwable: Throwable, fileName: String? = null): String

Exports the current session with crash information to the device's Downloads folder.

Link copied to clipboard

Exports the current session as a JSON string.

Link copied to clipboard
fun exportSessionToDownloads(fileName: String? = null): String

Exports the current session to the device's Downloads folder.

Link copied to clipboard

Gets the session capture instance for crash handling and session export.