ComponentKeyUtils

Functions

Link copied to clipboard
fun generateGlobalKey(parentContext: ComponentContext, parentComponent: Component?, childComponent: Component): String

Generate a global key for the given component that is unique among all of this component's children of the same type. If a manual key has been set on the child component using the .key() method, return the manual key.

Link copied to clipboard
Link copied to clipboard
fun getKeyWithSeparator(vararg keyParts: Any): String
fun getKeyWithSeparator(parentGlobalKey: String, key: String): String
Link copied to clipboard
Link copied to clipboard
fun mapToSimpleName(key: String, typeToIdMap: Map<Any, Int>): String?