LiveUpdateSegment

A single phase in a Live Update progress bar.

getProgress is interpreted against the sum of segment lengths. With the default length of 1 per segment this matches segments.size(), so callers that do not set a length keep the original behaviour.

Constructors

Link copied to clipboard
constructor(color: Int, length: Int)

Properties

Link copied to clipboard
val color: Int
Link copied to clipboard
val length: Int

Functions

Link copied to clipboard
open fun fromJson(json: JSONObject): LiveUpdateSegment
Parses a segment from its JSON object representation.