StringLoader

interface StringLoader

Loads a String based on a provided identifier.

Inheritors

Functions

Link copied to clipboard
abstract 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
abstract 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.