iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

SCIObservableSmartProperty

@interface SCIObservableSmartProperty : SCISmartProperty

Defines a smart property class which can hold any id instances and observe it’s value changes.

  • Creates a new instance of SCIObservableSmartProperty class.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithListener:
        (nonnull SCIPropertyChangeListener)listener;

    Swift

    init(listener: @escaping SCIPropertyChangeListener)

    Parameters

    listener

    The listener change listener for this property.

  • Creates a new instance of SCIObservableSmartProperty class.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithListener:
                                (nonnull SCIPropertyChangeListener)listener
                             andDefaultValue:(nullable id)defaultValue;

    Swift

    init(listener: @escaping SCIPropertyChangeListener, andDefaultValue defaultValue: Any?)

    Parameters

    listener

    The listener change listener for this property.

    defaultValue

    The default value for property.