Example #1
0
        public unsafe global::Google.AR.Core.Anchor CreateAnchor(global::Google.AR.Core.Pose pose)
        {
            if (id_createAnchor_Lcom_google_ar_core_Pose_ == IntPtr.Zero)
            {
                id_createAnchor_Lcom_google_ar_core_Pose_ = JNIEnv.GetMethodID(class_ref, "createAnchor", "(Lcom/google/ar/core/Pose;)Lcom/google/ar/core/Anchor;");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue(pose);
            global::Google.AR.Core.Anchor __ret = global::Java.Lang.Object.GetObject <global::Google.AR.Core.Anchor> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_createAnchor_Lcom_google_ar_core_Pose_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
 static IntPtr n_GetPose(IntPtr jnienv, IntPtr native__this)
 {
     global::Google.AR.Core.Anchor __this = global::Java.Lang.Object.GetObject <global::Google.AR.Core.Anchor> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.Pose));
 }
 static void n_Detach(IntPtr jnienv, IntPtr native__this)
 {
     global::Google.AR.Core.Anchor __this = global::Java.Lang.Object.GetObject <global::Google.AR.Core.Anchor> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Detach();
 }