Get unlimited access
Open in app
Home
Notifications
Lists
Stories

Write
Mobile App Development Publication
Published in

Mobile App Development Publication

Elye
Elye

Jan 12, 2017

·
4 min read
·

Rx-ify to eliminate callback

This will show how to remove the need of Callback when interacting between two classes, by using RX. Kotlin is used as a more concise example.

Overview

Imagine we have two classes below, a PRESENTER and a FETCHER class with the relationship as below. There’s a need for callback to PRESENTER after the data has been fetch.

--

--

More from Mobile App Development Publication

Sharing iOS, Android and relevant Mobile App Development Technology and Learning

Read more from Mobile App Development Publication

Recommended from Medium

Deeksha

Deeksha

𝓛𝓲𝓿𝓮 𝓢𝓽𝓻𝓮𝓪𝓶𝓲𝓷𝓰 𝓥𝓲𝓭𝓮𝓸 𝓒𝓱𝓪𝓽 𝓐𝓹𝓹 𝔀𝓲𝓽𝓱𝓸𝓾𝓽 𝓿𝓸𝓲𝓬𝓮 𝓾𝓼𝓲𝓷𝓰 𝓬𝓿2…

Daycuroa Daycuroa

Daycuroa Daycuroa

Dây curoa Alpha Power Belt 5L-8VX4000(10160)La

Almost Engineer

Almost Engineer

in

Mac O’Clock

Quick start with CALayer and CABasicAnimation

Carrie Tsai - Neway

Carrie Tsai - Neway

Mac mini Dual Display: How to Grt Dock on Bottom Screen

Julia Matyunina

Julia Matyunina

in

mobindustry

Top 7 Biggest Hidden Costs of Mobile App Development

Syd Bailey

Syd Bailey

Simplify your understanding of Big O Notation and algorithmic complexity

John Alvin Salamat

John Alvin Salamat

OutSystems joining external database table through JSON

Akash Thakur

Akash Thakur

Helping Enterprises in Digitization

AboutHelpTermsPrivacy


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Elye

Elye

Sharing Software Development Experience, focus on Mobile. https://elye-project.medium.com/subscribe https://twitter.com/elye_project

More from Medium

Hellajoey

Hellajoey

TLDR — How to Make Quick Sample Images in Android Studio

No one has time for this.
Elye

Elye

in

Mobile App Development Publication

Linking Dagger 2 and Dagger Hilt With EntryPoint

Pankaj Rai

Pankaj Rai

in

ProAndroidDev

Mirror Effect with Jetpack Compose

Rebecca Franks

Rebecca Franks

in

Android Developers

Custom Canvas Animations in Jetpack Compose ✨

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable