loadString

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.

Return

The associated String resources or defaultValue if no such resource was found.

Parameters

identifier

The identifier to find the String resource for.

defaultValue

The String to return if no match was found for the identifier.