public override void OnStop()
        {
            arFragment.SetOnTapArPlaneListener(null);

            if (visual != null)
            {
                visual.Destroy();
                visual = null;
            }

            base.OnStop();
        }
示例#2
0
 public void OnAnchorCreationFailed(AnchorVisual placedAnchor, string errorMessage)
 {
     placedAnchor.Destroy();
     FragmentHelper.BackToPreviousFragment(this);
     RunOnUiThread(() =>
     {
         string toastMessage = "Failed to save anchor: " + errorMessage;
         Toast.MakeText(this, toastMessage, ToastLength.Long).Show();
     });
 }