public virtual unsafe void OnClose(global::Com.Facebook.Stetho.Websocket.ISimpleSession p0, int p1, string p2)
        {
            if (id_onClose_Lcom_facebook_stetho_websocket_SimpleSession_ILjava_lang_String_ == IntPtr.Zero)
            {
                id_onClose_Lcom_facebook_stetho_websocket_SimpleSession_ILjava_lang_String_ = JNIEnv.GetMethodID(class_ref, "onClose", "(Lcom/facebook/stetho/websocket/SimpleSession;ILjava/lang/String;)V");
            }
            IntPtr native_p2 = JNIEnv.NewString(p2);

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

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onClose_Lcom_facebook_stetho_websocket_SimpleSession_ILjava_lang_String_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onClose", "(Lcom/facebook/stetho/websocket/SimpleSession;ILjava/lang/String;)V"), __args);
                }
            } finally {
                JNIEnv.DeleteLocalRef(native_p2);
            }
        }
        public unsafe JsonRpcPeer(global::Com.Facebook.Stetho.Json.ObjectMapper p0, global::Com.Facebook.Stetho.Websocket.ISimpleSession 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(JsonRpcPeer))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lcom/facebook/stetho/json/ObjectMapper;Lcom/facebook/stetho/websocket/SimpleSession;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/facebook/stetho/json/ObjectMapper;Lcom/facebook/stetho/websocket/SimpleSession;)V", __args);
                    return;
                }

                if (id_ctor_Lcom_facebook_stetho_json_ObjectMapper_Lcom_facebook_stetho_websocket_SimpleSession_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_facebook_stetho_json_ObjectMapper_Lcom_facebook_stetho_websocket_SimpleSession_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/facebook/stetho/json/ObjectMapper;Lcom/facebook/stetho/websocket/SimpleSession;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_facebook_stetho_json_ObjectMapper_Lcom_facebook_stetho_websocket_SimpleSession_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_facebook_stetho_json_ObjectMapper_Lcom_facebook_stetho_websocket_SimpleSession_, __args);
            } finally {
            }
        }
        public virtual unsafe void OnMessage(global::Com.Facebook.Stetho.Websocket.ISimpleSession p0, byte[] p1, int p2)
        {
            if (id_onMessage_Lcom_facebook_stetho_websocket_SimpleSession_arrayBI == IntPtr.Zero)
            {
                id_onMessage_Lcom_facebook_stetho_websocket_SimpleSession_arrayBI = JNIEnv.GetMethodID(class_ref, "onMessage", "(Lcom/facebook/stetho/websocket/SimpleSession;[BI)V");
            }
            IntPtr native_p1 = JNIEnv.NewArray(p1);

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

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onMessage_Lcom_facebook_stetho_websocket_SimpleSession_arrayBI, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onMessage", "(Lcom/facebook/stetho/websocket/SimpleSession;[BI)V"), __args);
                }
            } finally {
                if (p1 != null)
                {
                    JNIEnv.CopyArray(native_p1, p1);
                    JNIEnv.DeleteLocalRef(native_p1);
                }
            }
        }
 static void n_OnError_Lcom_facebook_stetho_websocket_SimpleSession_Ljava_lang_Throwable_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Com.Facebook.Stetho.Inspector.ChromeDevtoolsServer __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.ChromeDevtoolsServer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Stetho.Websocket.ISimpleSession       p0     = (global::Com.Facebook.Stetho.Websocket.ISimpleSession)global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Websocket.ISimpleSession> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.Throwable p1 = global::Java.Lang.Object.GetObject <global::Java.Lang.Throwable> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.OnError(p0, p1);
 }
コード例 #5
0
        static void n_SendText_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Facebook.Stetho.Websocket.ISimpleSession __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Websocket.ISimpleSession> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);

            __this.SendText(p0);
        }
コード例 #6
0
        static void n_Close_ILjava_lang_String_(IntPtr jnienv, IntPtr native__this, int p0, IntPtr native_p1)
        {
            global::Com.Facebook.Stetho.Websocket.ISimpleSession __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Websocket.ISimpleSession> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p1 = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer);

            __this.Close(p0, p1);
        }
        static void n_OnClose_Lcom_facebook_stetho_websocket_SimpleSession_ILjava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1, IntPtr native_p2)
        {
            global::Com.Facebook.Stetho.Inspector.ChromeDevtoolsServer __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.ChromeDevtoolsServer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Facebook.Stetho.Websocket.ISimpleSession       p0     = (global::Com.Facebook.Stetho.Websocket.ISimpleSession)global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Websocket.ISimpleSession> (native_p0, JniHandleOwnership.DoNotTransfer);
            string p2 = JNIEnv.GetString(native_p2, JniHandleOwnership.DoNotTransfer);

            __this.OnClose(p0, p1, p2);
        }
        static void n_OnMessage_Lcom_facebook_stetho_websocket_SimpleSession_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::Com.Facebook.Stetho.Websocket.ISimpleEndpoint __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Websocket.ISimpleEndpoint> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Facebook.Stetho.Websocket.ISimpleSession  p0     = (global::Com.Facebook.Stetho.Websocket.ISimpleSession)global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Websocket.ISimpleSession> (native_p0, JniHandleOwnership.DoNotTransfer);
            string p1 = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer);

            __this.OnMessage(p0, p1);
        }
コード例 #9
0
 static void n_SendBinary_arrayB(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Facebook.Stetho.Websocket.ISimpleSession __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Websocket.ISimpleSession> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     byte[] p0 = (byte[])JNIEnv.GetArray(native_p0, JniHandleOwnership.DoNotTransfer, typeof(byte));
     __this.SendBinary(p0);
     if (p0 != null)
     {
         JNIEnv.CopyArray(p0, native_p0);
     }
 }
 static void n_OnMessage_Lcom_facebook_stetho_websocket_SimpleSession_arrayBI(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, int p2)
 {
     global::Com.Facebook.Stetho.Inspector.ChromeDevtoolsServer __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.ChromeDevtoolsServer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Stetho.Websocket.ISimpleSession       p0     = (global::Com.Facebook.Stetho.Websocket.ISimpleSession)global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Websocket.ISimpleSession> (native_p0, JniHandleOwnership.DoNotTransfer);
     byte[] p1 = (byte[])JNIEnv.GetArray(native_p1, JniHandleOwnership.DoNotTransfer, typeof(byte));
     __this.OnMessage(p0, p1, p2);
     if (p1 != null)
     {
         JNIEnv.CopyArray(p1, native_p1);
     }
 }
        public unsafe void OnOpen(global::Com.Facebook.Stetho.Websocket.ISimpleSession p0)
        {
            if (id_onOpen_Lcom_facebook_stetho_websocket_SimpleSession_ == IntPtr.Zero)
            {
                id_onOpen_Lcom_facebook_stetho_websocket_SimpleSession_ = JNIEnv.GetMethodID(class_ref, "onOpen", "(Lcom/facebook/stetho/websocket/SimpleSession;)V");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue(p0);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onOpen_Lcom_facebook_stetho_websocket_SimpleSession_, __args);
        }
        public unsafe void OnError(global::Com.Facebook.Stetho.Websocket.ISimpleSession p0, global::Java.Lang.Throwable p1)
        {
            if (id_onError_Lcom_facebook_stetho_websocket_SimpleSession_Ljava_lang_Throwable_ == IntPtr.Zero)
            {
                id_onError_Lcom_facebook_stetho_websocket_SimpleSession_Ljava_lang_Throwable_ = JNIEnv.GetMethodID(class_ref, "onError", "(Lcom/facebook/stetho/websocket/SimpleSession;Ljava/lang/Throwable;)V");
            }
            JValue *__args = stackalloc JValue [2];

            __args [0] = new JValue(p0);
            __args [1] = new JValue(p1);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onError_Lcom_facebook_stetho_websocket_SimpleSession_Ljava_lang_Throwable_, __args);
        }
        public unsafe void OnMessage(global::Com.Facebook.Stetho.Websocket.ISimpleSession p0, string p1)
        {
            if (id_onMessage_Lcom_facebook_stetho_websocket_SimpleSession_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_onMessage_Lcom_facebook_stetho_websocket_SimpleSession_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "onMessage", "(Lcom/facebook/stetho/websocket/SimpleSession;Ljava/lang/String;)V");
            }
            IntPtr  native_p1 = JNIEnv.NewString(p1);
            JValue *__args    = stackalloc JValue [2];

            __args [0] = new JValue(p0);
            __args [1] = new JValue(native_p1);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onMessage_Lcom_facebook_stetho_websocket_SimpleSession_Ljava_lang_String_, __args);
            JNIEnv.DeleteLocalRef(native_p1);
        }
        public virtual unsafe void OnOpen(global::Com.Facebook.Stetho.Websocket.ISimpleSession p0)
        {
            if (id_onOpen_Lcom_facebook_stetho_websocket_SimpleSession_ == IntPtr.Zero)
            {
                id_onOpen_Lcom_facebook_stetho_websocket_SimpleSession_ = JNIEnv.GetMethodID(class_ref, "onOpen", "(Lcom/facebook/stetho/websocket/SimpleSession;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onOpen_Lcom_facebook_stetho_websocket_SimpleSession_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onOpen", "(Lcom/facebook/stetho/websocket/SimpleSession;)V"), __args);
                }
            } finally {
            }
        }
コード例 #15
0
 static bool n_IsOpen(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Facebook.Stetho.Websocket.ISimpleSession __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Websocket.ISimpleSession> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.IsOpen);
 }
 static void n_OnOpen_Lcom_facebook_stetho_websocket_SimpleSession_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Facebook.Stetho.Websocket.ISimpleEndpoint __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Websocket.ISimpleEndpoint> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Stetho.Websocket.ISimpleSession  p0     = (global::Com.Facebook.Stetho.Websocket.ISimpleSession)global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Websocket.ISimpleSession> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnOpen(p0);
 }