resourceToUri

fun Int.resourceToUri(context: Context): Uri

Get uri to any resource type via given Resource Instance

Return

  • Uri to resource by given id

Parameters

context
  • Context

Throws

if the given ID does not exist.