CrashHandler

actual class CrashHandler(platformContext: PlatformContext, sessionCapture: SessionCapture)
expect class CrashHandler(platformContext: PlatformContext, sessionCapture: SessionCapture)

Platform-specific crash handler that captures session data on uncaught exceptions.

On Android, installs a Thread.UncaughtExceptionHandler that saves crash session data to the Downloads folder via SessionFileExport. On iOS, uses NSSetUncaughtExceptionHandler to capture crash sessions. On other platforms, this is a no-op.

Usage:

CrashHandler(platformContext, sessionCapture).install()

Parameters

platformContext

The platform context for file access

sessionCapture

The session capture instance for recording events

actual class CrashHandler(platformContext: PlatformContext, sessionCapture: SessionCapture)
actual class CrashHandler(platformContext: PlatformContext, sessionCapture: SessionCapture)
actual class CrashHandler(platformContext: PlatformContext, sessionCapture: SessionCapture)
actual class CrashHandler(platformContext: PlatformContext, sessionCapture: SessionCapture)
actual class CrashHandler(platformContext: PlatformContext, sessionCapture: SessionCapture)
actual class CrashHandler(platformContext: PlatformContext, sessionCapture: SessionCapture)

Constructors

Link copied to clipboard
actual constructor(platformContext: PlatformContext, sessionCapture: SessionCapture)
expect constructor(platformContext: PlatformContext, sessionCapture: SessionCapture)
actual constructor(platformContext: PlatformContext, sessionCapture: SessionCapture)
actual constructor(platformContext: PlatformContext, sessionCapture: SessionCapture)
actual constructor(platformContext: PlatformContext, sessionCapture: SessionCapture)
actual constructor(platformContext: PlatformContext, sessionCapture: SessionCapture)
actual constructor(platformContext: PlatformContext, sessionCapture: SessionCapture)
actual constructor(platformContext: PlatformContext, sessionCapture: SessionCapture)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
actual fun install()
expect fun install()
actual fun install()
actual fun install()
actual fun install()
actual fun install()
actual fun install()
actual fun install()