Skip to content

InternetUtils

Shanti Ranjan Das edited this page Jan 25, 2020 · 2 revisions
  • getConnectivityManager(context: Context = AndyExtApp.appCtx): ConnectivityManager?
    Get ConnectivityManager 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.

Clone this wiki locally