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

SCINotifiableSmartPropertyLong

@interface SCINotifiableSmartPropertyLong : SCISmartPropertyLong

Defines a smart property class which can hold long value and send notifications whenever it’s value changes.

  • Creates a new instance of SCINotifiableSmartPropertyLong class.

    Declaration

    Objective-C

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

    Swift

    init(listener: @escaping SCIAction)

    Parameters

    listener

    The listener change listener for this property.

  • Creates a new instance of SCINotifiableSmartPropertyLong class.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithListener:(nonnull SCIAction)listener
                             andDefaultValue:(long)defaultValue;

    Swift

    init(listener: @escaping SCIAction, andDefaultValue defaultValue: Int)

    Parameters

    listener

    The listener change listener for this property.

    defaultValue

    The default value for property.