TWSLoadingState

sealed class TWSLoadingState

TWSLoadingState is a sealed class for constraining possible loading states.

NOTE: This class is a modified version of the original loading state representation from the Accompanist WebView library. Modifications were made to add support for force-refresh states initiated by user actions and more detailed loading progress tracking.

See Loading and Finished.

Inheritors

Types

Link copied to clipboard

Describes a webview that has finished loading content.

Link copied to clipboard

Describes a WebView that will be reloaded as a result of a users pull to refresh action.

Link copied to clipboard

Describes a WebView that has not yet loaded for the first time.

Link copied to clipboard
data class Loading(val progress: Float, val mainFrameLoaded: Boolean, val isUserForceRefresh: Boolean) : TWSLoadingState

Describes a WebView.progress for all resources and page