RIBs icon indicating copy to clipboard operation
RIBs copied to clipboard

[android] handleBackPress()

Open melbaldove opened this issue 6 years ago • 4 comments

Shouldn't backpress be propagated down to the lowest child interactor instead of the interactor associated with the RibActivity which is RootInteractor?

melbaldove avatar Oct 29 '18 11:10 melbaldove

Message propagation is the responsibility of the developer — you are free to handle it as you see fit, while making use of the architecture that RIBs provide (e.g. you can unmount an entire subtree) and relevant patterns such as Rx Observables.

ermik avatar Oct 29 '18 23:10 ermik

Is there have any example? i would want to know the way which propagated down to the lowest child interactor or Creating a Observable object let the interactor subscribe it? like what you said we dont wanna break downb the structure of Ribs, im finding the way can only few ribs implement onBackPressed, it can allow us to back the first view of scope, anyway thanks for ur help, i would like to implement the structure of Ribs however the information and solutions what internet can provide is so less

ccykevin avatar Oct 30 '18 08:10 ccykevin

Yes please can someone provide canonical examples? #304

melbaldove avatar Dec 05 '18 07:12 melbaldove

Bump

Solace-Studios avatar Sep 17 '22 21:09 Solace-Studios