public RecognitionSession SpawnSession(SessionSettings session_settings, ResultReporterInterface result_reporter) { global::System.IntPtr cPtr = csSmartIdEnginePINVOKE.RecognitionEngine_SpawnSession__SWIG_0(swigCPtr, SessionSettings.getCPtr(session_settings), ResultReporterInterface.getCPtr(result_reporter)); RecognitionSession ret = (cPtr == global::System.IntPtr.Zero) ? null : new RecognitionSession(cPtr, true); if (csSmartIdEnginePINVOKE.SWIGPendingException.Pending) { throw csSmartIdEnginePINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ResultReporterInterface obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }