put

open fun put(resourceId: Int, data: Any)(source)

Adds a mapping from the specified id to the specified value, replacing the previous mapping from the specified key if there was one.

Parameters

resourceId

Id of the resource you want to add. It is suggested to use R.id.* to preserve cross functionality and avoid conflicts.

data

The data you want to associate with the resourceId.