i'm using api camera returns image via callback, this:
camera.startcapture(imageevent); protected void imageevent(managedimage image) { // image }
the problem imageevent
keeps being called, not letting other methods run properly. want run imageevent
in different thread, how do this?
a solution using async/await preferable.
camera.startcapture(image => task.run(() => imageevent(image)));
Comments
Post a Comment