Exemplo n.º 1
0
        public virtual unsafe bool AddSpringConfig(global::Com.Facebook.Rebound.SpringConfig p0, string p1)
        {
            if (id_addSpringConfig_Lcom_facebook_rebound_SpringConfig_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_addSpringConfig_Lcom_facebook_rebound_SpringConfig_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "addSpringConfig", "(Lcom/facebook/rebound/SpringConfig;Ljava/lang/String;)Z");
            }
            IntPtr native_p1 = JNIEnv.NewString(p1);

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

                bool __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_addSpringConfig_Lcom_facebook_rebound_SpringConfig_Ljava_lang_String_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualBooleanMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "addSpringConfig", "(Lcom/facebook/rebound/SpringConfig;Ljava/lang/String;)Z"), __args);
                }
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
Exemplo n.º 2
0
        static bool n_RemoveSpringConfig_Lcom_facebook_rebound_SpringConfig_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Facebook.Rebound.SpringConfigRegistry __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Rebound.SpringConfigRegistry> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Facebook.Rebound.SpringConfig         p0     = global::Java.Lang.Object.GetObject <global::Com.Facebook.Rebound.SpringConfig> (native_p0, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.RemoveSpringConfig(p0);

            return(__ret);
        }
Exemplo n.º 3
0
        static bool n_AddSpringConfig_Lcom_facebook_rebound_SpringConfig_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::Com.Facebook.Rebound.SpringConfigRegistry __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Rebound.SpringConfigRegistry> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Facebook.Rebound.SpringConfig         p0     = global::Java.Lang.Object.GetObject <global::Com.Facebook.Rebound.SpringConfig> (native_p0, JniHandleOwnership.DoNotTransfer);
            string p1    = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer);
            bool   __ret = __this.AddSpringConfig(p0, p1);

            return(__ret);
        }
Exemplo n.º 4
0
        public virtual unsafe bool RemoveSpringConfig(global::Com.Facebook.Rebound.SpringConfig p0)
        {
            if (id_removeSpringConfig_Lcom_facebook_rebound_SpringConfig_ == IntPtr.Zero)
            {
                id_removeSpringConfig_Lcom_facebook_rebound_SpringConfig_ = JNIEnv.GetMethodID(class_ref, "removeSpringConfig", "(Lcom/facebook/rebound/SpringConfig;)Z");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                bool __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_removeSpringConfig_Lcom_facebook_rebound_SpringConfig_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualBooleanMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "removeSpringConfig", "(Lcom/facebook/rebound/SpringConfig;)Z"), __args);
                }
                return(__ret);
            } finally {
            }
        }