getMapped

open fun getMapped(key: String, mapping: SettingsGetMapping): <Error class: unknown class>?

Gets the value that is stored at @key in @settings, subject to application-level validation/mapping.

You should use this function when the application needs to perform some processing on the value of the key (for example, parsing). The

Return

the result, which may be null

Parameters

key

the key to get the value for

mapping

the function to map the value in the settings database to the value used by the application