diff --git a/ios/VisionCameraBase64Plugin.m b/ios/VisionCameraBase64Plugin.m index dd8322d..38403d0 100644 --- a/ios/VisionCameraBase64Plugin.m +++ b/ios/VisionCameraBase64Plugin.m @@ -5,11 +5,12 @@ @implementation Plugins - + (void) load { - [FrameProcessorPluginRegistry addFrameProcessorPlugin:@"frameToBase64" - withInitializer:^FrameProcessorPlugin*(NSDictionary* options) { - return [[VisionCameraBase64Plugin alloc] init]; - }]; - } ++ (void)load { + [FrameProcessorPluginRegistry addFrameProcessorPlugin:@"frameToBase64" + withInitializer:^FrameProcessorPlugin * _Nonnull (VisionCameraProxyHolder * _Nonnull cameraProxy, NSDictionary * _Nullable options) { + + return [[VisionCameraBase64Plugin alloc] initWithProxy:cameraProxy withOptions:options]; + }]; +} @end