commonMain.io.github.mirzemehdi.kmpauth_uihelper.generated.resources.Res.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kmpauth-uihelper-jvm Show documentation
Show all versions of kmpauth-uihelper-jvm Show documentation
Kotlin Multiplatform Authentication Library targeting ios and android
@file:OptIn(
org.jetbrains.compose.resources.InternalResourceApi::class,
org.jetbrains.compose.resources.ExperimentalResourceApi::class,
)
package io.github.mirzemehdi.kmpauth_uihelper.generated.resources
import kotlin.ByteArray
import kotlin.OptIn
import kotlin.String
import org.jetbrains.compose.resources.ExperimentalResourceApi
import org.jetbrains.compose.resources.getResourceUri
import org.jetbrains.compose.resources.readResourceBytes
internal object Res {
/**
* Reads the content of the resource file at the specified path and returns it as a byte array.
*
* Example: `val bytes = Res.readBytes("files/key.bin")`
*
* @param path The path of the file to read in the compose resource's directory.
* @return The content of the file as a byte array.
*/
@ExperimentalResourceApi
public suspend fun readBytes(path: String): ByteArray =
readResourceBytes("composeResources/io.github.mirzemehdi.kmpauth_uihelper.generated.resources/" +
path)
/**
* Returns the URI string of the resource file at the specified path.
*
* Example: `val uri = Res.getUri("files/key.bin")`
*
* @param path The path of the file in the compose resource's directory.
* @return The URI string of the file.
*/
@ExperimentalResourceApi
public fun getUri(path: String): String =
getResourceUri("composeResources/io.github.mirzemehdi.kmpauth_uihelper.generated.resources/" +
path)
public object drawable
public object string
public object array
public object plurals
public object font
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy