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

Other Type Definitions

The following type definitions are available globally.

  • Block which defines action without parameters.

    Declaration

    Objective-C

    typedef void (^SCIAction)(void)

    Swift

    typealias SCIAction = () -> Void
  • Interface which defines action that accepts one argument.

    Declaration

    Objective-C

    typedef void (^SCIAction1)(id)

    Swift

    typealias SCIAction1 = (Any?) -> Void

    Parameters

    arg

    Argument for the action.

  • Interface which defines action that accepts two arguments.

    Declaration

    Objective-C

    typedef void (^SCIAction2)(id, id)

    Swift

    typealias SCIAction2 = (Any?, Any?) -> Void

    Parameters

    arg1

    First argument for the action.

    arg2

    Second argument for the action.

  • Interface which defines the factory methods for some specified class.

    Declaration

    Objective-C

    typedef id (^SCIFactory)()

    Swift

    typealias SCIFactory = () -> Any?

    Return Value

    New instance generated by this factory.

  • Interface which defines the function with one argument.

    Declaration

    Objective-C

    typedef id (^SCIFunc1)(id)

    Swift

    typealias SCIFunc1 = (Any?) -> Any?

    Parameters

    arg

    Argument for the function.

    Return Value

    Result of the function.

  • Defines the block for the SCISmartProperty listener. Called when new property value is set.

    Declaration

    Objective-C

    typedef void (^SCIPropertyChangeListener)(NSObject *_Nullable,
                                              NSObject *_Nullable)

    Swift

    typealias SCIPropertyChangeListener = (NSObject?, NSObject?) -> Void

    Parameters

    oldValue

    The old value.

    newValue

    The new value.

  • Defines the block for the SCISmartPropertyBool listener. Called when new property value is set.

    Declaration

    Objective-C

    typedef void (^SCIBoolPropertyChangeListener)(BOOL, BOOL)

    Swift

    typealias SCIBoolPropertyChangeListener = (Bool, Bool) -> Void

    Parameters

    oldValue

    The old value.

    newValue

    The new value.

  • Defines the block for the SCISmartPropertyDouble listener. Called when new property value is set.

    Declaration

    Objective-C

    typedef void (^SCIDoublePropertyChangeListener)(double, double)

    Swift

    typealias SCIDoublePropertyChangeListener = (Double, Double) -> Void

    Parameters

    oldValue

    The old value.

    newValue

    The new value.

  • Defines the block for the SCISmartPropertyFloat listener. Called when new property value is set.

    Declaration

    Objective-C

    typedef void (^SCIFloatPropertyChangeListener)(float, float)

    Swift

    typealias SCIFloatPropertyChangeListener = (Float, Float) -> Void

    Parameters

    oldValue

    The old value.

    newValue

    The new value.

  • Defines the block for the SCISmartPropertyInt listener. Called when new property value is set.

    Declaration

    Objective-C

    typedef void (^SCIIntPropertyChangeListener)(int, int)

    Swift

    typealias SCIIntPropertyChangeListener = (Int32, Int32) -> Void

    Parameters

    oldValue

    The old value.

    newValue

    The new value.

  • Defines the block for the SCISmartPropertyLong listener. Called when new property value is set.

    Declaration

    Objective-C

    typedef void (^SCILongPropertyChangeListener)(long, long)

    Swift

    typealias SCILongPropertyChangeListener = (Int, Int) -> Void

    Parameters

    oldValue

    The old value.

    newValue

    The new value.

  • Defines the interface of pie segment listener. Called when pie segment changes.

    Declaration

    Objective-C

    typedef void (^SCIPieSegmentChangeListener)(id<ISCIPieSegment> _Nonnull)

    Parameters

    segment

    The changed pie or donut segment.

  • Interface which defines method that checks if argument meets some criteria.

    Declaration

    Objective-C

    typedef BOOL (^SCIPredicate)(id)

    Swift

    typealias SCIPredicate = (Any?) -> Bool

    Parameters

    item

    Item to check.

    Return Value

    YES - if item meets specified criteria.

  • Defines a callback which allows to update axiis tooltip with latest information on screen.

    Declaration

    Objective-C

    typedef void (^SCIUpdateAxisTooltipAction)(id<ISCIView>)

    Parameters

    axisTooltip

    The axis tooltip to update.

  • Defines a callback which allows to update series tooltip with latest information for specified [x, y] coordinates on screen.

    Declaration

    Objective-C

    typedef void (^SCIUpdateSeriesTooltipAction)(id<ISCIView>, CGPoint)

    Parameters

    seriesTooltip

    The tooltip to update.

    point

    The [x, y] coordinates on screen.

  • Defines the block for listening changes of SCIWorldDimensions and it’s inheritors. Called when observed world dimensions instance has changed.

    Declaration

    Objective-C

    typedef void (^SCIWorldDimensionsChangeObserver)(SCIVector3 *_Nonnull)

    Swift

    typealias SCIWorldDimensionsChangeObserver = (SCIVector3) -> Void

    Parameters

    worldDimensions

    The new world dimensions.