public CameraFragment(CameraPageRenderer cpr, View view, Activity activity) { mCPR = cpr; mStateCallback = new CameraStateListener(this); mSurfaceTextureListener = new CameraSurfaceTextureListener(this); Activity = activity; // fill ORIENTATIONS list ORIENTATIONS.Append((int)SurfaceOrientation.Rotation0, 90); ORIENTATIONS.Append((int)SurfaceOrientation.Rotation90, 0); ORIENTATIONS.Append((int)SurfaceOrientation.Rotation180, 270); ORIENTATIONS.Append((int)SurfaceOrientation.Rotation270, 180); mTextureView = (AutoFitTextureView)view.FindViewById(Resource.Id.texture); view.FindViewById(Resource.Id.snap_button).SetOnClickListener(this); view.FindViewById(Resource.Id.gallery_button).SetOnClickListener(this); mFlashButton = view.FindViewById <ImageButton>(Resource.Id.flash_button); mFlashButton.SetOnClickListener(this); view.FindViewById(Resource.Id.back_button).SetOnClickListener(this); ImageDisplay = view.FindViewById <ImageView>(Resource.Id.img_display); roi = view.FindViewById <ImageView>(Resource.Id.roiView); mCaptureCallback = new CameraCaptureListener(this); mOnImageAvailableListener = new ImageAvailableListener(this); flashMenuListner = new FlashMenuListener(this); mFlashMode = 0; }
public TextureViewSurfaceTextureListener(CameraPageRenderer parent) { Parent = parent; }
public CameraDeviceStateCallback(CameraPageRenderer parent) { Parent = parent; }
public CameraCaptureSessionStateCallback(CameraPageRenderer parent) { Parent = parent; }