Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)