TKMObservable

public class TKMObservable<T> : NSObject

Represents an observable object with a given type. The observable can be observed.

  • Adds an observer to the set of observers for this object.

    Declaration

    Swift

    public func addObserver(_ observer: @escaping (T) -> Void) -> TKMObserverRegistration

    Parameters

    observer

    the observer to add for this object.

    Return Value

    the ObserverRegistration that represents the registration on the Observable