Beispiel #1
0
        public virtual unsafe void Set(global::Com.Instabug.Library.InstabugCustomTextPlaceHolder.Key p0, string p1)
        {
            if (id_set_Lcom_instabug_library_InstabugCustomTextPlaceHolder_Key_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_set_Lcom_instabug_library_InstabugCustomTextPlaceHolder_Key_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "set", "(Lcom/instabug/library/InstabugCustomTextPlaceHolder$Key;Ljava/lang/String;)V");
            }
            IntPtr native_p1 = JNIEnv.NewString(p1);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_set_Lcom_instabug_library_InstabugCustomTextPlaceHolder_Key_Ljava_lang_String_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "set", "(Lcom/instabug/library/InstabugCustomTextPlaceHolder$Key;Ljava/lang/String;)V"), __args);
                }
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
Beispiel #2
0
        static void n_Set_Lcom_instabug_library_InstabugCustomTextPlaceHolder_Key_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::Com.Instabug.Library.InstabugCustomTextPlaceHolder     __this = global::Java.Lang.Object.GetObject <global::Com.Instabug.Library.InstabugCustomTextPlaceHolder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Instabug.Library.InstabugCustomTextPlaceHolder.Key p0     = global::Java.Lang.Object.GetObject <global::Com.Instabug.Library.InstabugCustomTextPlaceHolder.Key> (native_p0, JniHandleOwnership.DoNotTransfer);
            string p1 = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer);

            __this.Set(p0, p1);
        }
Beispiel #3
0
        static IntPtr n_Get_Lcom_instabug_library_InstabugCustomTextPlaceHolder_Key_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Instabug.Library.InstabugCustomTextPlaceHolder     __this = global::Java.Lang.Object.GetObject <global::Com.Instabug.Library.InstabugCustomTextPlaceHolder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Instabug.Library.InstabugCustomTextPlaceHolder.Key p0     = global::Java.Lang.Object.GetObject <global::Com.Instabug.Library.InstabugCustomTextPlaceHolder.Key> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.NewString(__this.Get(p0));

            return(__ret);
        }
Beispiel #4
0
            public static unsafe global::Com.Instabug.Library.InstabugCustomTextPlaceHolder.Key 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/instabug/library/InstabugCustomTextPlaceHolder$Key;");
                }
                IntPtr native_p0 = JNIEnv.NewString(p0);

                try {
                    JValue *__args = stackalloc JValue [1];
                    __args [0] = new JValue(native_p0);
                    global::Com.Instabug.Library.InstabugCustomTextPlaceHolder.Key __ret = global::Java.Lang.Object.GetObject <global::Com.Instabug.Library.InstabugCustomTextPlaceHolder.Key> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                    return(__ret);
                } finally {
                    JNIEnv.DeleteLocalRef(native_p0);
                }
            }
Beispiel #5
0
        public virtual unsafe string Get(global::Com.Instabug.Library.InstabugCustomTextPlaceHolder.Key p0)
        {
            if (id_get_Lcom_instabug_library_InstabugCustomTextPlaceHolder_Key_ == IntPtr.Zero)
            {
                id_get_Lcom_instabug_library_InstabugCustomTextPlaceHolder_Key_ = JNIEnv.GetMethodID(class_ref, "get", "(Lcom/instabug/library/InstabugCustomTextPlaceHolder$Key;)Ljava/lang/String;");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                string __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = JNIEnv.GetString(JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_get_Lcom_instabug_library_InstabugCustomTextPlaceHolder_Key_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = JNIEnv.GetString(JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "get", "(Lcom/instabug/library/InstabugCustomTextPlaceHolder$Key;)Ljava/lang/String;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }