Resource

actual class Resource(val name: String)
expect class Resource(name: String)
actual class Resource(val name: String)
actual class Resource(val name: String)
actual class Resource(val name: String)

Constructors

Link copied to clipboard
actual constructor(name: String)
expect constructor(name: String)
actual constructor(name: String)
actual constructor(name: String)
actual constructor(name: String)

Properties

file
Link copied to clipboard
private val file: File
private val file: CPointer<FILE>?
private val file: File
Link copied to clipboard
actual val name: String
expect val name: String
actual val name: String
actual val name: String
actual val name: String
path
Link copied to clipboard
private val path: String?
private val path: String
Link copied to clipboard
private val pathParts: List<String>

Functions

Link copied to clipboard
actual suspend fun exists(): Boolean
expect suspend fun exists(): Boolean
actual suspend fun exists(): Boolean
actual suspend fun exists(): Boolean
actual suspend fun exists(): Boolean
Link copied to clipboard
Link copied to clipboard
suspend fun loadJsonFile(filePath: String): String?
Link copied to clipboard
actual suspend fun readText(): String
expect suspend fun readText(): String
actual suspend fun readText(): String
actual suspend fun readText(): String
actual suspend fun readText(): String
Link copied to clipboard
Link copied to clipboard
actual suspend fun writeText(text: String)
expect suspend fun writeText(text: String)
actual suspend fun writeText(text: String)
actual suspend fun writeText(text: String)
actual suspend fun writeText(text: String)
Link copied to clipboard
fun Resource.writeTextTask(text: String): Task<Unit>