Exemplo n.º 1
0
        private static IntPtr Instantiate_Internal(bool showHolograms, PhotoCapture.OnCaptureResourceCreatedCallback onCreatedCallback)
        {
            IntPtr result;

            PhotoCapture.INTERNAL_CALL_Instantiate_Internal(showHolograms, onCreatedCallback, out result);
            return(result);
        }
Exemplo n.º 2
0
 public static void CreateAsync(bool showHolograms, PhotoCapture.OnCaptureResourceCreatedCallback onCreatedCallback)
 {
     if (onCreatedCallback == null)
     {
         throw new ArgumentNullException("onCreatedCallback");
     }
     PhotoCapture.Instantiate_Internal(showHolograms, onCreatedCallback);
 }
Exemplo n.º 3
0
        public static void CreateAsync(PhotoCapture.OnCaptureResourceCreatedCallback onCreatedCallback)
        {
            bool flag = onCreatedCallback == null;

            if (flag)
            {
                throw new ArgumentNullException("onCreatedCallback");
            }
            PhotoCapture.Instantiate_Internal(false, onCreatedCallback);
        }
Exemplo n.º 4
0
 private static void InvokeOnCreatedResourceDelegate(PhotoCapture.OnCaptureResourceCreatedCallback callback, IntPtr nativePtr)
 {
     if (nativePtr == IntPtr.Zero)
     {
         callback(null);
     }
     else
     {
         callback(new PhotoCapture(nativePtr));
     }
 }
Exemplo n.º 5
0
 private static extern void INTERNAL_CALL_Instantiate_Internal(bool showHolograms, PhotoCapture.OnCaptureResourceCreatedCallback onCreatedCallback, out IntPtr value);
Exemplo n.º 6
0
 private static extern IntPtr Instantiate_Internal(bool showHolograms, PhotoCapture.OnCaptureResourceCreatedCallback onCreatedCallback);