Skip to content

Takahana/AndroidConnectivityWatcher

Repository files navigation

AndroidConnectivityWatcher

Monitor Internet Connectivity

  val watcher = ConnectivityWatcher(this)
  //..
  
  
  lifecycleScope.launchWhenResumed {
        watcher.status.collect { status ->
            if (!status.isEnabled()) {
                showToast("No Internet connection")
            }
        }
    }

About

Monitor Internet status

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages