Ejemplo n.º 1
0
        public void RemoveViewInMode(XploriaMode mode, ViewRenderer view)
        {
            switch (mode)
            {
            case XploriaMode.SailMode:
                sailViews.Remove(view);
                break;

            case XploriaMode.LandMode:
                landViews.Remove(view);
                break;
            }
        }
Ejemplo n.º 2
0
        public void AddViewInMode(XploriaMode mode, ViewRenderer view)
        {
            switch (mode)
            {
            case XploriaMode.SailMode:
                if (sailViews == null)
                {
                    sailViews = new List <ViewRenderer>();
                }
                sailViews.Add(view);
                break;

            case XploriaMode.LandMode:
                if (landViews == null)
                {
                    landViews = new List <ViewRenderer>();
                }
                landViews.Add(view);
                break;
            }
        }
Ejemplo n.º 3
0
 public void ClearAllViews()
 {
     current = null;
     ValidateActivity();
     views.Clear();
 }
Ejemplo n.º 4
0
 public void RemoveView(ViewRenderer view)
 {
     views?.Remove(view);
 }
Ejemplo n.º 5
0
 private void ActivateView(ViewRenderer view)
 {
     current?.SetActive(false);
     current = view;
     current?.SetActive(true);
 }