Version 2 of Oops! No Internet! library released!

Photo by brandon siu on Unsplash

A short introduction… 🚀

Dialogs

Preview of NoInternetDialogPendulum
Preview of NoInternetDialogSignal

Snackbar

Preview of NoInternetSnackbarFire

Lifecycle-Aware Component

We are now using the Maven repository for our library 😎 Yeaaa…

How to use… 🤨

android {

// ...

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

}

dependencies {
// ...

// Material Components for Android. Replace the version with the latest version of Material Components library.
implementation 'com.google.android.material:material:x.x.x'

implementation 'org.imaginativeworld.oopsnointernet:oopsnointernet:x.x.x'
}
// Kotlin
class MainActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

// ...

// No Internet Dialog: Pendulum
NoInternetDialogPendulum.Builder(
this,
lifecycle
).build()


// No Internet Dialog: Signal
NoInternetDialogSignal.Builder(
this,
lifecycle
).build()


// No Internet Snackbar: Fire
NoInternetSnackbarFire.Builder(
binding.mainContainer,
lifecycle
).build()

}
}

What next… 🤔

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store