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

SCICollectionChangedEventArgs

@interface SCICollectionChangedEventArgs<E> : NSObject <ISCICleanable>

Defines a class which contains changes of SCIObservableCollection.

Note

E - is the type of elements in the changed SCIObservableCollection.
  • Gets the list of new items involved in the change.

    Declaration

    Objective-C

    @property (getter=getNewItems, readwrite, strong, nonatomic)
        NSMutableArray<E> *newItems;

    Swift

    var newItems: NSMutableArray! { get set }
  • Gets the old items which were removed or replaced in this change.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSMutableArray<E> *oldItems;

    Swift

    var oldItems: NSMutableArray! { get set }
  • Gets the index at which the change occurred.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSInteger newIndex;

    Swift

    var newIndex: Int { get set }
  • Gets the index at which the change occurred.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSInteger oldIndex;

    Swift

    var oldIndex: Int { get set }
  • Gets the action that caused the event.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) SCICollectionChangedAction action;

    Swift

    var action: SCICollectionChangedAction { get set }