android - No suitable method found to override C# MonoDroid -
'cms_template.picturecallback.onpicturetaken(byte[], android.hardware.camera)' marked override no suitable method found override.
i'm trying own onpicturetaken working, i'm getting above error. i'm passing picturecallback argument camera.takepicture.
my code:
public class picturecallback : java.lang.object, android.hardware.camera.ipicturecallback { public override void onpicturetaken(byte[] data, android.hardware.camera camera) { console.writeline ("onpicturetaken called."); } }
ipicturecallback.onpicturetaken method:
public void onpicturetaken (byte[] data, camera camera)
what missing here?
thanks in advance.
it not override because implementing method signature in interface rather overriding method in parent class. take override keyword out.
Comments
Post a Comment