/** * @brief Release the rgb camera. */ public static void Release() { if (m_NativeCamera != null) { NRDebugger.Log("[NRRgbCamera] Start to Release"); #if !UNITY_EDITOR m_NativeCamera.Release(); m_NativeCamera = null; #endif OnError = null; OnImageUpdate = null; isInitiate = false; isRGBCamStart = false; } }
/// <summary> /// Release the rgb camera. /// </summary> public static void Release() { if (m_NativeCamera == null) { return; } NRDebugger.Log("[NRRgbCamera] Start to Release"); #if !UNITY_EDITOR m_NativeCamera.Release(); m_NativeCamera = null; #endif m_CurrentFrame.data = null; OnError = null; OnImageUpdate = null; m_IsInitialized = false; m_IsPlaying = false; }
void HandleCaptureError(CaptureErrorEvent e) { App.Current.Dialogs.ErrorMessage (Catalog.GetString ("The following error happened and" + " the current capture will be closed:") + "\n" + e.Message); CaptureFinished (true, false, false); }
async void HandleCaptureError(CaptureErrorEvent e) { App.Current.Dialogs.ErrorMessage(Catalog.GetString("The following error happened and" + " the current capture will be closed:") + "\n" + e.Message); await CaptureFinished(true, false, false); }