iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCISmartPropertyBool

@interface SCISmartPropertyBool : NSObject

Defines a smart property class which can hold boolean value.

  • Creates a new instance of SCISmartPropertyBool class.

    Declaration

    Objective-C

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

    Swift

    init(listener: @escaping SCIBoolPropertyChangeListener)

    Parameters

    listener

    The listener change listener for this property.

  • Creates a new instance of SCISmartPropertyBool class.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithListener:
                                (nonnull SCIBoolPropertyChangeListener)listener
                                defaultValue:(BOOL)defaultValue;

    Swift

    convenience init(listener: @escaping SCIBoolPropertyChangeListener, defaultValue: Bool)

    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) BOOL value;

    Swift

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

    Declaration

    Objective-C

    - (void)setWeakValue:(BOOL)newValue;

    Swift

    func setWeakValue(_ newValue: Bool)

    Parameters

    newValue

    The new value for property.

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

    Declaration

    Objective-C

    - (void)setStrongValue:(BOOL)newValue;

    Swift

    func setStrongValue(_ newValue: Bool)

    Parameters

    newValue

    The new value for property.