public unsafe InstanceInner(global::Xamarin.Test.NotificationCompatBase __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(InstanceInner))
                    {
                        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_Lxamarin_test_NotificationCompatBase_ == IntPtr.Zero)
                    {
                        id_ctor_Lxamarin_test_NotificationCompatBase_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lxamarin/test/NotificationCompatBase;)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lxamarin_test_NotificationCompatBase_, __args),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lxamarin_test_NotificationCompatBase_, __args);
                } finally {
                }
            }
            public unsafe InstanceInner(global::Xamarin.Test.NotificationCompatBase __self)
                : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
            {
                string __id = "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";)V";

                if (Handle != IntPtr.Zero)
                {
                    return;
                }

                try {
                    JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                    __args [0] = new JniArgumentValue((__self == null) ? IntPtr.Zero : __self.Handle);
                    var __r = _members.InstanceMethods.StartCreateInstance(__id, GetType(), __args);
                    SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                    _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
                } finally {
                }
            }
示例#3
0
            // Metadata.xml XPath constructor reference: path="/api/package[@name='xamarin.test']/class[@name='NotificationCompatBase.InstanceInner']/constructor[@name='NotificationCompatBase.InstanceInner' and count(parameter)=1 and parameter[1][@type='xamarin.test.NotificationCompatBase']]"
            public unsafe InstanceInner(global::Xamarin.Test.NotificationCompatBase __self) : base(ref *InvalidJniObjectReference, JniObjectReferenceOptions.None)
            {
                string __id = "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";)V";

                if (PeerReference.IsValid)
                {
                    return;
                }

                try {
                    JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                    __args [0] = new JniArgumentValue(__self);
                    var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                    Construct(ref __r, JniObjectReferenceOptions.CopyAndDispose);
                    _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
                } finally {
                    global::System.GC.KeepAlive(__self);
                }
            }