DefaultStringLoader

Default implementation of a StringLoader.

Parameters

context

the Context from which to load the string resources

Default implementation of a StringLoader.

Default implementation of a StringLoader.

Parameters

bundle

the NSBundle from which to load the string resource

table

the string table to search in. If tableName is 'nullor is an empty string, the method attempts to use the table in Localizable.strings`

Constructors

Link copied to clipboard
constructor(context: Context?)
actual constructor()

Default implementation of a StringLoader.

expect constructor()
constructor(bundle: NSBundle, table: String?)
actual constructor()

Default implementation of a StringLoader.

Functions

Link copied to clipboard
actual open override fun loadQuantityString(identifier: String, quantity: Int, defaultValue: String): String

Attempts to load grammatically correct pluralization of the given string identifier. If no match is found, the defaultValue will be returned.

expect open override fun loadQuantityString(identifier: String, quantity: Int, defaultValue: String): String

Attempts to load grammatically correct pluralization of the given string identifier. If no match is found, the defaultValue will be returned.

actual open override fun loadQuantityString(identifier: String, quantity: Int, defaultValue: String): String

Attempts to load grammatically correct pluralization of the given string identifier. If no match is found, the defaultValue will be returned.

Link copied to clipboard
actual open override fun loadString(identifier: String, defaultValue: String): String

Attempts to load the string resource associated with a given identifier. If no match is found, the defaultValue will be returned.

expect open override fun loadString(identifier: String, defaultValue: String): String

Attempts to load the string resource associated with a given identifier. If no match is found, the defaultValue will be returned.

actual open override fun loadString(identifier: String, defaultValue: String): String

Attempts to load the string resource associated with a given identifier. If no match is found, the defaultValue will be returned.