fun register(observer: T): Unit (source)
Overrides Observable.register
Registers an observer to get notified about changes.
observer - the observer to register.
fun register(observer: T, owner: LifecycleOwner, autoPause: Boolean): Unit (source)
Overrides Observable.register
Registers an observer to get notified about changes.
The observer will automatically unsubscribe if the lifecycle of the provided LifecycleOwner becomes DESTROYED.
observer - the observer to register.
owner - the lifecycle owner the provided observer is bound to.
autoPause - whether or not the observer should automatically be
paused/resumed with the bound lifecycle.
fun register(observer: T, view: View): Unit (source)
Overrides Observable.register
Registers an observer to get notified about changes.
The observer will automatically unsubscribe if the provided view gets detached.