public unsafe PendingRequest(long p0, global::Com.Facebook.Stetho.Inspector.Jsonrpc.IPendingRequestCallback p1)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                if (GetType() != typeof(PendingRequest))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(JLcom/facebook/stetho/inspector/jsonrpc/PendingRequestCallback;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(JLcom/facebook/stetho/inspector/jsonrpc/PendingRequestCallback;)V", __args);
                    return;
                }

                if (id_ctor_JLcom_facebook_stetho_inspector_jsonrpc_PendingRequestCallback_ == IntPtr.Zero)
                {
                    id_ctor_JLcom_facebook_stetho_inspector_jsonrpc_PendingRequestCallback_ = JNIEnv.GetMethodID(class_ref, "<init>", "(JLcom/facebook/stetho/inspector/jsonrpc/PendingRequestCallback;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_JLcom_facebook_stetho_inspector_jsonrpc_PendingRequestCallback_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_JLcom_facebook_stetho_inspector_jsonrpc_PendingRequestCallback_, __args);
            } finally {
            }
        }
예제 #2
0
 static void n_OnResponse_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_Lcom_facebook_stetho_inspector_jsonrpc_protocol_JsonRpcResponse_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Com.Facebook.Stetho.Inspector.Jsonrpc.IPendingRequestCallback  __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Jsonrpc.IPendingRequestCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer              p0     = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Stetho.Inspector.Jsonrpc.Protocol.JsonRpcResponse p1     = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Jsonrpc.Protocol.JsonRpcResponse> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.OnResponse(p0, p1);
 }
        static void n_InvokeMethod_Ljava_lang_String_Ljava_lang_Object_Lcom_facebook_stetho_inspector_jsonrpc_PendingRequestCallback_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2)
        {
            global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);

            global::Java.Lang.Object p1 = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_p1, JniHandleOwnership.DoNotTransfer);
            global::Com.Facebook.Stetho.Inspector.Jsonrpc.IPendingRequestCallback p2 = (global::Com.Facebook.Stetho.Inspector.Jsonrpc.IPendingRequestCallback)global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Jsonrpc.IPendingRequestCallback> (native_p2, JniHandleOwnership.DoNotTransfer);
            __this.InvokeMethod(p0, p1, p2);
        }
        public virtual unsafe void InvokeMethod(string p0, global::Java.Lang.Object p1, global::Com.Facebook.Stetho.Inspector.Jsonrpc.IPendingRequestCallback p2)
        {
            if (id_invokeMethod_Ljava_lang_String_Ljava_lang_Object_Lcom_facebook_stetho_inspector_jsonrpc_PendingRequestCallback_ == IntPtr.Zero)
            {
                id_invokeMethod_Ljava_lang_String_Ljava_lang_Object_Lcom_facebook_stetho_inspector_jsonrpc_PendingRequestCallback_ = JNIEnv.GetMethodID(class_ref, "invokeMethod", "(Ljava/lang/String;Ljava/lang/Object;Lcom/facebook/stetho/inspector/jsonrpc/PendingRequestCallback;)V");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_invokeMethod_Ljava_lang_String_Ljava_lang_Object_Lcom_facebook_stetho_inspector_jsonrpc_PendingRequestCallback_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "invokeMethod", "(Ljava/lang/String;Ljava/lang/Object;Lcom/facebook/stetho/inspector/jsonrpc/PendingRequestCallback;)V"), __args);
                }
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }