LoadPhase

sealed class LoadPhase

The loading state of a view that builds its managers asynchronously.

Every Wemap view starts in Loading and settles in either Ready or Failed. Observe it through LoadPhaseProvider.loadPhases, or suspend until it settles with awaitLoaded.

Inheritors

Types

Link copied to clipboard
data class Failed(val error: Throwable) : LoadPhase

Loading failed.

Link copied to clipboard
data object Loading : LoadPhase

The view is still loading. Its managers are not available yet.

Link copied to clipboard
data object Ready : LoadPhase

Loading succeeded — the view is loaded, the managers are built, and the points of interest are downloaded.

Properties

Link copied to clipboard
open val error: Throwable?

The failure that ended loading, or null while still loading or when loading succeeded.

Link copied to clipboard

Indicates whether the view is still loading.

Link copied to clipboard

Indicates whether the view finished loading successfully.