setUri

fun setUri(uri: URI)

Updates the source image URI.

An URI is a combination of a protocol and a resource path. The following URI protocol schemes are supported:

  • http://

  • load resources using HyperText Transfer Protocol

  • file://

  • load resources from the Android file system

  • asset://

  • load resources from the binary packaged assets folder

Parameters

uri

An Image uri


fun setUri(uri: String?)

Updates the source image URI.

An URI is a combination of a protocol and a resource path. The following URI protocol schemes are supported:

  • http://

  • load resources using HyperText Transfer Protocol

  • file://

  • load resources from the Android file system

  • asset://

  • load resources from the binary packaged assets folder

Parameters

uri

An image uri