Reason

enum Reason : Enum<Reason>

Entries

Link copied to clipboard

Used then Spec is an output of (auto)conversion from Java to Kotlin, landing such Spec should be allowed to simplify the review process.

Link copied to clipboard

Used when devs need to use WorkingRanges API, which is not yet supported in Litho Kotlin API.

Link copied to clipboard

Used when devs need to use OnUpdateStateWithTransition API. Convert this Spec to the Litho Kotlin API or change USES_ON_UPDATE_STATE_WITH_TRANSITION to other appropriate Reason.

Link copied to clipboard

Used when this Section has other child Sections or it is used inside an existing Section as a child itself. This doesn't include SingleComponentSection, which can be replaced by its wrapped Component, or a DataDiffSection, which already can be replaced by a Lazy Collection.

Link copied to clipboard

Used when Component.Builder is required at call site, e.g. when creating new native template component bridges.

Link copied to clipboard

Used only to mark Kotlin Specs that were created before the Spec API deprecation. Convert this Spec to the Litho Kotlin API or change LEGACY to other appropriate Reason.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): Reason

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.