package Ġorg . simple . clin ic . on boarding Ċ Ċ import Ġcom . f 2 pr ate ek . rx . preferences 2 . Preference Ċ import Ġcom . spotify . mob ius . rx 2 . Rx Mob ius Ċ import Ġio . reactivex . Observable Transformer Ċ import Ġorg . simple . clin ic . util . scheduler . Schedulers Provider Ċ Ċ object ĠOn boarding Effect Handler Ġ{ ĊĠ Ġfun Ġcreate Effect Handler ( ĊĠĠĠĠĠ Ġhas User Completed On boarding : ĠPreference < Boolean >, ĊĠĠĠĠĠ Ġui : ĠOn boarding Ui , ĊĠĠĠĠĠ Ġs chedulers Provider : ĠS chedulers Provider ĊĠ Ġ): ĠObservable Transformer < On boarding Effect , ĠOn boarding Event > Ġ{ ĊĠĠĠ Ġreturn ĠRx Mob ius ĊĠĠĠĠĠĠĠ Ġ. subtype Effect Handler < On boarding Effect , ĠOn boarding Event >() ĊĠĠĠĠĠĠĠ Ġ. add Transformer ( Complete On boarding Effect :: class . java , Ġcomplete On boarding Transformer ( has User Completed On boarding )) ĊĠĠĠĠĠĠĠ Ġ. addAction ( MoveTo Registration Effect :: class . java , Ġui :: moveTo Registration Screen , Ġs chedulers Provider . ui ()) ĊĠĠĠĠĠĠĠ Ġ. build () ĊĠ Ġ} ĊĊĠ Ġprivate Ġfun Ġcomplete On boarding Transformer ( ĊĠĠĠĠĠ Ġhas User Completed On boarding : ĠPreference < Boolean > ĊĠ Ġ): ĠObservable Transformer < Complete On boarding Effect , ĠOn boarding Event > Ġ{ ĊĠĠĠ Ġreturn ĠObservable Transformer Ġ{ Ġcomplete On boarding Effect Ġ-> ĊĠĠĠĠĠ Ġcomplete On boarding Effect ĊĠĠĠĠĠĠĠĠĠ Ġ. do On Next Ġ{ Ġhas User Completed On boarding . set ( true ) Ġ} ĊĠĠĠĠĠĠĠĠĠ Ġ. map Ġ{ ĠOn boarding Completed Ġ} ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ