LifecycleState enum

The lifecycle state of a video slot within the pool.

This is distinct from PlaybackPhase — it represents the orchestrator's view of a slot, not the player's internal state. A slot transitions through these states as the user scrolls and the orchestrator manages resources.

Inheritance
Available extensions

Values

idle → const LifecycleState

Not in pool. Showing a static thumbnail placeholder.

preloading → const LifecycleState

Disk pre-fetch is in progress for this slot's video.

preparing → const LifecycleState

A decoder has been allocated and is buffering the first frame.

ready → const LifecycleState

First frame is decoded and ready. Waiting for visibility to trigger play.

playing → const LifecycleState

Active playback in progress.

paused → const LifecycleState

Paused — decoder still allocated for instant resume via instance reuse.

buffering → const LifecycleState

Playing but rebuffering due to slow network conditions.

error → const LifecycleState

An error occurred. Showing retry UI to the user.

disposed → const LifecycleState

Player instance has been reclaimed (emergency memory pressure only).

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<LifecycleState>
A constant List of the values in this enum, in order of their declaration.