Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 23 days 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T09:08:31.000Z (6 months ago)
- Last Synced: 2024-05-22T10:33:18.409Z (6 months ago)
- Topics: android, android-snackbar, kotlin, rx, rxjava, rxkotlin, snackbar
- Language: Kotlin
- Homepage:
- Size: 325 KB
- Stars: 6
- Watchers: 3
- 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/v/unhappychoice/rxsnackbar.svg)](https://jitpack.io/#unhappychoice/rxsnackbar)
[![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/unhappychoice/RxSnackbar.svg)](https://libraries.io/github/unhappychoice/RxSnackbar)
![GitHub](https://img.shields.io/github/license/unhappychoice/RxSnackbar.svg)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)