/CustomWebView

Primary LanguageJavaMIT LicenseMIT

Introduction

CustomWebView is an extended form of web viewer with more customization and flexibility (For MIT AI2 and its distros)
Latest Version : 12
Required Api : 21
Permissions: android.permission.WRITE_EXTERNAL_STORAGE,android.permission.ACCESS_DOWNLOAD_MANAGER,android.permission.ACCESS_FINE_LOCATION,android.permission.RECORD_AUDIO, android.permission.MODIFY_AUDIO_SETTINGS, android.permission.CAMERA,android.permission.VIBRATE,android.webkit.resource.VIDEO_CAPTURE,android.webkit.resource.AUDIO_CAPTURE,android.launcher.permission.INSTALL_SHORTCUT

Features

  • More customization options than normal web viewer
  • Long Click event
  • New window request event
  • Close window request event
  • Load local files and content using Html and Js
  • Find words and phrases in webview
  • Evaluate Js and get result
  • Upload files to websites
  • Error occurred event
  • Get output from console
  • Form Resubmission event
  • Get content height
  • Get SSL Certificate of website
  • Get/Set cookies for particular url
  • Event for permission(s) request and grant permission(s) manually
  • Print web content
  • A wide range of tools for working with JavaScript
  • Accepts external links/Adds your app in browsers list when you use BrowserPromptHelper extension
  • Download files using built-in DownloadHelper add-on
  • Scroll Changed event and function to scroll to particular position
  • Create and Remove webviews dynamically
  • Ad blocker
  • Full screen video feature (OnShowCustomView and OnHideCustomView)
  • Pause and Resume webview
  • Get internal history
  • Create webpage shortcuts
  • Download offline pages and load them without internet connection

FAQ

Will disabling DeepLink property not add my app in browsers list?
Ans:- No, that's entirely a different thing.It specifies whether deep urls (such as tel:, whatsapp:) should open respective apps or not.

What is BrowserPromptHelper extension?
Ans:- It is an helper class/extension which you can use if you want to add your app in browsers list.

How can I set a screen name as activity to be launched after clicking external link?
Ans:- You have two methods to do that-
i) Change activity name from BrowserPromptHelper class manually and compile the sources.
ii) Get extension from here: CustomWebView extension generator

Reference Links

1.WebView Docs (Click here)
2.MIT AI2 Community (Click here)
3.Kodular Community (Click here)

Sponsers