Action

class Action

A Luscii action, a scheduled measurement the user may take.

Actions are equal to other Actions by their id only.

Types

Link copied to clipboard
@Serializable
data class Id : Parcelable, Serializable
Link copied to clipboard

A specification of how something can be measured.

Link copied to clipboard
sealed interface LaunchableStatus

The status of whether this action is launchable.

Link copied to clipboard
data class Measurements(val action: Action, val completedAt: ZonedDateTime, instrumentMeasurements: List<Action.Instrument.Measurements>) : List<Action.Instrument.Measurements>

A collection of measurements per Instrument that were taken for the given action.

Properties

Link copied to clipboard
Link copied to clipboard
val icon: URI?

A link to an icon SVG file.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Name of the action, provided in the system's language, or English as a fallback.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Returns the current status of whether this action is launchable right now (using system time).

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Returns true if this action is launchable right now (using system time).