Support Rx Java

Most of APIs from Qiscus Chat SDK are using RxJava, but no worry, it's easy to use RxJava method. You just need to call subscribe() after you call the method. The main advantage of using RxJava is easiness of creating asynchronous method. You just need to add subscribeOn() where its thread will be used to run the task and observeOn() where its thread will be used to deliver result. To learn more about RxJava you can visit this page. This is an example on how to use RxJava method from QiscusApi.

For example get a Nonce:

Java
Copy

To execute it, you can call it like this:

Java
Copy

But if you don't want to use Rx Java you can use QiscusRxExecutor, for example:

Java
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
On This Page
Support Rx Java