Class BottomNavBarItem
A bottom navigation bar item visual element.
Implements
Inherited Members
VisualElement.ExecuteDefaultAction(EventBase)
VisualElement.Focus()
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.cacheAsBitmap
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class BottomNavBarItem : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IPressable
Constructors
BottomNavBarItem()
Default constructor.
Declaration
public BottomNavBarItem()
BottomNavBarItem(string, string, Action)
Constructor.
Declaration
public BottomNavBarItem(string icon, string label, Action clickHandler)
Parameters
Type | Name | Description |
---|---|---|
string | icon | The BottomNavBarItem's icon. |
string | label | The BottomNavBarItem's label. |
Action | clickHandler | The BottomNavBarItem's click handler. |
Fields
iconUssClassName
The BottomNavBarItem's icon USS class name.
Declaration
public static readonly string iconUssClassName
Field Value
Type | Description |
---|---|
string |
labelUssClassName
The BottomNavBarItem's label USS class name.
Declaration
public static readonly string labelUssClassName
Field Value
Type | Description |
---|---|
string |
ussClassName
The BottomNavBarItem's USS class name.
Declaration
public static readonly string ussClassName
Field Value
Type | Description |
---|---|
string |
Properties
clickable
Clickable Manipulator for this BottomNavBarItem.
Declaration
public Pressable clickable { get; set; }
Property Value
Type | Description |
---|---|
Pressable |
icon
The BottomNavBarItem's icon.
Declaration
public string icon { get; set; }
Property Value
Type | Description |
---|---|
string |
iconVariant
The BottomNavBarItem's icon variant.
Declaration
public IconVariant iconVariant { get; set; }
Property Value
Type | Description |
---|---|
IconVariant |
isSelected
Whether the BottomNavBarItem is selected.
Declaration
public bool isSelected { get; set; }
Property Value
Type | Description |
---|---|
bool |
label
The BottomNavBarItem's label.
Declaration
public string label { get; set; }
Property Value
Type | Description |
---|---|
string |
selectedIconVariant
The BottomNavBarItem's selected icon variant.
Declaration
public IconVariant selectedIconVariant { get; set; }
Property Value
Type | Description |
---|---|
IconVariant |