//
//  MediaPipeVisionFrameProcessorPlugin.m
//  react-native-mediapipe-vision
//
//  Objective-C wrapper to register the frame processor
//

#import <Foundation/Foundation.h>
#import <VisionCamera/FrameProcessorPlugin.h>
#import <VisionCamera/FrameProcessorPluginRegistry.h>

// This exposes the Swift class to Objective-C
@interface MediaPipeVisionFrameProcessorPlugin : NSObject <FrameProcessorPluginBase>
@end

// Register the plugin
@implementation FrameProcessorPluginRegistry (MediaPipeVision)

+ (void)load {
  [self registerFrameProcessorPlugin:@"mediaPipeVision"
                        withInitializer:^FrameProcessorPlugin* {
                          return [[MediaPipeVisionFrameProcessorPlugin alloc] init];
                        }];
}

@end 