@CheckResult
inline fun View.clicks(): Observable<Unit> = RxView.clicks(this).map(VoidToUnit)
But I am still confused why I can't just add extension method. (I am still new to kotlin)
e
edwardwongtl
03/01/2018, 3:39 AM
RxView itself does not have instance, it just provide a brunch of static methods. Extension method is applied to the instance of the class and not the class itself.