CLUInteractionObserverDelegate

@protocol CLUInteractionObserverDelegate <NSObject>

CLUInteractionObserverDelegate protocol describe delegate methods which will handle all touches events sent by custom gesture recognizer (see CLUGeneralGestureRecognizer)

  • Tells current delegate object that one or more new touches occurred

    Declaration

    Objective-C

    - (void)touchesBegan:(NSArray<CLUTouch *> *)touches;

    Swift

    func touchesBegan(_ touches: [Any]!)

    Parameters

    touches

    Array of CLUTouch touches object (which is just a proxy for UITouch)

  • Tells current delegate object that moved gesture occured. Called only once at the end of moved event.

    Declaration

    Objective-C

    - (void)touchesMoved:(NSArray<CLUTouch *> *)touches;

    Swift

    func touchesMoved(_ touches: [Any]!)

    Parameters

    touches

    Array of CLUTouch touches object (which is just a proxy for UITouch)

  • Tells current delegate object that one or more fingers are raised

    Declaration

    Objective-C

    - (void)touchesEnded:(NSArray<CLUTouch *> *)touches;

    Swift

    func touchesEnded(_ touches: [Any]!)

    Parameters

    touches

    Array of CLUTouch touches object (which is just a proxy for UITouch)