Beispiel #1
0
        public unsafe global::Com.Facebook.Stetho.Inspector.Elements.NodeType GetNodeType(global::Java.Lang.Object p0)
        {
            if (id_getNodeType_Ljava_lang_Object_ == IntPtr.Zero)
            {
                id_getNodeType_Ljava_lang_Object_ = JNIEnv.GetMethodID(class_ref, "getNodeType", "(Ljava/lang/Object;)Lcom/facebook/stetho/inspector/elements/NodeType;");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue(p0);
            global::Com.Facebook.Stetho.Inspector.Elements.NodeType __ret = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Elements.NodeType> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_getNodeType_Ljava_lang_Object_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
        public static unsafe global::Com.Facebook.Stetho.Inspector.Elements.NodeType ValueOf(string p0)
        {
            if (id_valueOf_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_valueOf_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "valueOf", "(Ljava/lang/String;)Lcom/facebook/stetho/inspector/elements/NodeType;");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                global::Com.Facebook.Stetho.Inspector.Elements.NodeType __ret = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Elements.NodeType> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }