Community
Topic: Xamarin component
error cast
Hi,
I have this error from the line : _cameraFragment.StartRecognition(new RecognitionOptions(RecognitionOptions.RecognitionStorage.Local, RecognitionOptions.RecognitionMode.ContinuousScan, new CloudRecognitionInfo(new String[] { })), this);
Argument 2: cannot convert from 'reality.MainActivity' to 'Com.Pikkart.AR.Recognition.IRecognitionListener'
please help
Hi,
please verify you have implemented the IRecognitionListener interface in your activity in this way:
public class MainActivity: AppCompatActivity, IRecognitionListenerif the interface implementation is correct check that all interface methods are implemented.
Best,