AndroidBites : Let's try-catch ?: Value

Subscribe to my newsletter and never miss my upcoming articles

Taking inspiration from getOrNull type function in Kotlin, I ended up creating this extension which has helped me out in multiple cases, Specially dealings with JsonParsing.

tryOrNull_50 (1).png

Highly recommend the following extended explanation of how this extension work, Do checkout and stay tuned for more content.

Happy Hacking!

No Comments Yet