/// <summary> /// Releases the resources used by the Recorder. /// </summary> /// <param name="disposing"> /// true to release both managed and unmanaged resources; false to release only unmanaged resources. /// </param> /// <since_tizen> 3 </since_tizen> protected virtual void Dispose(bool disposing) { if (!_disposed) { if (_handle != null) { _handle.Dispose(); } _disposed = true; } }
internal Recorder(NativeHandle handle) { _handle = handle; try { RegisterEvents(); SetState(State); } catch (Exception) { _handle.Dispose(); throw; } }