private static IntPtr Instantiate_Internal(bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback) { IntPtr ptr; INTERNAL_CALL_Instantiate_Internal(showHolograms, onCreatedCallback, out ptr); return(ptr); }
public static void CreateAsync(bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback) { NRPhotoCapture photocapture = new NRPhotoCapture(); photocapture.m_CaptureContext = FrameCaptureContextFactory.Create(); onCreatedCallback?.Invoke(photocapture); }
public static void CreateAsync(bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback) { if (onCreatedCallback == null) { throw new ArgumentNullException("onCreatedCallback"); } Instantiate_Internal(showHolograms, onCreatedCallback); }
private static void InvokeOnCreatedResourceDelegate(OnCaptureResourceCreatedCallback callback, IntPtr nativePtr) { if (nativePtr == IntPtr.Zero) { callback(null); } else { callback(new PhotoCapture(nativePtr)); } }
public static void CreateAsync(bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback) { NRPhotoCapture photocapture = new NRPhotoCapture(); photocapture.CaptureBehaviour = NRCaptureBehaviour.Create(() => { if (onCreatedCallback != null) { onCreatedCallback(photocapture); } }); }
private static extern void INTERNAL_CALL_Instantiate_Internal(bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback, out IntPtr value);
private static IntPtr Instantiate_Internal(bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback) { IntPtr ptr; INTERNAL_CALL_Instantiate_Internal(showHolograms, onCreatedCallback, out ptr); return ptr; }
private extern static IntPtr Instantiate_Internal(bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback);