Example #1
0
        static bool n_OnSurfaceTextureDestroyed_Landroid_graphics_SurfaceTexture_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Baidu.Platform.Comapi.Map.F __this = global::Java.Lang.Object.GetObject <global::Com.Baidu.Platform.Comapi.Map.F> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.Graphics.SurfaceTexture p0     = global::Java.Lang.Object.GetObject <global::Android.Graphics.SurfaceTexture> (native_p0, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.OnSurfaceTextureDestroyed(p0);

            return(__ret);
        }
Example #2
0
        public unsafe void CreateSurface(global::Android.Graphics.SurfaceTexture p0)
        {
            if (id_createSurface_Landroid_graphics_SurfaceTexture_ == IntPtr.Zero)
            {
                id_createSurface_Landroid_graphics_SurfaceTexture_ = JNIEnv.GetMethodID(class_ref, "createSurface", "(Landroid/graphics/SurfaceTexture;)V");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_createSurface_Landroid_graphics_SurfaceTexture_, __args);
        }
Example #3
0
        public virtual unsafe void OnSurfaceTextureUpdated(global::Android.Graphics.SurfaceTexture p0)
        {
            if (id_onSurfaceTextureUpdated_Landroid_graphics_SurfaceTexture_ == IntPtr.Zero)
            {
                id_onSurfaceTextureUpdated_Landroid_graphics_SurfaceTexture_ = JNIEnv.GetMethodID(class_ref, "onSurfaceTextureUpdated", "(Landroid/graphics/SurfaceTexture;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onSurfaceTextureUpdated_Landroid_graphics_SurfaceTexture_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onSurfaceTextureUpdated", "(Landroid/graphics/SurfaceTexture;)V"), __args);
                }
            } finally {
            }
        }
Example #4
0
        public virtual unsafe bool OnSurfaceTextureDestroyed(global::Android.Graphics.SurfaceTexture p0)
        {
            if (id_onSurfaceTextureDestroyed_Landroid_graphics_SurfaceTexture_ == IntPtr.Zero)
            {
                id_onSurfaceTextureDestroyed_Landroid_graphics_SurfaceTexture_ = JNIEnv.GetMethodID(class_ref, "onSurfaceTextureDestroyed", "(Landroid/graphics/SurfaceTexture;)Z");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                bool __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_onSurfaceTextureDestroyed_Landroid_graphics_SurfaceTexture_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualBooleanMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onSurfaceTextureDestroyed", "(Landroid/graphics/SurfaceTexture;)Z"), __args);
                }
                return(__ret);
            } finally {
            }
        }
Example #5
0
 static void n_CreateSurface_Landroid_graphics_SurfaceTexture_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Org.Webrtc.IEglBase10           __this = global::Java.Lang.Object.GetObject <global::Org.Webrtc.IEglBase10> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Graphics.SurfaceTexture p0     = global::Java.Lang.Object.GetObject <global::Android.Graphics.SurfaceTexture> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.CreateSurface(p0);
 }
Example #6
0
 static void n_OnSurfaceTextureSizeChanged_Landroid_graphics_SurfaceTexture_II(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1, int p2)
 {
     global::Com.Baidu.Platform.Comapi.Map.F __this = global::Java.Lang.Object.GetObject <global::Com.Baidu.Platform.Comapi.Map.F> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Graphics.SurfaceTexture p0     = global::Java.Lang.Object.GetObject <global::Android.Graphics.SurfaceTexture> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnSurfaceTextureSizeChanged(p0, p1, p2);
 }
 public void OnSurfaceTextureUpdated(global::Android.Graphics.SurfaceTexture surface)
 {
 }
 public void OnSurfaceTextureSizeChanged(global::Android.Graphics.SurfaceTexture surface, int width, int height)
 {
     Owner.ConfigureTransform(width, height);
 }
 public bool OnSurfaceTextureDestroyed(global::Android.Graphics.SurfaceTexture surface)
 {
     return(true);
 }
 public void OnSurfaceTextureAvailable(global::Android.Graphics.SurfaceTexture surface, int width, int height)
 {
     Owner.OpenCamera(width, height);
 }