iOS Charting Documentation - SciChart iOS Charts SDK v3.x

ISCIEventsManager

@protocol ISCIEventsManager <NSObject>

Defines the protocol to the SCIEventManager, a helper class to propagate events.

  • Subscribes to motion events on the Source, propagating handlers to the Target.

    Declaration

    Objective-C

    - (void)subscribeSource:(id<ISCIPublishEvents>)source
                   toTarget:(id<ISCIReceiveEvents>)target;

    Parameters

    source

    The source of motion events.

    target

    The target to receive motion events.

  • Unsubscribes the source from the events.

    Declaration

    Objective-C

    - (void)unsubscribeSource:(id<ISCIPublishEvents>)element;

    Parameters

    element

    The source to unsubscribe.

  • Unsubscribes the element from the events.

    Declaration

    Objective-C

    - (void)unsubscribeTarget:(id<ISCIReceiveEvents>)element;

    Parameters

    element

    The element to unsubscribe.

  • Aquires touch event for passed in UIEvent and other params.

    Declaration

    Objective-C

    - (SCITouchEvent *)aquireTouchEventFor:(UIEvent *)event
                                   touches:(NSSet<UITouch *> *)touches
                                  andState:(SCIEventState)state
                                    inView:(UIView *)view;

    Swift

    func aquireTouchEvent(for event: Any!, touches: Set<AnyHashable>!, andState state: Any!, inView view: Any!) -> SCITouchEvent!

    Parameters

    event

    The UIEvent to aquire SCITouchEvent for.

    touches

    A set of UITouch instances that represent the touches for the ending phase of the event represented by event.

    state

    The current event state.

    Return Value

    Aquired SCITouchEvent instance related to passed in UIEvent.