android10 / Android-CleanArchitecture-Kotlin

This is a movies sample app in Kotlin, which is part of a serie of blog posts I have written about architecting android application using different approaches.
https://fernandocejas.com/2018/05/07/architecting-android-reloaded/
4.69k stars 935 forks source link

Question: Completable/Flowable UseCase #65

Closed freaksgit closed 10 months ago

freaksgit commented 5 years ago

I am trying to apply the architecture to ours legacy project, and I've got some difficullties with UseCases variations.

  1. How to implement completable UseCase without return value?

  2. How to implement subscription to some events via UseCase? For example, how to implement UseCase which will deliver ConnectivityChange events to presenter? Or how to observe data changes in repository (w.o. using Rx)?

Thanks for nice sample of Clean Architecture project!

aldyaz commented 4 years ago

@freaksgit well it was a year ago :D for question number 1 : Create another UseCase that return instance of Completable, without Type generic (just Params)