コード例 #1
0
        public void OnAddAnchorClicked(View view)
        {
            var placementFragment = new AnchorPlacementFragment();

            placementFragment.OnAnchorPlaced = OnAnchorPlaced;
            FragmentHelper.PushFragment(this, placementFragment);
        }
コード例 #2
0
        public void OnStartWatcherClicked(View view)
        {
            WatcherFragment watcherFragment = new WatcherFragment();

            watcherFragment.CloudAnchorManager = cloudAnchorManager;
            watcherFragment.OnAnchorDiscovered = OnAnchorDiscovered;
            FragmentHelper.PushFragment(this, watcherFragment);
        }
コード例 #3
0
        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);
        }