public override void OnStop() { arFragment.SetOnTapArPlaneListener(null); if (visual != null) { visual.Destroy(); visual = null; } base.OnStop(); }
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(); }); }