https://github.com/unhappychoice/rxsnackbar
:thought_balloon: Rx adapter for Android Snackbar
https://github.com/unhappychoice/rxsnackbar
android android-snackbar kotlin rx rxjava rxkotlin snackbar
Last synced: about 1 year ago
JSON representation
:thought_balloon: Rx adapter for Android Snackbar
- Host: GitHub
- URL: https://github.com/unhappychoice/rxsnackbar
- Owner: unhappychoice
- License: mit
- Created: 2016-05-14T04:50:35.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2025-03-26T06:09:02.000Z (about 1 year ago)
- Last Synced: 2025-04-13T14:07:21.253Z (about 1 year ago)
- Topics: android, android-snackbar, kotlin, rx, rxjava, rxkotlin, snackbar
- Language: Kotlin
- Homepage:
- Size: 403 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# RxSnackbar
[](https://jitpack.io/#unhappychoice/rxsnackbar)
[](https://libraries.io/github/unhappychoice/RxSnackbar)

This is RxJava / RxKotlin adapter for Android Snackbar
## Usage
### Kotlin
```kotlin
Observable.just(true)
.withNextSnackBar(view, "Data is coming!") // will show "Number is comming!"
.subscribe()
// will show "Some data" and Undo action
Observable.just("Some data")
.withNextSnackBar(view, actionName = "Undo") { view -> someUndoAction() }
.subscribe()
```
## Installation
### Gradle
```groovy
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
dependencies {
compile 'com.github.unhappychoice:rxsnackbar:$version'
}
```
### Maven
```xml
jitpack.io
https://jitpack.io
com.github.unhappychoice
rxsnackbar
$version
```
## LICENSE
see [LICENSE](./LICENSE)