RichUtils / pyxis.uzuki.live.richutilskt.utils / android.content.Context / checkNetwork

checkNetwork

fun Context.checkNetwork(): Int

get network connection check

if wifi is connected, will return 2 if mobile (3G, LTE) is connect, will return 1 else, return 0

Return
network state (check legend above)