Community

Topic: Xamarin component

error cast

Boris
Monday, October 30, 2017

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

user profile image
Support Team  (expert)
Tuesday, October 31, 2017

Hi,
please verify you have implemented the IRecognitionListener interface in your activity in this way:

public class MainActivity: AppCompatActivity, IRecognitionListener
if the interface implementation is correct check that all interface methods are implemented.
Best,

Sign in to add a comment