Package-level declarations
Types
Represents the result of loading and transforming a web snippet, including the final URL and content metadata.
TWSLoadingState is a sealed class for constraining possible loading states.
TWSViewDeepLinkInterceptor
is an implementation of TWSViewInterceptor that handles deep link URLs by launching the appropriate in-app activity if the URL matches the app's package name.
TWSViewInterceptor is a functional interface used to intercept URLs within a WebView. This interface provides a single method, handleUrl, which takes a URL as input and returns a Boolean indicating whether the URL has been handled by the application.
Allows control over the navigation of a WebView from outside the composable. E.g. for performing a back/forward navigation in response to the user clicking the "up" or "down" button in a TopAppBar.
TWSViewNoOpInterceptor
is a TWSViewInterceptor that ignores all URLs, allowing the WebView to load them by default.
A state holder to hold the state for the WebView.
Represents different types of content that can be loaded in a WebView.
A wrapper class to hold errors from the WebView.
Functions
Creates a TWSView state that persists across recompositions and is saved across activity recreation. This state is remembered via a key and stored using Composes rememberSaveable
to restore state after process death.
Creates and remembers a TWSViewNavigator with the default CoroutineScope.
Creates and remembers a TWSViewNavigator with an optional key and default CoroutineScope.
Creates a TWSView state that persists across recompositions, configured to display URL with optional additional headers.