TakePicture() private method

Takes a picture.
private TakePicture ( ) : void
return void
Example #1
0
 public override void OnPickOptionResult(bool finished, Option[] selections, Bundle result)
 {
     if (finished && selections.Length == 1)
     {
         frag.TakePicture();
     }
     else
     {
         Activity.Finish();
     }
 }
Example #2
0
            public override void Run()
            {
                frag.Activity.RunOnUiThread(() =>
                {
                    if (countdown < 0)
                    {
                        toast.Cancel();
                        frag.TakePicture();
                    }
                    else
                    {
                        label.Text = "Photo in " + countdown.ToString("D");
                        toast.Show();
                    }
                });

                countdown--;
                if (countdown < 0)
                {
                    Cancel();
                }
            }