/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import #import "FlipperKitLayoutDescriptorMapperProtocol.h" typedef void (^SKTouchFinishDelegate)(id currentNode); typedef void (^SKProcessFinishDelegate)(NSDictionary* tree); @interface SKTouch : NSObject - (instancetype)initWithTouchPoint:(CGPoint)touchPoint withRootNode:(id)node withDescriptorMapper:(id)mapper finishWithBlock:(SKTouchFinishDelegate)d; - (void)continueWithChildIndex:(NSUInteger)childIndex withOffset:(CGPoint)offset; - (void)finish; - (void)retrieveSelectTree:(SKProcessFinishDelegate)callback; - (BOOL)containedIn:(CGRect)bounds; @end