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

SCICollectionChangedEventArgs

@interface SCICollectionChangedEventArgs<T> : NSObject <ISCICleanable> {
  NSMutableArray<T> *_newItems;
  NSMutableArray<T> *_oldItems;
}

Defines a class which contains changes of SCIObservableCollection.

Note

E - is the type of elements in the changed SCIObservableCollection.
  • Undocumented

    Declaration

    Objective-C

    NSMutableArray<T> *_newItems
  • Undocumented

    Declaration

    Objective-C

    NSMutableArray<T> *_oldItems
  • Gets the list of new items involved in the change.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSArray<T> *_Nonnull newItems;

    Swift

    var newItems: [T] { get }
  • Gets the old items which were removed or replaced in this change.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSArray<T> *_Nonnull oldItems;

    Swift

    var oldItems: [T] { get }
  • Gets the index at which the change occurred.

    Declaration

    Objective-C

    @property (nonatomic) NSInteger newIndex;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) NSInteger oldIndex;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) SCICollectionChangedAction action;

    Swift

    var action: SCICollectionChangedAction { get set }