SystemUI
9/4/25Less than 1 minute
namespace ML.SDK
Class | Sealed
SystemUI
namespace ML.SDK
{
sealed class SystemUI
}Summary
SystemUI class, provides necessary functions for creators to manage and interact with SystemUI items.
Methods
| Method | Description |
|---|---|
UpdateSystemUIItems(List<TrayItemSO>, List<TrayItemSO>) | First removes the items, then add the items.Registers the items in the itemsToAdd, and Unregister the items in the itemsToRemove.passing null will have no effect.Priority is always to item addition: if the same item is passed to both itemsToRemove and itemsToAdd to both then the item will be added. |
| RemoveSystemUIItem(string) | Removes the systemUI item, identified by the itemID |
RemoveSystemUIItems(List<string>) | Removes SystemUI items, identified by the itemIDs provided in the list. |
| IsSystemUIItemRegistered(string) | checks whether a specific system UI item, identified by itemID, is registered or not. |
| IsItemActive(string) | used to check whether a specific item identified by an itemID is currently active or not. |
| TryGetItemState(string, ItemControllerState) | Get the item state of the specified itemID, if the itemID is registered. |
| TryActivateWindow(string) | Activate the window specified by the itemID, if the itemID is registered and is a window item. |
| TryDeactivateWindow(string) | Deactivate the window specified by the itemID, if the itemID is registered and is a window item. |
| TryGetWindow(string, SystemUIWindow) | Gets the SystemUI Window component of the specified itemID, if it is registered and it a window item. |
RegisterTrayStatusUpdateEventListener(Action<SystemTrayState>) | |
UnRegisterTrayStatusUpdateEventListener(Action<SystemTrayState>) | |
| TryGetSystemTrayState(SystemTrayState) | Get the system tray state. |
| GetSystemTrayState() |

