-
Notifications
You must be signed in to change notification settings - Fork 0
InternetUtils
Shanti Ranjan Das edited this page Jan 25, 2020
·
2 revisions
-
getConnectivityManager(context: Context = AndyExtApp.appCtx): ConnectivityManager?
GetConnectivityManager
object with application context. -
isNetworkConnected(): Boolean
Checks weather network is connected or not. Requires permissions for checking internet. -
getNetworkType(): String?
Method to check the network type. Like 2G,3G, Wifi, CDMA and more. -
checkForRoaming(): Boolean
Returns true if a phone is in roaming network.