iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIBoolValues
@interface SCIBoolValues : SCIDisposableBase <ISCIValues>
Defines a byte values collection.
-
Maximum capacity of underlying array.
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger capacity;Swift
var capacity: Int { get } -
Creates a new
SCIByteValuesinstance.Declaration
Objective-C
- (nonnull instancetype)initWithCapacity:(NSInteger)capacity;Swift
init(capacity: Int)Parameters
capacityThe initial capacity.
-
Creates a new
SCIByteValuesinstance and initializes it with specified array.Declaration
Objective-C
- (nonnull instancetype)initWithItems:(nonnull const BOOL *)items count:(NSInteger)count;Parameters
itemsThe array with items.
countThe count of passed in items.
-
Gets the internal items array.
Declaration
Objective-C
@property (nonatomic, readonly, getter=getItemsArray) NS_REFINED_FOR_SWIFT BOOL *itemsArray;Return Value
The items array.
-
Adds new value.
Declaration
Objective-C
- (void)add:(BOOL)value;Swift
func add(_ value: Bool)Parameters
valueThe value to add.
-
Adds new value at specified location.
Declaration
Objective-C
- (void)insert:(BOOL)value at:(NSInteger)index;Swift
func insert(_ value: Bool, at index: Int)Parameters
indexThe location to add value at.
valueThe value to add.
-
Adds multiple values from array.
Declaration
Objective-C
- (void)addValues:(nonnull const BOOL *)values count:(NSInteger)count;Swift
func addValues(_ values: UnsafePointer<ObjCBool>, count: Int)Parameters
valuesThe values to add.
countThe amount of values to add.
-
Adds multiple values from array region.
Declaration
Objective-C
- (void)addValues:(nonnull const BOOL *)values startIndex:(NSInteger)startIndex count:(NSInteger)count;Swift
func addValues(_ values: UnsafePointer<ObjCBool>, startIndex: Int, count: Int)Parameters
valuesThe values array to add.
startIndexThe index of first value to add.
countThe amount of values to add.
-
Sets the value at specified location.
Declaration
Objective-C
- (void)set:(BOOL)value at:(NSInteger)index;Swift
func set(_ value: Bool, at index: Int)Parameters
valueThe value to set.
indexThe index to set value at.
-
Gets the value at specified location.
Declaration
Objective-C
- (BOOL)getValueAt:(NSInteger)index;Swift
func getValueAt(_ index: Int) -> BoolParameters
indexThe index of value to get.
Return Value
The value.
-
Removes value at specified location.
Declaration
Objective-C
- (void)removeAt:(NSInteger)index;Swift
func remove(at index: Int)Parameters
indexThe index to remove value at.
View on GitHub