concept mapoffset in category android
appears as: mapOffset, mapOffset

This is an excerpt from Manning's book RxJava for Android Developers.
You now have an observable that tells you how much to increment the offset. You’ve had similar cases before, in which you need the last value of the value you’re updating. You’ll have to create an operator that uses the last value of the mapOffset observable as well as the incoming
![]()
The idea is to accumulate the events into a behavior observable mapOffset, which indicates the “permanent” offset as opposed to the individual move events.
The code for the conversion can be something along the following lines of code. You use a subject here to make it possible to use mapOffset in the calculation of itself. The initial value is given to the subject.