Ejemplo n.º 1
0
 public void StopPhotoModeAsync(OnPhotoModeStoppedCallback onPhotoModeStoppedCallback)
 {
     if (this.m_NativePtr == IntPtr.Zero)
     {
         throw new InvalidOperationException("You must create a Photo Capture Object before stopping its photo mode.");
     }
     if (onPhotoModeStoppedCallback == null)
     {
         throw new ArgumentException("onPhotoModeStoppedCallback");
     }
     this.StopPhotoMode_Internal(this.m_NativePtr, onPhotoModeStoppedCallback);
 }
Ejemplo n.º 2
0
        public void StopPhotoModeAsync(OnPhotoModeStoppedCallback onPhotoModeStoppedCallback)
        {
            CaptureBehaviour.Stop();

            PhotoCaptureResult result = new PhotoCaptureResult();

            result.resultType = CaptureResultType.Success;
            if (onPhotoModeStoppedCallback != null)
            {
                onPhotoModeStoppedCallback(result);
            }
        }
Ejemplo n.º 3
0
        public void StopPhotoModeAsync(OnPhotoModeStoppedCallback onPhotoModeStoppedCallback)
        {
            PhotoCaptureResult result = new PhotoCaptureResult();

            try
            {
                m_CaptureContext.StopCaptureMode();
                result.resultType = CaptureResultType.Success;
                onPhotoModeStoppedCallback?.Invoke(result);
            }
            catch (Exception)
            {
                result.resultType = CaptureResultType.UnknownError;
                onPhotoModeStoppedCallback?.Invoke(result);
                throw;
            }
        }
Ejemplo n.º 4
0
 public void StopPhotoModeAsync(OnPhotoModeStoppedCallback onPhotoModeStoppedCallback)
 {
     if (this.m_NativePtr == IntPtr.Zero)
     {
         throw new InvalidOperationException("You must create a Photo Capture Object before stopping its photo mode.");
     }
     if (onPhotoModeStoppedCallback == null)
     {
         throw new ArgumentException("onPhotoModeStoppedCallback");
     }
     this.StopPhotoMode_Internal(this.m_NativePtr, onPhotoModeStoppedCallback);
 }
Ejemplo n.º 5
0
 private extern void StopPhotoMode_Internal(IntPtr photoCaptureObj, OnPhotoModeStoppedCallback onPhotoModeStoppedCallback);
Ejemplo n.º 6
0
 private static void InvokeOnPhotoModeStoppedDelegate(OnPhotoModeStoppedCallback callback, long hResult)
 {
     callback(MakeCaptureResult(hResult));
 }
Ejemplo n.º 7
0
 private extern void StopPhotoMode_Internal(IntPtr photoCaptureObj, OnPhotoModeStoppedCallback onPhotoModeStoppedCallback);
Ejemplo n.º 8
0
 private static void InvokeOnPhotoModeStoppedDelegate(OnPhotoModeStoppedCallback callback, long hResult)
 {
     callback(MakeCaptureResult(hResult));
 }
Ejemplo n.º 9
0
 public extern void StopPhotoModeAsync(OnPhotoModeStoppedCallback onPhotoModeStoppedCallback);