I need your support.
I want to use QR code scan function. but I cannot use captureOutputDidOutputMetadataObjectsFromConnection Method from java code.
Source code and Error message are as follows.
[Code]
public class MyController extends UIViewController implements AVCaptureMetadataOutputObjectsDelegate{
static {
NatJ.register();
}
protected MyController (Pointer peer) {
super(peer);
}
@Generated("NatJ")
@Owned
@Selector("alloc")
public static native MyController alloc();
@Generated("NatJ")
@Owned
@Selector("init")
public native MyController init();
@Override
public void captureOutputDidOutputMetadataObjectsFromConnection(AVCaptureOutput captureOutput, NSArray<?> metadataObjects, AVCaptureConnection connection) {
//Logic;
}
}
[Error message]
Name clash: The method captureOutputDidOutputMetadataObjectsFromConnection(AVCaptureOutput captureOutput, NSArray<?> metadataObjects, AVCaptureConnection connection) of type MyController has the same erasure as captureOutputDidOutputMetadataObjectsFromConnection(AVCaptureOutput captureOutput, NSArray<? extends AVMetadataobject> metadataObjects, AVCaptureConnection connection) of type AVCaptureMetadataOutputObjectsDelegate but does not override it