Package-level declarations

Types

Link copied to clipboard
object FormatArgsSerializer : KSerializer<ImmutableList<Any>>
Link copied to clipboard
annotation class InternalKotoseUtilsApi

Marks internal API that should not be used by library consumers.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class PainterRes(@DrawableRes val res: Int? = null, val vector: ImageVector? = null, val bitmap: ImageBitmap? = null, val painter: Painter? = null)
Link copied to clipboard
@Serializable
actual data class PlatformStrRes
@Serializable
expect class PlatformStrRes

Wraps platform-native string resource identifiers.

@Serializable
actual data class PlatformStrRes
@Serializable
actual data class PlatformStrRes
Link copied to clipboard
actual object PlatformStrResSerializer : KSerializer<PlatformStrRes>
expect object PlatformStrResSerializer : KSerializer<PlatformStrRes>
actual object PlatformStrResSerializer : KSerializer<PlatformStrRes>
actual object PlatformStrResSerializer : KSerializer<PlatformStrRes>
Link copied to clipboard
object PluralStringResourceSerializer : KSerializer<PluralStringResource>
Link copied to clipboard
object StringResourceSerializer : KSerializer<StringResource>
Link copied to clipboard
@Serializable
class StrRes

Unified string resource wrapper supporting platform-native resources (PlatformStrRes), Compose Multiplatform resources (StringResource, PluralStringResource), and plain text.

Functions

Link copied to clipboard
fun KotoseUtilsConfig.androidContext(context: ERROR CLASS: Symbol not found for Context)

Provide Android Context so that PlatformStrRes.getStringSuspend can resolve string resources without a Compose scope.

Link copied to clipboard
fun StrRes.getString(context: ERROR CLASS: Symbol not found for Context): String?
fun StrRes.getString(resources: ERROR CLASS: Symbol not found for Resources): String?
Link copied to clipboard
Link copied to clipboard
inline fun <T> rememberResource(crossinline block: @DisallowComposableCalls ERROR CLASS: Symbol not found for Resources.() -> T): T
inline fun <T> rememberResource(key1: Any?, crossinline block: @DisallowComposableCalls ERROR CLASS: Symbol not found for Resources.() -> T): T
inline fun <T> rememberResource(vararg keys: Any?, crossinline block: @DisallowComposableCalls ERROR CLASS: Symbol not found for Resources.() -> T): T
inline fun <T> rememberResource(key1: Any?, key2: Any?, crossinline block: @DisallowComposableCalls ERROR CLASS: Symbol not found for Resources.() -> T): T
inline fun <T> rememberResource(key1: Any?, key2: Any?, key3: Any?, crossinline block: @DisallowComposableCalls ERROR CLASS: Symbol not found for Resources.() -> T): T
Link copied to clipboard
inline fun <T> rememberResourceAsState(crossinline block: @DisallowComposableCalls ERROR CLASS: Symbol not found for Resources.() -> T): State<T>
inline fun <T> rememberResourceAsState(key1: Any?, crossinline block: @DisallowComposableCalls ERROR CLASS: Symbol not found for Resources.() -> T): State<T>
inline fun <T> rememberResourceAsState(vararg keys: Any?, crossinline block: @DisallowComposableCalls ERROR CLASS: Symbol not found for Resources.() -> T): State<T>
inline fun <T> rememberResourceAsState(key1: Any?, key2: Any?, crossinline block: @DisallowComposableCalls ERROR CLASS: Symbol not found for Resources.() -> T): State<T>
inline fun <T> rememberResourceAsState(key1: Any?, key2: Any?, key3: Any?, crossinline block: @DisallowComposableCalls ERROR CLASS: Symbol not found for Resources.() -> T): State<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun strResOf(string: String): StrRes
Link copied to clipboard
fun Int.toPlatformStrRes(formatArgs: ImmutableList<Any> = persistentListOf()): PlatformStrRes
fun Int.toPlatformStrRes(quantity: Int, formatArgs: ImmutableList<Any> = persistentListOf()): PlatformStrRes
Link copied to clipboard
fun Int.toStrRes(formatArgs: ImmutableList<Any> = persistentListOf()): StrRes
fun Int.toStrRes(quantity: Int, formatArgs: ImmutableList<Any> = persistentListOf()): StrRes
fun StringResource.toStrRes(): StrRes
fun PluralStringResource.toStrRes(quantity: Int): StrRes