SessionFileExport

actual class SessionFileExport(platformContext: PlatformContext)
expect class SessionFileExport(platformContext: PlatformContext)

Platform-specific session file export.

Handles saving session JSON data to the device's file system. On Android, uses MediaStore for scoped storage (API 29+) or direct file access. On iOS, uses NSFileManager to write to the Documents directory. On other platforms, throws UnsupportedOperationException.

Usage:

val exporter = SessionFileExport(platformContext)
val path = exporter.saveToDownloads(jsonString, "session.json")

Parameters

platformContext

The platform context for file access

actual class SessionFileExport(platformContext: PlatformContext)
actual class SessionFileExport(platformContext: PlatformContext)
actual class SessionFileExport(platformContext: PlatformContext)
actual class SessionFileExport(platformContext: PlatformContext)
actual class SessionFileExport(platformContext: PlatformContext)
actual class SessionFileExport(platformContext: PlatformContext)

Constructors

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

Functions

Link copied to clipboard
actual fun saveToDownloads(json: String, fileName: String): String
expect fun saveToDownloads(json: String, fileName: String): String
actual fun saveToDownloads(json: String, fileName: String): String
actual fun saveToDownloads(json: String, fileName: String): String
actual fun saveToDownloads(json: String, fileName: String): String
actual fun saveToDownloads(json: String, fileName: String): String
actual fun saveToDownloads(json: String, fileName: String): String
actual fun saveToDownloads(json: String, fileName: String): String