Class AlertableCollection.AlertInfo
java.lang.Object
com.ctre.phoenix6.alerts.AlertableCollection.AlertInfo
- Enclosing class:
AlertableCollection
Information about an alert.
-
Field Details
-
isActive
public final boolean isActiveWhether the alert is active. -
text
The new text to report in the alert, or null to leave the text unchanged.
-
-
Method Details
-
inactive
Gets information for an inactive alert.- Returns:
- Information for an inactive alert
-
active
Gets information for an active alert without changing the alert text.- Returns:
- Information for an active alert without changing the alert text
-
active
Creates new information for an active alert.- Parameters:
text- New text to report in the alert, or null to leave the text unchanged- Returns:
- Information for an active alert
-