Update FRAME_PROCESSOR_CREATE_PLUGIN_IOS.mdx
This commit is contained in:
parent
2a00f2a098
commit
a2311c02ac
@ -51,7 +51,7 @@ VISION_EXPORT_FRAME_PROCESSOR(scanQRCodes)
|
|||||||
4. **Implement your Frame Processing.** See the [QR Code Plugin (Objective-C)](https://github.com/mrousavy/react-native-vision-camera/blob/main/example/ios/Frame%20Processor%20Plugins/QR%20Code%20Plugin%20%28Objective%2DC%29) for reference.
|
4. **Implement your Frame Processing.** See the [QR Code Plugin (Objective-C)](https://github.com/mrousavy/react-native-vision-camera/blob/main/example/ios/Frame%20Processor%20Plugins/QR%20Code%20Plugin%20%28Objective%2DC%29) for reference.
|
||||||
|
|
||||||
:::note
|
:::note
|
||||||
The JS function name will be equal to the Objective-C function name you choose (with a `__` prefix). Make sure it is unique across other Frame Processor Plugins, and doesn't shadow a JS runtime variable.
|
The JS function name will be equal to the Objective-C function name you choose (with a `__` prefix). Make sure it is unique across other Frame Processor Plugins.
|
||||||
:::
|
:::
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
@ -78,7 +78,7 @@ The JS function name will be equal to the Objective-C function name you choose (
|
|||||||
```
|
```
|
||||||
|
|
||||||
:::note
|
:::note
|
||||||
The first parameter in the Macro specifies the JS function name. Make sure it is unique across other Frame Processors, and doesn't shadow a JS runtime variable (such as `Map`, `Number`, ...)
|
The first parameter in the Macro specifies the JS function name. Make sure it is unique across other Frame Processors.
|
||||||
:::
|
:::
|
||||||
|
|
||||||
4. In the Swift file, add the following code:
|
4. In the Swift file, add the following code:
|
||||||
|
Loading…
Reference in New Issue
Block a user