public void OnAddAnchorClicked(View view) { var placementFragment = new AnchorPlacementFragment(); placementFragment.OnAnchorPlaced = OnAnchorPlaced; FragmentHelper.PushFragment(this, placementFragment); }
public void OnStartWatcherClicked(View view) { WatcherFragment watcherFragment = new WatcherFragment(); watcherFragment.CloudAnchorManager = cloudAnchorManager; watcherFragment.OnAnchorDiscovered = OnAnchorDiscovered; FragmentHelper.PushFragment(this, watcherFragment); }
public void OnAnchorPlaced(AnchorVisual placedAnchor) { var creationFragment = new AnchorCreationFragment(); creationFragment.OnAnchorCreated = OnAnchorCreated; creationFragment.OnAnchorCreationFailed = OnAnchorCreationFailed; creationFragment.CloudAnchorManager = cloudAnchorManager; creationFragment.PlacedVisual = placedAnchor; FragmentHelper.BackToPreviousFragment(this); FragmentHelper.PushFragment(this, creationFragment); }