Beispiel #1
0
        public unsafe RuntimeRemoteException(global::Android.OS.RemoteException p0)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Landroid/os/RemoteException;)V";

            if (((global::Java.Lang.Throwable) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Throwable)p0).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
Beispiel #2
0
        public RuntimeRemoteException(global::Android.OS.RemoteException p0) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (Handle != IntPtr.Zero)
            {
                return;
            }

            if (GetType() != typeof(RuntimeRemoteException))
            {
                SetHandle(global::Android.Runtime.JNIEnv.CreateInstance(GetType(), "(Landroid/os/RemoteException;)V", new JValue(p0)), JniHandleOwnership.TransferLocalRef);
                return;
            }

            if (id_ctor_Landroid_os_RemoteException_ == IntPtr.Zero)
            {
                id_ctor_Landroid_os_RemoteException_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/os/RemoteException;)V");
            }
            SetHandle(JNIEnv.NewObject(class_ref, id_ctor_Landroid_os_RemoteException_, new JValue(p0)), JniHandleOwnership.TransferLocalRef);
        }