private static boolean isNetworkUnmetered(ConnectivityManager connectivityManager) {
    return !ConnectivityManagerCompat.isActiveNetworkMetered(connectivityManager);
  }
Returns true if the currently active network is unmetered.
jobdispatcher/src/main/java/com/firebase/jobdispatcher/ConstraintChecker.java