isNetworkAvailable

@RequiresPermission(anyOf = ["android.permission.ACCESS_NETWORK_STATE"])
fun isNetworkAvailable(): Boolean

Checks if there is internet connection.

Return

true if there is internet connection otherwise returns false.