public override void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height)
 {
     // "onSurfaceTextureAvailable" is called, which means that SCameraCaptureSession is not created.
     // We need to configure transform for TextureView and crate SCameraCaptureSession.
     outerInstance.configureTransform(width, height);
     outerInstance.createPreviewSession();
 }
 public virtual void onOpened(SCameraDevice sCameraDevice)
 {
     Log.v(TAG, "onOpened");
     outerInstance.mCameraOpenCloseLock.release();
     if (outerInstance.State == CAMERA_STATE.CLOSING)
     {
         return;
     }
     outerInstance.mSCameraDevice = sCameraDevice;
     outerInstance.createPreviewSession();
 }