Beispiel #1
0
        public override void OnViewCreated(View view, Bundle savedInstanceState)
        {
            base.OnViewCreated(view, savedInstanceState);

            CameraActivity thisAct = ((CameraActivity)Activity);

            thisAct.LoadIfPhotoMatch(view);
        }
 public ClipperASurfaceTextureListener(CameraActivity owner)
 {
     if (owner == null)
     {
         throw new System.ArgumentNullException("owner");
     }
     this.owner = owner;
 }
Beispiel #3
0
 public CameraStateListener(CameraActivity owner)
 {
     if (owner == null)
     {
         throw new System.ArgumentNullException("owner");
     }
     this.owner = owner;
 }
Beispiel #4
0
 public CameraCaptureStillPictureSessionCallback(CameraActivity owner)
 {
     if (owner == null)
     {
         throw new System.ArgumentNullException("owner");
     }
     this.owner = owner;
 }
        public Task <IImage> GetImageFromCamera()
        {
            _selectImageCompletion = new TaskCompletionSource <IImage>();
            var activity = Xamarin.Forms.Forms.Context as MainActivity;
            var intent   = CameraActivity.GetIntentForReceiver(activity, _receiverID);

            activity.StartActivity(intent);
            return(_selectImageCompletion.Task);
        }
        public override void OnViewCreated(View view, Bundle savedInstanceState)
        {
            mTextureView = (AutoFitTextureView)view.FindViewById(Resource.Id.texture);
            view.FindViewById(Resource.Id.takePictureBtn).SetOnClickListener(this);

            CameraActivity thisAct = ((CameraActivity)Activity);

            thisAct.LoadIfPhotoMatch(view);
        }
Beispiel #7
0
        public ImageAvailableListener(CameraActivity context, ManualResetEvent mre)
        {
            if (context == null)
            {
                throw new System.ArgumentNullException("context");
            }

            owner    = context;
            this.mre = mre;
        }