PlatformStrRes

@Serializable
actual data class PlatformStrRes
@Serializable
expect class PlatformStrRes

Wraps platform-native string resource identifiers.

On Android, this holds @StringRes/@PluralsRes resource IDs and resolves them via the Android resource system.

On iOS, this holds a localization key and resolves it via NSBundle.localizedStringForKey. Format args are applied after resolution, supporting both Java-style (%1$s) and iOS-style (%1$@, %lld) specifiers.

@Serializable
actual data class PlatformStrRes
@Serializable
actual data class PlatformStrRes

Constructors

Link copied to clipboard
constructor(@StringRes stringRes: Int? = null, @PluralsRes pluralRes: Int? = null, quantity: Int? = null, formatArgs: ImmutableList<Any> = persistentListOf())
constructor(key: String = "", formatArgs: ImmutableList<Any> = persistentListOf())
constructor(key: String = "", formatArgs: ImmutableList<Any> = persistentListOf())

Properties

Link copied to clipboard
@Serializable(with = FormatArgsSerializer::class)
val formatArgs: ImmutableList<Any>
@Serializable(with = FormatArgsSerializer::class)
val formatArgs: ImmutableList<Any>
@Serializable(with = FormatArgsSerializer::class)
val formatArgs: ImmutableList<Any>
Link copied to clipboard
val key: String
val key: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
actual fun getString(): String?
expect fun getString(): String?
actual fun getString(): String?
actual fun getString(): String?
Link copied to clipboard
actual suspend fun getStringSuspend(): String?

Resolves this resource outside a Compose scope using the context provided via KotoseUtilsConfig.androidContext.

expect suspend fun getStringSuspend(): String?

Non-composable suspend resolution.

actual suspend fun getStringSuspend(): String?
actual suspend fun getStringSuspend(): String?
Link copied to clipboard