public static Camera2VideoFragment newInstance()
        {
            var fragment = new Camera2VideoFragment();

            fragment.RetainInstance = true;
            return(fragment);
        }
Example #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.activity_camera);
            if (null == bundle)
            {
                FragmentManager.BeginTransaction()
                .Replace(Resource.Id.container, Camera2VideoFragment.newInstance())
                .Commit();
            }
        }
 public MySurfaceTextureListener(Camera2VideoFragment frag)
 {
     fragment = frag;
 }
Example #4
0
 public PreviewCaptureStateCallback(Camera2VideoFragment frag)
 {
     fragment = frag;
 }
Example #5
0
 public MyCameraStateCallback(Camera2VideoFragment frag)
 {
     fragment = frag;
 }