service / com.scurab.android.uitor.hierarchy / IdsHelper

IdsHelper

object IdsHelper

Class to help you with android IDs

Properties

RClass

var RClass: Class<*>?

Functions

getAllResources

Get all resources for serialization

fun getAllResources(res: Resources): Map<String, List<ResourceDTO>>

getNameForId

Returns name for particular id If id is not defined {@link android.view.View#getId()} returns -1, this method returns "undefined". If the id is not found (maybe android.internal stuff) null is returned.

fun getNameForId(id: Int): String

getType

Get type of particular id. com.scurab.android.uitor.hierarchy.IdsHelper.RefType.unknown is returned if not found.

fun getType(id: Int): RefType

loadValues

Preload names of IDs defined in the app

fun loadValues(Rclass: Class<*>): Unit