CustomWebView : An extended form of Web Viewer

1.Introduction

Latest Version : 11
Released: 2020-05-12T18:30:00Z
Last Updated:2021-07-12T18:30:00Z
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

2.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 download method
  • 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

3.Designer Properties

image

4.Blocks

CustomWebView

Events

image

image

image

Methods/Functions

image

image

image

image

Properties

image

BrowserPromptHelper
May not be compatible with Kodular

image

DownloadHelper
image

5.Documentation

Old Documentation

Events

  • AfterJavaScriptEvaluated
    Event raised after evaluating Js with result
    component_event
    result ~ text
  • Cookies Removed
    Event raised after ‘ClearCokies’ method with result
    component_event (1)
    successful ~ boolean
  • File Upload Needed
    Event raised when file uploading is needed
    component_event (19)
    mimeType ~ text
    isCaptureEnabled ~ boolean
  • Find Result Received
    Event raised after ‘Find’ method with int ‘activeMatchOrdinal’,‘numberOfMatches’ and ‘isDoneCounting’
    component_event (2)
    activeMatchOrdinal ~ int
    numberOfMatches ~ int
    isDoneCounting ~ boolean
  • Got Ssl Certificate
    Event raised after getting SSL certificate of current displayed url/website with boolean ‘isSecure’ and Strings ‘issuedBy’,‘issuedTo’ and ‘validTill’.If ‘isSecure’ is false and other values are empty then assume that website is not secure
    component_event (3)
    isSecure ~ boolean
    issuedBy ~ text
    issuedTo ~ text
    validTill ~ text
  • Got Print Result
    Event raised after getting previus print’s result
    component_event (4)
    id ~ text
    isCompleted ~ boolean
    isFailed ~ boolean
    isBlocked ~ boolean
  • Long Clicked
    Event raised when something is long clicked in webview with item(image,string,empty,etc) and type(item type like 0,1,8,etc).Note: ‘SecondaryUrl’ is returned when long clicked item has both image and url.In that case ‘item’ returns the image url while ‘secondaryUrl’ returns the source url.
    component_event (17)
    item ~ text
    secondaryUrl ~ text
    type - int

Learn more: WebView.HitTestResult

  • On Console Message
    Event raised after getting console message
    component_event (6)
    message ~ text
    lineNumber ~ int
    sourceID ~ int
    level ~ text
  • On Download Needed
    Event raised when downloading is needed
    component_event (7)
    url ~ text
    contentDisposition ~ text
    mimeType ~ text
    size ~ int (long)
  • On Error Received
    Event raised when any error is received during loading url and returns message,error code and failing url
    component_event (8)
    message ~ text
    errorCode ~ int
    url ~ text
  • On Form Resubmission
    Event raised when resubmission of form is needed
    component_event (9)
  • On Hide Custom View
    Event raised when current page exits from full screen mode
    component_event (21)
  • On Js Alert
    Event raised when Js have to show an alert to user with message to be shown
    component_event (15)
    url ~ text
    message ~ text
  • On Js Confirm
    Tells to display a confirm dialog to the user
    component_event (16)
    url ~ text
    message ~ text
  • On Js Prompt
    Event raised when JavaScript needs input from user
    component_event (17)
    url ~ text
    message ~ text
    defaultValue ~ text
  • On New Window Requested
    Event raised when new window is requested by webview with target url ,boolean ‘isDialog’ and ‘isPopup’
    component_event (10)
    url ~ text
    isDialog ~ boolean
    isPopUp ~ boolean
  • On Permission Request
    Event raised when a website asks for specific permission(s)
    component_event (11)
    permissionsList ~ list < String >
  • On Progress Changed
    Event raised when page loading progress has changed
    component_event (12)
    progress ~ int
  • On Received Http Auth Request
    Notifies that the WebView received an HTTP authentication request
    component_event (18)
    host ~ text
    realm ~ text
  • On Scroll Changed
    Event raised when webview gets scrolled
    component_event (16)
    scrollX ~ int
    scrollY ~ int
    oldScrollX ~ int
    oldScrollY ~ int
    canGoLeft ~ boolean
    canGoRight ~ boolean
  • On WebView Created
    Event raised when a webview gets created and returns created webview’s id
    image
    id ~ int
  • On WebView Changed
    Event raised when current webview gets changed and returns old and new webview’s ids
    image
    oldId ~ int
    newId ~ int
  • On WebView Removed
    Event raised when a webview gets removed and returns removed webview’s id
    image
    id ~ int
  • On Show Custom View
    Event raised when current page enters in full screen mode
    component_event (22)
  • Page Started
    Event indicating that page loading has started in web view
    component_event (19)
    url ~ text
  • Page Loaded
    Event raised when page loading has finished
    component_event (13)
  • Web View String Change
    Event indicating change in webview string
    component_event (14)
    value ~ text

Methods

  • Can Go Back
    Gets whether this WebView has a back history item
    component_method (3)
    Returns : boolean
  • Can Go Back Or Forward
    Gets whether the page can go back or forward the given number of steps
    component_method (4)
    steps ~ int
    Returns : boolean
  • Can Go Forward
    Gets whether this WebView has a forward history item
    component_method (5)
    Returns : boolean
  • Cancel Printing
    Cancels current print job. You can request cancellation of a queued, started, blocked, or failed print job
    component_method (6)
  • Clear Cache
    Clears the resource cache
    component_method (7)
  • Clear Internal History
    Tells this WebView to clear its internal back/forward list
    component_method (8)
  • Clear Location
    Clears all location preferences
    component_method (9)
  • Clear Matches
    Clears the highlighting surrounding text matches
    component_method (10)
  • Confirm Js
    Whether to proceed JavaScript originated request
    component_method (31)
    confirm ~ boolean
  • Content Height
    Returns content height of HTML content
    component_method (11)
    Returns : int
  • Continue Js
    Inputs a confirmation response to Js
    component_method (32)
    input ~ text
  • Create WebView
    Creates the webview in given arrangement by id. Horizontal and Vertical Arrangements are recommended.
    component_method (14)
    container ~ arrangement
    id ~ int
  • Current Id
    Returns current id
    image
    Returns : int
  • Dismiss Js Alert
    Dismiss previously requested Js alert
    component_method (33)
  • Download
    Downloads the file from url.Use this method with ‘OnDownloadNeeded’.
    Provide empty string in ‘fileName’ and ‘dwnloadDir’ to use default values.
    component_method (2)
    url ~ text
    mimeType ~ text
    contentDisposition ~ text
    fileName ~ text
    downloadDir ~ text
  • Evaluate JavaScript
    Asynchronously evaluates JavaScript in the context of the currently displayed page
    component_method (13)
    script ~ text
  • Find
    Finds all instances of find on the page and highlights them, asynchronously. Successive calls to this will cancel any pending searches
    component_method (14)
    string ~ text
  • Find Next
    Highlights and scrolls to the next match if ‘forward’ is true else scrolls to previous match
    component_method (15)
    forward ~ boolean
  • Get Cookies
    Get cookies for specific url
    component_method (16)
    url ~ text
  • Get Ids
    Returns a list of avilable ids
    component_method (18)
    Returns : list
  • Get Scroll X
    Return the scrolled left position of the webview
    component_method (11)
    Returns : int
  • Get Scroll Y
    Return the scrolled top position of the webview
    component_method (12)
    Returns : int
  • Get Ssl Certificate
    Gets the SSL certificate for the main top-level page and raises ‘GotCertificate’ event
    component_method (17)
  • Get WebView
    Returns webview object from id
    image
  • Go Back
    Goes back in the history of this WebView
    component_method (18)
  • Go Back Or Forward
    Goes to the history item that is the number of steps away from the current item. Steps is negative if backward and positive if forward
    component_method (19)
    steps ~ int
  • Go Forward
    Goes forward in the history of this WebView
    component_method (20)
  • Go To Url
    Loads the given URL
    component_method (21)
    url ~ text
  • Grant Permission
    Grants permissions to webview.It accepts a list of permissions
    component_method (22)
    permissions ~ list < String >
  • Load HTML
    Loads the given data into this WebView using a ‘data’ scheme URL
    component_method (23)
    html ~ text
  • Page Down
    Scrolls the contents of the WebView down by half the page size
    image
    bottom ~ boolean
  • Page Up
    Scrolls the contents of the WebView up by half the page size
    image
    top ~ boolean
  • Print Web Content
    Prints the content of webview
    image
  • Proceed Http Auth Request
    Instructs the WebView to proceed with the authentication with the given credentials.If both parameters are empty then it will cancel the request
    component_method (34)
    username ~ text
    password ~ text
  • Reload
    Reloads the current URL
    component_method (25)
  • Remove WebView
    Destroys the webview and removes it completely from the view system
    component_method (16)
  • Restart Printing
    Restarts current/previous print job. You can request restart of a failed print job
    component_method (26)
  • Resubmit Form
    Whether to resubmit form or not
    component_method (28)
    reSubmit ~ boolean
  • Set Visibility
    Sets the visibility of webview by id
    component_method (20)
    id ~ int
    visibility ~ boolean
  • Set WebView
    Set specific webview to current webview by id.Set webview will be active and receive all method calls.
    component_method (17)
    id ~ int
  • Scroll To
    Scrolls the webview to given position
    component_method (13)
    x ~ int
    y ~ int
  • Stop Loading
    Stops the current load
    component_method (30)
  • Upload File
    Uploads the given file from content uri
    component_method (4)
    contentUri ~ text
  • Zoom By
    Performs a zoom operation in the WebView by given zoom percent
    image
    zoomP ~ int
  • Zoom In
    Performs zoom in in the WebView
    image
  • Zoom Out
    Performs zoom out in the WebView
    image

Properties

  • Ad Hosts
    Sets the ad hosts which will be blocked

    Accepts text
  • Auto Load Images
    Get/Set auto loading of images
    image
    Accepts boolean
    Default : true
  • Auto Play Media
    Get/Set auto play of media (audio/video).
    image
    Accepts bolean
    Default : false
  • Background Color
    Set background color of web view
    image
    Accepts int
    Default : 0 (Transparent) for empty webview , -1 (White) for non-empty webview and -16777216 (Black) for HTML content
  • Block Ads
    Sets whether to block ads or not

    Accepts boolean
    Default : false
  • Block Network Loads
    Get/Set block network loads
    image
    Accepts boolean
    Default : false
  • Current Page Title
    Get current page title
    image
    Returns : text
  • Current Url
    Get current url
    image
    Returns : text
  • Desktop Mode
    Get/Set desktop mode
    image
    Accepts boolean
    Default : false
  • Deep Links
    Gets/Sets whether to enable deep linking in webview
    image
    Default : false
  • Display Zoom
    Sets whether the WebView should display on-screen zoom controls
    image
    Accepts boolean
    Default : true
    Note: This property should be used before creating any webview.
  • Enable Js
    Get/Set whether the WebView should supports Js execution
    image
    Accepts boolean
    Default : true
  • File Access
    Get/Set whether the WebView can access local files
    image
    Accepts boolean
    Default : false
  • Follow Links
    Get/Set whether to follow links when they are clicked in the WebView
    image
    Accepts boolean
    Default :true
  • Font Size
    Get/Set font size of text in WebView
    image
    Accepts int
    Default : 16
  • Ignore Ssl errors
    Get/Set whether to ignore SSL errors
    image
    Accepts boolean
    Default : false
  • Load with Overview Mode
    Get/Set whether the WebView loads pages in overview mode, that is, zooms out the content to fit on screen by width
    image
    Accepts boolean
    Default : true
  • Long Clickable
    Get/Set whether text selection and context menu are enabled
    image
    Accepts boolean
    Default : true
  • Prompt For Permission
    Get/Set whether webview will prompt for permission and raise ‘OnPermissionRequest’ event or not
    image
    Accepts boolean
    Default : true
  • Scrollbar
    Set whether webview will show horizonatal and vertical scrollbar
    image
    Accepts boolean
    Default : true
  • Support Multiple Windows
    Get/Set whether the WebView supports multiple windows and raised ‘OnNewWindowRequest’ event
    image
    Accepts boolean
    Default : true
  • Use Wide View Port
    Get/Set whether the WebView should enable support for the ‘viewport’ HTML meta tag or should use a wide viewport
    image
    Accepts boolean
    Default : true
  • Visible
    Returns the visibility of current webview
    image
    Returns : boolean
  • Web View String
    Get/Set web view string
    image
    image
    Accepts string
    Default : " "
  • Zoom Enabled
    Set whether web view supports zoom and built-in zoom controls are enabled or not
    image
    Accepts boolean
    Default : true
    Note: This property should be used before creating any webview.
  • Zoom Percent
    Set zoom percent of web view
    image
    Accepts int
    Default : 100
    Note: This property should be used before creating any webview.
Latest Documentation

Docs for: BrowserPromptHelper

Events

OnResume

Event raised when app gets resumed and gives the url which started this activity/screen if there is any else empty string
Params

url | text


Methods

GetStartUrl

Returns the url which started the current activity

Return type : text


Docs for: CustomWebView

Events

AfterArchiveSaved

Event raised after 'SaveArchive' method.If 'success' is true then returns file path else empty string.
Params

success | boolean
filePath | text


AfterJavaScriptEvaluated

Event raised after evaluating Js and returns result.
Params

result | text


CookiesRemoved

Event raised after 'ClearCokies' method with result
Params

successful | boolean


FileUploadNeeded

Event raised when file uploading is needed
Params

id | number
mimeType | text
isCaptureEnabled | boolean


FindResultReceived

Event raised after 'Find' method with int 'activeMatchOrdinal','numberOfMatches' and 'isDoneCounting'
Params

id | number
activeMatchOrdinal | number
numberOfMatches | number
isDoneCounting | boolean


GotCertificate

Event raised after getting SSL certificate of current displayed url/website with boolean 'isSecure' and Strings 'issuedBy','issuedTo' and 'validTill'.If 'isSecure' is false and other values are empty then assume that website is not secure
Params

isSecure | boolean
issuedBy | text
issuedTo | text
validTill | text


GotPrintResult

Event raised after getting previus print's result.
Params

printId | text
isCompleted | boolean
isFailed | boolean
isBlocked | boolean


LongClicked

Event raised when something is long clicked in webview with item(image,string,empty,etc) and type(item type like 0,1,8,etc)
Params

id | number
item | text
secondaryUrl | text
type | number


OnCloseWindowRequest

Event triggered when a window needs to be closed
Params

id | number


OnConsoleMessage

Event raised after getting console message.
Params

message | text
lineNumber | number
sourceID | number
level | text


OnDownloadNeeded

Event raised when downloading is needed.
Params

id | number
url | text
contentDisposition | text
mimeType | text
size | number


OnErrorReceived

Event raised when any error is received during loading url and returns message,error code and failing url
Params

id | number
message | text
errorCode | number
url | text


OnFormResubmission

Event raised when resubmission of form is needed
Params

id | number


OnGeolocationRequested

Event for OnGeolocationRequested
Params

origin | text


OnHideCustomView

Event raised when current page exits from full screen mode

OnJsAlert

Event raised when Js have to show an alert to user
Params

id | number
url | text
message | text


OnJsConfirm

Tells to display a confirm dialog to the user.
Params

id | number
url | text
message | text


OnJsPrompt

Event raised when JavaScript needs input from user
Params

id | number
url | text
message | text
defaultValue | text


OnNewWindowRequest

Event raised when new window is requested by webview with boolean 'isDialog' and 'isPopup'
Params

id | number
isDialog | boolean
isPopup | boolean


OnPermissionRequest

Event raised when a website asks for specific permission(s) in list format.
Params

permissionsList | list


OnProgressChanged

Event raised when page loading progress has changed.
Params

id | number
progress | number


OnReceivedHttpAuthRequest

Notifies that the WebView received an HTTP authentication request.
Params

id | number
host | text
realm | text


OnReceivedSslError

Event for OnReceivedSslError
Params

errorCode | number


OnScrollChanged

Event raised when webview gets scrolled
Params

id | number
scrollX | number
scrollY | number
oldScrollX | number
oldScrollY | number
canGoLeft | boolean
canGoRight | boolean


OnShowCustomView

Event raised when current page enters in full screen mode

PageLoaded

Event raised when page loading has finished.
Params

id | number


PageStarted

Event indicating that page loading has started in web view.
Params

id | number
url | text


WebViewStringChanged

When the JavaScript calls AppInventor.setWebViewString this event is run.
Params

value | text


Methods

AllowGeolocationAccess

Method for AllowGeolocationAccess
Params

allow | boolean

remember | boolean


CanGoBack

Gets whether this WebView has a back history item

Return type : boolean


CanGoBackOrForward

Gets whether the page can go back or forward the given number of steps.
Params

steps | number

Return type : boolean


CanGoForward

Gets whether this WebView has a forward history item.

Return type : boolean


CancelPrinting

Cancels current print job. You can request cancellation of a queued, started, blocked, or failed print job.

ClearCache

Clears the resource cache.

ClearCookies

Removes all cookies and raises 'CookiesRemoved' event

ClearInternalHistory

Tells this WebView to clear its internal back/forward list.

ClearLocation

Clear all location preferences.

ClearMatches

Clears the highlighting surrounding text matches.

ConfirmJs

Whether to proceed JavaScript originated request
Params

confirm | boolean


ContentHeight

Gets height of HTML content

Return type : number


ContinueJs

Inputs a confirmation response to Js
Params

input | text


CreateShortcut

Creates a shortcut of given website on home screen
Params

url | text

iconPath | text

title | text


CreateWebView

Creates the webview in given arrangement with id
Params

container | component

id | number


CurrentId

Returns current id

Return type : number


DismissJsAlert

Dismiss previously requested Js alert

EvaluateJavaScript

Asynchronously evaluates JavaScript in the context of the currently displayed page.
Params

script | text


Find

Finds all instances of find on the page and highlights them, asynchronously. Successive calls to this will cancel any pending searches.
Params

string | text


FindNext

Highlights and scrolls to the next match if 'forward' is true else scrolls to previous match.
Params

forward | boolean


GetCookies

Get cookies for specific url
Params

url | text

Return type : text


GetIds

Returns a list of used ids

Return type : list


GetInternalHistory

Get internal history of given webview.
Params

id | number

Return type : list


GetProgress

Gets the progress for the given webview
Params

id | number

Return type : number


GetScrollX

Return the scrolled left position of the webview

Return type : number


GetScrollY

Return the scrolled top position of the webview

Return type : number


GetSslCertificate

Gets the SSL certificate for the main top-level page and raises 'GotCertificate' event

GetWebView

Returns webview object from id
Params

id | number

Return type : any


GoBack

Goes back in the history of this WebView.

GoBackOrForward

Goes to the history item that is the number of steps away from the current item. Steps is negative if backward and positive if forward.
Params

steps | number


GoForward

Goes forward in the history of this WebView.

GoToUrl

Loads the given URL.
Params

url | text


GrantPermission

Grants given permissions to webview.Use empty list to deny the request.
Params

permissions | text


HideCustomView

Hides previously shown custom view

InvokeZoomPicker

Invokes the graphical zoom picker widget for this WebView. This will result in the zoom widget appearing on the screen to control the zoom level of this WebView.Note that it does not checks whether zoom is enabled or not.

LoadHtml

Loads the given data into this WebView using a 'data' scheme URL.
Params

html | text


LoadInNewWindow

Loads requested url in given webview
Params

id | number


LoadWithHeaders

Loads the given URL with the specified additional HTTP headers defined is list of lists.
Params

url | text

headers | list


PageDown

Scrolls the contents of the WebView down by half the page size
Params

bottom | boolean


PageUp

Scrolls the contents of the WebView up by half the page size
Params

top | boolean


PauseWebView

Does a best-effort attempt to pause any processing that can be paused safely, such as animations and geolocation. Note that this call does not pause JavaScript.
Params

id | number


PostData

Loads the URL with postData using 'POST' method into active WebView.
Params

url | text

data | text


PrintWebContent

Prints the content of webview with given document name
Params

documentName | text


ProceedHttpAuthRequest

Instructs the WebView to proceed with the authentication with the given credentials.If both parameters are empty then it will cancel the request.
Params

username | text

password | text


ProceedSslError

Method for ProceedSslError
Params

proceed | boolean


Reload

Reloads the current URL.

RemoveWebView

Destroys the webview and removes it completely from view system
Params

id | number


RestartPrinting

Restarts current/previous print job. You can request restart of a failed print job.

ResubmitForm

Whether to resubmit form or not.
Params

reSubmit | boolean


ResumeWebView

Resumes the previously paused WebView.
Params

id | number


SaveArchive

Saves the current site as a web archive
Params

dir | text


ScrollTo

Scrolls the webview to given position
Params

x | number

y | number


SetCookies

Sets cookies for given url
Params

url | text

cookieString | text


SetVisibility

Sets the visibility of webview by id
Params

id | number

visibility | boolean


SetWebView

Set specific webview to current webview by id
Params

id | number


StopLoading

Stops the current load.

UploadFile

Uploads the given file from content uri.Use empty string to cancel the upload request.
Params

contentUri | text


ZoomBy

Performs a zoom operation in the WebView by given zoom percent
Params

zoomP | number


ZoomIn

Performs zoom in in the WebView

ZoomOut

Performs zoom out in the WebView

Properties

AdHosts

Sets the ad hosts which will be blocked

Property Type : write-only
Accepts : text


AutoLoadImages

Sets whether the WebView should load image resources

Property Type : read-write
Accepts : boolean


AutoplayMedia

Sets whether the WebView requires a user gesture to play media

Property Type : read-write
Accepts : boolean


BackgroundColor

Sets background color of webview

Property Type : write-only
Accepts : number


BlockAds

Sets whether to block ads or not

Property Type : write-only
Accepts : boolean


BlockNetworkLoads

Sets whether the WebView should not load resources from the network.Use this to save data.

Property Type : read-write
Accepts : boolean


CacheMode

Sets cache mode for active webview

Property Type : read-write
Accepts : number


CurrentPageTitle

Title of the page currently viewed

Property Type : read-only
Accepts : text


CurrentUrl

URL of the page currently viewed

Property Type : read-only
Accepts : text


DeepLinks

Sets whether to enable deep links or not i.e. tel: , whatsapp: , sms: , etc.

Property Type : read-write
Accepts : boolean


DesktopMode

Sets whether to load content in desktop mode

Property Type : read-write
Accepts : boolean


DisplayZoom

Sets whether the WebView should display on-screen zoom controls

Property Type : read-write
Accepts : boolean


EnableJS

Tells the WebView to enable JavaScript execution.

Property Type : read-write
Accepts : boolean


FileAccess

Sets whether webview can access local files.Use this to enable file uploading and loading files using HTML

Property Type : read-write
Accepts : boolean


FollowLinks

Determines whether to follow links when they are tapped in the WebViewer.If you follow links, you can use GoBack and GoForward to navigate the browser history

Property Type : read-write
Accepts : boolean


FontSize

Sets the default font size of text. The default is 16.

Property Type : read-write
Accepts : number


InitialScale

Sets the initial scale for active WebView. 0 means default. If initial scale is greater than 0, WebView starts with this value as initial scale.

Property Type : write-only
Accepts : number


LayerType

Property for LayerType

Property Type : read-write
Accepts : number


LoadWithOverviewMode

Sets whether the WebView loads pages in overview mode, that is, zooms out the content to fit on screen by width. This setting is taken into account when the content width is greater than the width of the WebView control.

Property Type : read-write
Accepts : boolean


LongClickable

Sets whether to enable text selection and context menu

Property Type : read-write
Accepts : boolean


OverScrollMode

Property for OverScrollMode

Property Type : read-write
Accepts : number


PromptForPermission

Returns whether webview will prompt for permission and raise 'OnPermissionRequest' event or not

Property Type : read-write
Accepts : boolean


RotationAngle

Property for RotationAngle

Property Type : read-write
Accepts : number


ScrollBar

Whether to display horizonatal and vertical scrollbars or not

Property Type : write-only
Accepts : boolean


ScrollBarStyle

Property for ScrollBarStyle

Property Type : read-write
Accepts : number


SupportMultipleWindows

Sets whether the WebView supports multiple windows

Property Type : read-write
Accepts : boolean


UseWideViewPort

Sets whether the WebView should enable support for the 'viewport' HTML meta tag or should use a wide viewport.

Property Type : read-write
Accepts : boolean


UserAgent

Get webview user agent

Property Type : read-write
Accepts : text


UsesLocation

Whether or not to give the application permission to use the Javascript geolocation API

Property Type : write-only
Accepts : boolean


Visible

Returns the visibility of current webview

Property Type : read-only
Accepts : boolean


WebViewString

Set webview string

Property Type : read-write
Accepts : text


ZoomEnabled

Sets whether the WebView should support zooming using its on-screen zoom controls and gestures

Property Type : read-write
Accepts : boolean


ZoomPercent

Sets the zoom of the page in percent. The default is 100

Property Type : read-write
Accepts : number


Docs for: DownloadHelper

Events

DownloadCompleted

Event invoked when downloading gets completed

DownloadProgressChanged

Event invoked when downloading progress changes
Params

progress | number


Methods

Cancel

Cancels the current download request

Download

Downloads the given file
Params

url | text

mimeType | text

contentDisposition | text

fileName | text

downloadDir | text


OpenFile

Tries to open the last downloaded file

6.Downloads

Aix file

7.Open Source

This extension is open source so that anyone can modify and improve it :innocent:
Here is the repo on GitHub:

8.Credits

I would like to say thank you to @Mateja , @Yoshi , @sivasreerama7 , @themaayur , @Xoma , @karan_kawad and @rizubarury for testing extension and giving their precious feedbacks.
Also thank you to @almeidapablo for motivating me.
And a lot of thanks to Kodular for this great platform :heart:
A lot of thanks to @Ken for sources of his Deep Links extension and for his guidance :heart_eyes:

9.Liked my work/Want to donate

Thank you for reading this.
Hope this helps ! :grin:

10.Updates/Bug Fixes

116 Likes
Pop up ads of web viewer
Video call [FREE]: Using Agora.io
Sunny Custom Webview
Gps permission for webview
How to allow microphone in webviewer?
ListPermission: with this extension it is possible to make a whitelist at once
Embed videos not playing in web viewer
Adblock extension?
webview open target links URL
How to add deep link system in my app
How to use DeepLink at Webviewer?
Screenshot WebViewer
web_Viewer => Load HTML problem
Create Multiple (Unlimited) Webview/Tabs Dynamically | Guide
Images not loading in kodular webview but the same works fine in google mobile view
Is there a block in case of loading error in Webview?
Ads Block list , Ads host file for custom webview >4000 websites
I want to call External Browser when webviewer required New Tab
✅ SOLVED: Default Browser
WebView Ads Block
Google Connect button
How to open Web WhatsApp using WebViewer?
Webviewer issue
Full screen webview problem
Swf and kodular
How to mark the text part in the images?
How to give camera permission in Web view
How to disable javascript onclick javascript alert in Webview?
Webview print: how could i activate?
How to load html file in app with internet audio camera/video permissions
Delete specific cookie
How to enable download button
File Upload and Download in Webviewer
Auto Complete Input text!
Multiple Web Viewer With Different login Credentials
How to download images from a webviewer like regular browser?
web viewer didn't work for image picker and file picker
Can i make browser app in kodular?
Web viewer Load html iframe closing the app
I need to get data in web view, how i can do it?
CustomWebView not working in Android 12
Extended form of web view is not working
CustomWebView not working in Android 12
Web viewer error at Kodular Fenix 1.5.2
How to load Javascript and CSS files in Webview.?
Upload an image to the web viewer
Go url web view, net::ERR_ACCESS_DENIED
Web View HTML issues
web_Viewer => Load HTML problem
Full screen button not enable in webview
Detect request from webview
Whatsapp external link
Open deeplink via web viewer
Html code stopped loading
Webview html data not load
How to find text in screen?
Paytm payment using OCR
Load HTML crash
Camera and microphone access permission
How to upload file in web viewer
Webview crash with kodular fenix android 6
Current location access in custom webview
Html view issue
I Need Help With Web Scraping [If Help 5$]
Google Authentication error in Web Viewer [Google Secure browser Policy]
How to solve this deeplink problem
[PAID] DataTables Extension (Create custom HTML tables and export to Excel, PDF, CSV)
[Deprecated] Avoid Crashes of the Application for some of the components
Simple eBook app ( Boi-somver )
How can webview download
Problem with my app
Endless loading
Block Ads in Webview
How to download file using custom web viewer
Get the permission storage and camera in webview
Download extension
How to make an app download something?
Issue with Custom Web View
help deleting cookies
WebViewer security police error
Problem downloading pdf from a website application
How to set downlaoding on sunny customwebview
How to open one signal push notification containing a URL in my webviewer app and not in the default browser?
Yey bagus nih, oke pokoknya
Script does not open external browser to print PDF in Google Chrome
Custom webview extention dark mode
How to avoid READ_EXTERNAL_STORAGE error from Google?
Anyone have a solution on how to remove default READ_EXTERNAL_STORAGE premission?
Problem with Write_external_storage >10
How to keep users loggedin in kodular web view
I am using sunny custom webviewer extension
[Guide] Get Current Location Without using Google Maps API & Location Sensor
How to use camera and microphone, etc. in a normal web viewer?
Custom Web View is crashing
Dynamic URL for Custom Tabs Chrome Component
How to load .php, .css file in app
Webviewer load image component
Image uploading not working on homework site app
How to print via a bluetooth printer
[Solved] Injecting Cookies to Web Component - How to use Web Component with Cookies
How to do refresh layout like google chrome
Webview allowfullscreen problem
Webview with Swipe refresh | Guide
How to reach camera in webview on kodular?
Launch new extension for security encryption and decryption for files and messages with MiniPQC (Post-Quantum Cryptography)
Background colour of Web viewer and bottom sheet
Something to celebrate for me....!
Spaces in functions?
Multiple independent WebView
Extension developer needed (paid)
We will find some particular text in webview
App to scan QR code and take you to specific page in website
Is this a bug or I did some mistake?
Images not loading in kodular webview but the same works fine in google mobile view
Need to open gallery to get content for Stories and Profile Photos
Webview how to open camera and upload images
The item is not saved in the cart on exit
How can we create tab system in browser app like chrome which shows last site page also in tab
Webview selectable text
How to delete permanently file
Custom webviewer extension minimum API level?
Need help webview: how to upload files?
How to Make Mega direct Download Using ID
How to open the camera in the webviewer?
Sunny Custom Webview
How to create simple web to app with cookies support
(FREE)Make a video conference application
Deep Links on webview
Show downloads within the app instead of the notification bar
HTML5 video player full screen option disabled automatically in web view... How to enable it...?
2020: The Year in Review
Suggestion for Custom webview dark mode,translator etc
Embed youtube video full screen problem
How to download PDF file
Get Cookie From WebViewer
How to Get Desktop View for a specific site?
When using custom webview the package manager say erro loading package
Anyone have chrome custom tab extension with back press button
3 Issues while trying to make an app for eCommerce store
WebView is not downloading the images from my website
How to make Video conference app using WebRTC?
I want to create A browser with autofill function this is possible?
help, with web view tool
Help me I want these things
ExtendedWebview Extension Bug
I need help regarding the permission setting in kodular
I need help regarding the permission setting in kodular
Search in Web View
How to reach camera in webview on kodular?
Something is not working in the Default app system
The problem of opening external links in webview and not in a browser

Another great extension from @vknow360
:clap: :smiley: :metal:

8 Likes

Extraordinary extension! Looking forward to working with you again! <3

7 Likes

@vknow360 you are a great extension developer
Such a great extension for free? :thinking:
You are developing innovative/useful extensions
Keep it up…
Just loved your work…
:heart:

13 Likes

Here is a question to dear Koders:

Should I give documentation for properties?

  • Yes
  • No
  • Can’t say

0 voters

7 Likes

It helps koders understand better and eliminate doubts
Otherwise you will get question on how to use blocks
It is better than replying to question

4 Likes

OMG its owsm extension
@vknow360 :heart_eyes: >3000

3 Likes

Is it working now?

3 Likes

Yes it works.
But I have never tried to compare it with content height returned from js.
So I can’t be sure.

2 Likes

With html content

2 Likes

Sorry…I am unable to understand.

I think Discourse is not working correctly as I am not getting notification for this topic even I am author (i.e. I am watching this topic)

5 Likes

As I said at the other topic, this is an amazing extension that will help me a lot. And I am not the only one with a browser app or another kind of app that will like the exclusive options of your extensions. I am sure when more people know about it many people will be using it and all of us will be thankful to you for this great work.

I really think I don’t diserve any thanks, but thank you for thanking me :joy: it feels good imagine that I could motivate you at least a little.

You can be sure in the next few days I will test your extension as much as I can and if I find any bug I will tell you.

Check this new webviewer extension @techcvr , @Xoma , @fastearn00 , @saurav_shaw612 , @Vedang
Sorry to mention you all but I know you guys have projects that can make a great use of it.

8 Likes

Thank you for your precious suggestion.
After getting huge response I have added documentation for properties :+1:
Thank you everyone :heart_eyes:

3 Likes

Nice extension :fire::fire::fire:

2 Likes

I downloaded via your miniurl but i get naked ladies in front of a camera. I don’t think that is what you want.

7 Likes

Sorry…I was not aware that MiniURL will do that.
I am sorry :disappointed_relieved:
I will replace that as soon as possible.

3 Likes

I tested your extension with my e-book template. Still have to do some more work.

I had to change and add some blocks. Now i have a search function also. I like your extension very much.

10 Likes

Thank you @Peter.
Your appreciation means a lot to me :heart_eyes:
Once again Thank you :heart:

4 Likes

In my e-book template i have a javascript that records the position on the html page. I tried to make it work with your extension but i wasn’t succeeding. Now i saw the webview string change block. When i want to use that to store the value it gives me a

runtime error with unbound location $value at the end.

image

3 Likes

Thank you.
I will try to fix it as soon as possible (at least 30 minutes mom shouting at me :sweat_smile: ) :heart_eyes:

But I have found the bug.It is just because of not running method/task on ui thread.

5 Likes