예제 #1
0
            public static unsafe global::Google.AR.Core.Config.UpdateMode ValueOf(string name)
            {
                if (id_valueOf_Ljava_lang_String_ == IntPtr.Zero)
                {
                    id_valueOf_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "valueOf", "(Ljava/lang/String;)Lcom/google/ar/core/Config$UpdateMode;");
                }
                IntPtr native_name = JNIEnv.NewString(name);

                try {
                    JValue *__args = stackalloc JValue [1];
                    __args [0] = new JValue(native_name);
                    global::Google.AR.Core.Config.UpdateMode __ret = global::Java.Lang.Object.GetObject <global::Google.AR.Core.Config.UpdateMode> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                    return(__ret);
                } finally {
                    JNIEnv.DeleteLocalRef(native_name);
                }
            }
예제 #2
0
        public virtual unsafe void SetUpdateMode(global::Google.AR.Core.Config.UpdateMode updateMode)
        {
            if (id_setUpdateMode_Lcom_google_ar_core_Config_UpdateMode_ == IntPtr.Zero)
            {
                id_setUpdateMode_Lcom_google_ar_core_Config_UpdateMode_ = JNIEnv.GetMethodID(class_ref, "setUpdateMode", "(Lcom/google/ar/core/Config$UpdateMode;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(updateMode);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setUpdateMode_Lcom_google_ar_core_Config_UpdateMode_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setUpdateMode", "(Lcom/google/ar/core/Config$UpdateMode;)V"), __args);
                }
            } finally {
            }
        }
예제 #3
0
 static void n_SetUpdateMode_Lcom_google_ar_core_Config_UpdateMode_(IntPtr jnienv, IntPtr native__this, IntPtr native_updateMode)
 {
     global::Google.AR.Core.Config            __this     = global::Java.Lang.Object.GetObject <global::Google.AR.Core.Config> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Google.AR.Core.Config.UpdateMode updateMode = global::Java.Lang.Object.GetObject <global::Google.AR.Core.Config.UpdateMode> (native_updateMode, JniHandleOwnership.DoNotTransfer);
     __this.SetUpdateMode(updateMode);
 }