Class Tray
The Tray Popup class.
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public sealed class Tray : Popup<Tray>
Methods
Name | Description |
---|---|
AnimateViewIn() | Start the animation for this popup. |
AnimateViewOut(DismissType) | Start the hide animation for this popup. |
Build(VisualElement, VisualElement) | Build a new Tray component. |
GetFocusableElement() | Returns the element that will be focused when the view will become visible. The default value is `null`. |
InvokeDismissedEventHandlers(DismissType) | Called when the popup has been dismissed. This method will invoke any handlers attached to the dismissed event. |
SetExpandable(bool) | Set to true to make the tray expandable. |
SetHandleVisible(bool) | Set the handle visibility. |
SetMargin(float) | Set the margin of the tray. |
SetPosition(TrayPosition) | Build a new Tray component. |
SetSize(float) | Set the size of the tray. |
SetTransitionDuration(int) | Set the transition duration. |
ShouldAnimate() | Implement this method to know if the popup should call AnimateViewIn() and AnimateViewOut(DismissType) methods or not. |
ShouldDismiss(DismissType) | Dismiss the Popup. |