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

ISCIChartListener

@protocol ISCIChartListener <NSObject>

Defines the protocol to property listener for chart.

  • Called when property with specified id changes.

    Declaration

    Objective-C

    - (void)onPropertyChanged:(int)propertyId;

    Swift

    func onPropertyChanged(_ propertyId: Int32)

    Parameters

    propertyId

    The id of property.

  • Caleed when collection associated with specified id changes.

    Declaration

    Objective-C

    - (void)onCollectionChanged:(int)eventId
                           args:(nonnull SCICollectionChangedEventArgs *)args;

    Swift

    func onCollectionChanged(_ eventId: Int32, args: SCICollectionChangedEventArgs<AnyObject>)

    Parameters

    eventId

    The id of property.

    args

    The args with information about changes in collection.