Ejemplo n.º 1
0
 static void n_OnPreviewStarts_Landroid_view_SurfaceHolder_Lcom_moodstocks_android_camera_Size_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Com.Moodstocks.Android.Camera.CameraPreview.IListener __this = global::Java.Lang.Object.GetObject <global::Com.Moodstocks.Android.Camera.CameraPreview.IListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Views.ISurfaceHolder       p0 = (global::Android.Views.ISurfaceHolder)global::Java.Lang.Object.GetObject <global::Android.Views.ISurfaceHolder> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Moodstocks.Android.Camera.Size p1 = global::Java.Lang.Object.GetObject <global::Com.Moodstocks.Android.Camera.Size> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.OnPreviewStarts(p0, p1);
 }
Ejemplo n.º 2
0
        protected unsafe CameraPreview(global::Android.Views.SurfaceView p0, global::Com.Moodstocks.Android.Camera.CameraPreview.IListener p1)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                if (GetType() != typeof(CameraPreview))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Landroid/view/SurfaceView;Lcom/moodstocks/android/camera/CameraPreview$Listener;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Landroid/view/SurfaceView;Lcom/moodstocks/android/camera/CameraPreview$Listener;)V", __args);
                    return;
                }

                if (id_ctor_Landroid_view_SurfaceView_Lcom_moodstocks_android_camera_CameraPreview_Listener_ == IntPtr.Zero)
                {
                    id_ctor_Landroid_view_SurfaceView_Lcom_moodstocks_android_camera_CameraPreview_Listener_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/view/SurfaceView;Lcom/moodstocks/android/camera/CameraPreview$Listener;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_view_SurfaceView_Lcom_moodstocks_android_camera_CameraPreview_Listener_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Landroid_view_SurfaceView_Lcom_moodstocks_android_camera_CameraPreview_Listener_, __args);
            } finally {
            }
        }