Пример #1
0
            public unsafe ConnectionReceiver(global::Com.Liveperson.Infra.InternetConnectionService __self)
                : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
            {
                if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
                {
                    return;
                }

                try {
                    JValue *__args = stackalloc JValue [1];
                    __args [0] = new JValue(__self);
                    if (((object)this).GetType() != typeof(ConnectionReceiver))
                    {
                        SetHandle(
                            global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";)V", __args),
                            JniHandleOwnership.TransferLocalRef);
                        global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";)V", __args);
                        return;
                    }

                    if (id_ctor_Lcom_liveperson_infra_InternetConnectionService_ == IntPtr.Zero)
                    {
                        id_ctor_Lcom_liveperson_infra_InternetConnectionService_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/liveperson/infra/InternetConnectionService;)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_liveperson_infra_InternetConnectionService_, __args),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_liveperson_infra_InternetConnectionService_, __args);
                } finally {
                }
            }
Пример #2
0
 static void n_UnRegisteredReceiver(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Infra.InternetConnectionService __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.InternetConnectionService> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.UnRegisteredReceiver();
 }