iOS Charting Documentation - SciChart iOS Charts SDK v3.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.

  • 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 the block for the SCISmartProperty listener. Called when new property value is set.

    Declaration

    Objective-C

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

    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.

  • Block which defines action without parameters.

    Declaration

    Objective-C

    typedef void (^SCIActionBlock)(void)

    Swift

    typealias SCIActionBlock = () -> Void
  • Defnies the block which is used for additional tooltip view setup

    Note

    this block will be called after all other style options applied

    Declaration

    Objective-C

    typedef void (^SCITooltipViewSetupBlock)(SCITooltipView *)

    Swift

    typealias SCITooltipViewSetupBlock = (SCITooltipView?) -> Void

    Parameters

    view

    SCITooltipView which displays modifier data

  • 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.