UniquePriority

class UniquePriority(val priority: MainProcessPanel.Priority) : Comparable<MainProcessPanel.UniquePriority>

A UniquePriority assigned to a MainProcessPanel offers the ability to sort panels not just by priority, but also by which priority level was most recently set.

When the Priority levels of two UniquePrioritys are the same, the progressive and unique updateId is used to determine which MainProcessPanel has set it before the other.

A UniquePriority does not contain timing information of when a MainProcessPanel set it. A system UI can however keep track of when it starts showing the panel for timing related behaviour.

This information can be used by the system UI to choose without ambiguity which MainProcessPanel to display.

Constructors

Link copied to clipboard
fun UniquePriority(priority: MainProcessPanel.Priority)

Properties

Link copied to clipboard
val priority: MainProcessPanel.Priority
Link copied to clipboard
val updateId: Long

The unique ID associated with the priority.

Functions

Link copied to clipboard
open operator override fun compareTo(other: MainProcessPanel.UniquePriority): Int
Link copied to clipboard
open override fun toString(): String