Пример #1
0
            public static unsafe global::Google.AR.Core.Config.PlaneFindingMode 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$PlaneFindingMode;");
                }
                IntPtr native_name = JNIEnv.NewString(name);

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

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setPlaneFindingMode_Lcom_google_ar_core_Config_PlaneFindingMode_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setPlaneFindingMode", "(Lcom/google/ar/core/Config$PlaneFindingMode;)V"), __args);
                }
            } finally {
            }
        }
Пример #3
0
 static void n_SetPlaneFindingMode_Lcom_google_ar_core_Config_PlaneFindingMode_(IntPtr jnienv, IntPtr native__this, IntPtr native_planeFindingMode)
 {
     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.PlaneFindingMode planeFindingMode = global::Java.Lang.Object.GetObject <global::Google.AR.Core.Config.PlaneFindingMode> (native_planeFindingMode, JniHandleOwnership.DoNotTransfer);
     __this.SetPlaneFindingMode(planeFindingMode);
 }