コード例 #1
0
            public static unsafe global::Google.AR.Core.Config.LightEstimationMode 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$LightEstimationMode;");
                }
                IntPtr native_name = JNIEnv.NewString(name);

                try {
                    JValue *__args = stackalloc JValue [1];
                    __args [0] = new JValue(native_name);
                    global::Google.AR.Core.Config.LightEstimationMode __ret = global::Java.Lang.Object.GetObject <global::Google.AR.Core.Config.LightEstimationMode> (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 SetLightEstimationMode(global::Google.AR.Core.Config.LightEstimationMode lightEstimationMode)
        {
            if (id_setLightEstimationMode_Lcom_google_ar_core_Config_LightEstimationMode_ == IntPtr.Zero)
            {
                id_setLightEstimationMode_Lcom_google_ar_core_Config_LightEstimationMode_ = JNIEnv.GetMethodID(class_ref, "setLightEstimationMode", "(Lcom/google/ar/core/Config$LightEstimationMode;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(lightEstimationMode);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setLightEstimationMode_Lcom_google_ar_core_Config_LightEstimationMode_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setLightEstimationMode", "(Lcom/google/ar/core/Config$LightEstimationMode;)V"), __args);
                }
            } finally {
            }
        }
コード例 #3
0
 static void n_SetLightEstimationMode_Lcom_google_ar_core_Config_LightEstimationMode_(IntPtr jnienv, IntPtr native__this, IntPtr native_lightEstimationMode)
 {
     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.LightEstimationMode lightEstimationMode = global::Java.Lang.Object.GetObject <global::Google.AR.Core.Config.LightEstimationMode> (native_lightEstimationMode, JniHandleOwnership.DoNotTransfer);
     __this.SetLightEstimationMode(lightEstimationMode);
 }