registerResource
inline fun <R : Resource> registerResource(resourceCompanionObj: Resource.CompanionObj<R>, update: Boolean = true)(source)
Registers a resource.
Parameters
resourceCompanionObj
The companion object of the resource.
update
Whether to update the resource if it already exists.
R
The type of the resource.