Ktx

Diff

To parse String to URI in Kotlin (Traditional Way )

We do

val uri = Uri.parse(myUriString)

and by using KTX, we can simplify above code to

val uri = myUriString.toUri()

SO | android ktx vs normal

References

android dev | ktx