iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCISmartPropertyFloat

@interface SCISmartPropertyFloat : NSObject

Defines a smart property class which can hold float value.

  • Creates a new instance of SCISmartPropertyFloat class.

    Declaration

    Objective-C

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

    Swift

    init(listener: @escaping SCIFloatPropertyChangeListener)

    Parameters

    listener

    The listener change listener for this property.

  • Creates a new instance of SCISmartPropertyFloat class.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithListener:
                                (nonnull SCIFloatPropertyChangeListener)listener
                                defaultValue:(float)defaultValue;

    Swift

    convenience init(listener: @escaping SCIFloatPropertyChangeListener, defaultValue: Float)

    Parameters

    listener

    The listener change listener for this property.

    defaultValue

    The default value for property.

  • Gets the current property value.

    Declaration

    Objective-C

    @property (nonatomic, readonly) float value;

    Swift

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

    Declaration

    Objective-C

    - (void)setWeakValue:(float)newValue;

    Swift

    func setWeakValue(_ newValue: Float)

    Parameters

    newValue

    The new value for property.

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

    Declaration

    Objective-C

    - (void)setStrongValue:(float)newValue;

    Swift

    func setStrongValue(_ newValue: Float)

    Parameters

    newValue

    The new value for property.