protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); _photoCaptureView = FindViewById<PhotoCaptureView>(Resource.Id.PhotoCaptureView); _photoCaptureView.PictureTaken += PictureTaken; _previewLayout = FindViewById<LinearLayout>(Resource.Id.Preview); _imagePreview = FindViewById<ImageView>(Resource.Id.ImagePreview); _previewLayout.Click += ImagePreviewClick; }
internal BaseCameraController(PhotoCaptureView photoCaptureView) { _photoCaptureView = photoCaptureView; _context = _photoCaptureView.Context as Activity; }
internal Camera2Controller(PhotoCaptureView photoCaptureView) : base(photoCaptureView) { _captureCallback = new CaptureCallback(this); _stateCallback = new CameraStateCallback(this); _imageAvailableListener = new OnImageAvailableListener(this); _captureStateCallback = new CaptureStateCallback(OnConfigured); }
internal CameraController(PhotoCaptureView photoCaptureView) : base(photoCaptureView) { _pictureCallback = new PictureCallback(this); }