ObserverProtocol
public protocol ObserverProtocol
Represents an observer over an observable sequence
-
The element types of the observer events
Declaration
Swift
associatedtype Element
-
bind(from:)
Extension methodbinds an observer from bindable object.
For example, when you want to bind ui element value to property value changes.
Declaration
Swift
func bind<B>(from bindable: B) -> Cancelable where B : Bindable, Self.Element == B.Element
-
asObserver
Extension method
-
onNext(_:)
Extension methodUndocumented
Declaration
Swift
func onNext(_ element: Element)
-
onCompleted()
Extension methodUndocumented
Declaration
Swift
func onCompleted()
-
onError(_:)
Extension methodUndocumented
Declaration
Swift
func onError(_ error: Swift.Error)