public override void OnOpened(CameraDevice camera) { if (Fragment != null) { Fragment.mCameraDevice = camera; Fragment.StartPreview(); Fragment.mOpeningCamera = false; } }
public override void OnCaptureCompleted(CameraCaptureSession session, CaptureRequest request, TotalCaptureResult result) { if (Fragment != null && File != null) { Activity activity = Fragment.Activity; if (activity != null) { Toast.MakeText(activity, "Saved: " + File.ToString(), ToastLength.Short).Show(); Fragment.StartPreview(); } } }
public void OnSurfaceTextureAvailable(Android.Graphics.SurfaceTexture surface, int width, int height) { Fragment.ConfigureTransform(width, height); Fragment.StartPreview(); }