DEV Community

Discussion on: Check network connectivity on Android in 10 lines

Collapse
 
neokleoys2005 profile image
Giorgos Neokleous

The Kotlin snippet could be an extension function on the Context object.

It would be less verbose!

Collapse
 
varunbarad profile image
Varun Barad

That my friend is a good idea and I did it. Rewrote that part as an extension function on Context class.

Thank you 💛