Questions tagged [rx-kotlin]

RxJava bindings for Kotlin programming language

RxKotlin is open sourced and available under the Apache License, Version 2.0

238 questions
0
votes
1 answer

How to skip exceptions silently in RxJava2?

I have a data flow like this: Observable .fromFuture( CompletableFuture.supplyAsync { // First remote call returns Future> listOf(1, 2, 3, 57005, 5) }, Schedulers.computation() ) .flatMap {…
madhead
  • 31,729
  • 16
  • 153
  • 201
0
votes
1 answer

Using range in zipWith also emits all items from range sequence before zipper function applied

The question is about RxJava2. Noticed that zipping Throwable that comes from retryWhen with range emits all items from Observable.range before zipper function has been applied. Also, range emits sequence even if zipWith wasn't called. For example…
Sunstrike
  • 456
  • 1
  • 6
  • 22
0
votes
1 answer

How to notify Observable when CountdownTimer is finished

I have a custom Android TextView which shows the amount of time left in a game via a CountDownTimer class CountdownTextView(context: Context, attrs: AttributeSet) : TextView(context, attrs) { private lateinit var countDownTimer: CountDownTimer …
Arsala Bangash
  • 439
  • 4
  • 11
0
votes
2 answers

How to specify the version of RxJava when using RxKotlin?

Docs in the RxKotlin repository on GitHub doesn't specify a way to explicitly depend on the latest RxJava versionn. If we see the build.gradle file of the library, it as of now uses compile 'io.reactivex.rxjava2:rxjava:2.1.0' But what if we want to…
priyankvex
  • 5,760
  • 5
  • 28
  • 44
0
votes
1 answer

Repeat sending object to subsriber on Rx

is it possible to send the same object to subscribers in Rx repeatedly? For exmaple this code(on Kotlin): val exmp = listOf("А") var observable = exmp.toObservable() observable.subscribeBy( onNext = { …
0
votes
1 answer

Can't Change Text of ActionMenuItemView with RxKotlin

I'm trying to write an Android app with Kotlin. Now, I want to show a counter in the ActionBar. I added an item called show_timer for that. Each second, it should count up by one: override fun onWindowFocusChanged(hasFocus: Boolean) { val item =…
Niklas Wünsche
  • 101
  • 1
  • 8
0
votes
2 answers

RxJava - Backpressuring keyboard inputs?

Here's a fun RxJava problem. I want to use RxJava backpressure operators to quickly lookup a typed input while each character is being typed, much like Google does on its search page. I went through the Backpressure documentation and I came up with…
tmn
  • 11,121
  • 15
  • 56
  • 112
-1
votes
1 answer

Android - How to get progress for normal http call using retrofit

I am using retrofit2 for making service call in my application, i need to show the progress percentage for the service call which is made using retrofit, the result of the call will be of some JSON object. we know that for downloading files we can…
Stack
  • 1,164
  • 1
  • 13
  • 26
-1
votes
1 answer

How do I check if an observable is running and stop it?

So I have an observable with a debounce of 300ms. It does an API-call after a key-up event. There's an API-lock in place to prevent future calls until it is completed, but I would also like to check if the observable is running (that's making the…
Tim Nuwin
  • 2,775
  • 2
  • 29
  • 63
-2
votes
1 answer

Getting NetworkOnMainThreadException with RxKotlin

I'm trying to make a network request using RxKotlin, but keep getting a NetworkOnMainThreadException I'm subscribing on the main thread, so I'm not sure why it's not taking it off of the UI thread. Here is where I subscribe to the…
Rafa
  • 3,219
  • 4
  • 38
  • 70
-2
votes
1 answer

Rxjava with kotlin

I using rxjava 2 in kotlin but it is not compiling how should i resolve it ? var emailField = name.textChanges().skipInitialValue().toFlowable(BackpressureStrategy.LATEST) var passField =…
shakil.k
  • 1,623
  • 5
  • 17
  • 27
-3
votes
1 answer

I can't get map from groupby in rxkotlin

could you please help me for this rxkotlin groupby is not working? working in rxjava but not kotlin. highly apreciate your help
-6
votes
1 answer

How to show Progress dialog and dismiss on Item click

override fun itemclick(position: Int) { binding.progressbar.visibility=View.VISIBLE binding?.barcode?.setImageBitmap(exchngeViewModel.getQrImageBitmap(qrCodeData[position], this!!.activity!!)) showDetail(position) …
Maklee Lee
  • 263
  • 5
  • 14
1 2 3
15
16