static void n_Register_Lcom_facebook_stetho_server_http_PathMatcher_Lcom_facebook_stetho_server_http_HttpHandler_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Com.Facebook.Stetho.Server.Http.HandlerRegistry __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.HandlerRegistry> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Stetho.Server.Http.IPathMatcher    p0     = (global::Com.Facebook.Stetho.Server.Http.IPathMatcher)global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.IPathMatcher> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Stetho.Server.Http.IHttpHandler    p1     = (global::Com.Facebook.Stetho.Server.Http.IHttpHandler)global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.IHttpHandler> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.Register(p0, p1);
 }
示例#2
0
        static bool n_Match_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Facebook.Stetho.Server.Http.IPathMatcher __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.IPathMatcher> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0    = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);
            bool   __ret = __this.Match(p0);

            return(__ret);
        }
        public virtual unsafe void Register(global::Com.Facebook.Stetho.Server.Http.IPathMatcher p0, global::Com.Facebook.Stetho.Server.Http.IHttpHandler p1)
        {
            if (id_register_Lcom_facebook_stetho_server_http_PathMatcher_Lcom_facebook_stetho_server_http_HttpHandler_ == IntPtr.Zero)
            {
                id_register_Lcom_facebook_stetho_server_http_PathMatcher_Lcom_facebook_stetho_server_http_HttpHandler_ = JNIEnv.GetMethodID(class_ref, "register", "(Lcom/facebook/stetho/server/http/PathMatcher;Lcom/facebook/stetho/server/http/HttpHandler;)V");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_register_Lcom_facebook_stetho_server_http_PathMatcher_Lcom_facebook_stetho_server_http_HttpHandler_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "register", "(Lcom/facebook/stetho/server/http/PathMatcher;Lcom/facebook/stetho/server/http/HttpHandler;)V"), __args);
                }
            } finally {
            }
        }