TimelineOptions

class TimelineOptions(val stripHeight: Dp = FilmstripTimelineDefaults.StripHeight, val tileWidth: Dp = FilmstripTimelineDefaults.TileWidth, val rulerHeight: Dp = FilmstripTimelineDefaults.RulerHeight, val showRuler: Boolean = true, val showPlayhead: Boolean = true, val followPlayhead: Boolean = true, val trimConstraint: TrimConstraint = FilmstripTimelineDefaults.Trim, val maxBytes: Long = FilmstripFramesDefaults.MaxBytes, val overscan: Int = FilmstripFramesDefaults.Overscan, val pinchZoom: Boolean = true, val wheelZoom: Boolean = true)(source)

Everything optional about a FilmstripTimeline.

Every field has a default, so a caller names only what it is changing.

Constructors

Link copied to clipboard
constructor(stripHeight: Dp = FilmstripTimelineDefaults.StripHeight, tileWidth: Dp = FilmstripTimelineDefaults.TileWidth, rulerHeight: Dp = FilmstripTimelineDefaults.RulerHeight, showRuler: Boolean = true, showPlayhead: Boolean = true, followPlayhead: Boolean = true, trimConstraint: TrimConstraint = FilmstripTimelineDefaults.Trim, maxBytes: Long = FilmstripFramesDefaults.MaxBytes, overscan: Int = FilmstripFramesDefaults.Overscan, pinchZoom: Boolean = true, wheelZoom: Boolean = true)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether the strip scrolls itself to keep the playhead on screen.

Link copied to clipboard

How many bytes of decoded frames the strip holds.

Link copied to clipboard

How many tiles either side of the visible ones are kept ready.

Link copied to clipboard

Whether a pinch gesture steps the zoom ladder.

Link copied to clipboard

How tall the ruler is drawn.

Link copied to clipboard

Whether the playhead is drawn.

Link copied to clipboard

Whether the ruler is drawn. It is also the timeline's scrub surface, so a timeline without one cannot be scrubbed.

Link copied to clipboard

How tall the strip of tiles is drawn.

Link copied to clipboard

How wide one tile is drawn, which is what sets how many there are.

Link copied to clipboard

What a trim gesture is allowed to produce.

Link copied to clipboard

Whether a modified scroll wheel steps the zoom ladder.