📮 a micro-library to simplifies a simple communication between activity, fragment, services, etc. through reactive-pattern.
Step 1. Add the JitPack repository to your build file
allprojects{repositories{
...
maven{url'https://jitpack.io'}}}Step 2. Add the dependency
dependencies{implementation'com.github.isfaaghyth:notify:1.0'}send notify
Notify.send("Hai")subscriber
composite.add(Notify.listen(String::class.java, NotifyProvider(), Consumer {
result -> Log.d("Notify", result)
}))or with throwable like this
composite.add(Notify.listen(String::class.java, NotifyProvider(), Consumer {
result -> Log.d("Notify", result)
}, Consumer {
err -> Log.e("Notify", err.message)
}))MIT
cheers!
