Feature module

The WebView feature module includes all the presentation logic required to display WebViews in your app. If you need to include this module, add it to your build.gradle:

implementation ("com.poqstudio:content.webview:$VERSION_NAME")

Architecture

The general architecture of the WebView screen
The general architecture of the WebView screen

  • WebScreenActivity is the entry point to the WebView screen.
  • WebScreenFragment is the main fragment for the WebView screen.
  • WebScreenView is the main view for the WebView screen. It uses internally WebViewLayout to display the web page, inject cookies, CSS, and Javascript.
  • WebScreenViewModel is the main ViewModel which creates WebSettings object. It gets the cookies from the account if the user is logged in.