Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

IPictureCallback : I need help

$
0
0

Hi,

I'm trying to implement a camera view and allow the user to save a picture. I absolutely don't understand how callbacks work with Xamarin. The function takePicture needs a IPictureCallback, so I make a class with this interface. Here is the model :


public class CallbackTest : Camera.IPictureCallback
    {

        public void OnPictureTaken(byte[] data, Camera camera)
        {
            throw new NotImplementedException();
        }

        public IntPtr Handle
        {
        get { throw new NotImplementedException(); }
        }

        public void Dispose()
        {
        throw new NotImplementedException();
        }
    }

I understand I have to put my code which take a picture on OnPictureTaken. But what do I have to write in Handle and Dispose ?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>