Companion

A companion object for utility functions related to string resources and key retrieval.

Functions

Link copied to clipboard

Retrieves the resource entry name corresponding to the provided string resource ID. The result is trimmed and null is returned if the resulting string is blank.

fun getKeyFromResources(resources: Resources, @AnyRes id: Int): String?