Example #1
0
        public virtual unsafe void SetListener(global::Com.Facebook.Stetho.Inspector.Helper.IPeerRegistrationListener p0)
        {
            if (id_setListener_Lcom_facebook_stetho_inspector_helper_PeerRegistrationListener_ == IntPtr.Zero)
            {
                id_setListener_Lcom_facebook_stetho_inspector_helper_PeerRegistrationListener_ = JNIEnv.GetMethodID(class_ref, "setListener", "(Lcom/facebook/stetho/inspector/helper/PeerRegistrationListener;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setListener_Lcom_facebook_stetho_inspector_helper_PeerRegistrationListener_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setListener", "(Lcom/facebook/stetho/inspector/helper/PeerRegistrationListener;)V"), __args);
                }
            } finally {
            }
        }
Example #2
0
 static void n_OnPeerRegistered_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Facebook.Stetho.Inspector.Helper.IPeerRegistrationListener __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Helper.IPeerRegistrationListener> (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);
     __this.OnPeerRegistered(p0);
 }
Example #3
0
 static void n_SetListener_Lcom_facebook_stetho_inspector_helper_PeerRegistrationListener_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Facebook.Stetho.Inspector.Helper.ChromePeerManager         __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Helper.ChromePeerManager> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Stetho.Inspector.Helper.IPeerRegistrationListener p0     = (global::Com.Facebook.Stetho.Inspector.Helper.IPeerRegistrationListener)global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Helper.IPeerRegistrationListener> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.SetListener(p0);
 }