// Token: 0x0600006E RID: 110 RVA: 0x00003D2F File Offset: 0x00001F2F public ListContainer(List <Displayable> children, ListFlow flow = ListFlow.COLUMN, ListDirection direction = ListDirection.NORMAL) { this.children = children; this.flow = flow; this.direction = direction; }
public HUDElementList() { Width = 100; Height = 100; Spacing = 10; Direction = ListDirection.Vertical; is_layout_valid = false; }
/// <summary> /// It will scroll till it finds the element based on the given direction. If you need something that is below that /// element, this will not work, as this will stop scrolling when it finds the element. In this case use the /// ScrollToFullView method. /// </summary> /// <param name="direction">Represents the Enum in Share class.</param> /// <returns>The <see cref="AppiumWebElement"/> of the element found</returns> public static AppiumWebElement ScrollToPartialView(ListDirection direction) { GlobalVar.AndroidDriver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(GlobalVar.TimeSpan); var uiAutomator = new UiScrollable().Build(direction); try { return(GlobalVar.AndroidDriver.FindElementByAndroidUIAutomator(uiAutomator)); } catch (Exception ex) { Assert.Fail("ScrollToPartialView threw an exception: " + ex.Message); } return(null); }
public virtual void getItems(ListDirection direction) { switch (direction) { case ListDirection.down: getItemsDown(); break; case ListDirection.up: getItemsUp(); break; default: getItemsDown(); break; } }
/// <summary> /// Builds a string concatenation of UiScrollable Type based on a direction /// </summary> /// <param name="direction"> Represents the Enum in Share class, it can be: /// Vertical ; Horizontal /// </param> public string Build(ListDirection direction) { //_stringBuilder.Append(";"); verify if I need this SetAs(direction.ToString()); return(_stringBuilder.ToString()); }
/// <summary> /// Sets the scrolling direction of the list. /// Maps to UiScrollable.setAsHorizontalList() or UiScrollable.setAsVerticalList() depending on the provided <see cref="ListDirection"/>. /// </summary> /// <param name="direction"></param> /// <returns></returns> public AndroidUiScrollable SetScrollDirection(ListDirection direction) { _builder.AppendFormat(".setAs{0}List()", direction); return(this); }
public ListContainer(ListFlow flow = ListFlow.COLUMN, ListDirection direction = ListDirection.NORMAL) : this(new List <Displayable>(), flow, direction) { }