iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCISmartPropertyLong

@interface SCISmartPropertyLong : NSObject

Defines a smart property class which can hold long value.

  • Creates a new instance of SCISmartPropertyLong class.

    Declaration

    Objective-C

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

    Swift

    init(listener: @escaping SCILongPropertyChangeListener)

    Parameters

    listener

    The listener change listener for this property.

  • Creates a new instance of SCISmartPropertyLong class.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithListener:
                                (nonnull SCILongPropertyChangeListener)listener
                                defaultValue:(long)defaultValue;

    Swift

    convenience init(listener: @escaping SCILongPropertyChangeListener, defaultValue: Int)

    Parameters

    listener

    The listener change listener for this property.

    defaultValue

    The default value for property.

  • Gets the current property value.

    Declaration

    Objective-C

    @property (readonly, nonatomic) long value;

    Swift

    var value: Int { get }
  • Sets weak value for this property if it was not overridden by -setStrongValue: call.

    Declaration

    Objective-C

    - (void)setWeakValue:(long)newValue;

    Swift

    func setWeakValue(_ newValue: Int)

    Parameters

    newValue

    The new value for property.

  • Sets weak value for this property which overrides any previously set value.

    Declaration

    Objective-C

    - (void)setStrongValue:(long)newValue;

    Swift

    func setStrongValue(_ newValue: Int)

    Parameters

    newValue

    The new value for property.