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
Returns the url which started the current activity
Return type : text
Event raised after 'SaveArchive' method.If 'success' is true then returns file path else empty string.
| Params |
|---|
success | boolean
filePath | text
Event raised after evaluating Js and returns result.
| Params |
|---|
result | text
Event raised after 'ClearCokies' method with result
| Params |
|---|
successful | boolean
Event raised when file uploading is needed
| Params |
|---|
id | number
mimeType | text
isCaptureEnabled | boolean
Event raised after 'Find' method with int 'activeMatchOrdinal','numberOfMatches' and 'isDoneCounting'
| Params |
|---|
id | number
activeMatchOrdinal | number
numberOfMatches | number
isDoneCounting | boolean
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
Event raised after getting previus print's result.
| Params |
|---|
printId | text
isCompleted | boolean
isFailed | boolean
isBlocked | boolean
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
Event triggered when a window needs to be closed
| Params |
|---|
id | number
Event raised after getting console message.
| Params |
|---|
message | text
lineNumber | number
sourceID | number
level | text
Event raised when downloading is needed.
| Params |
|---|
id | number
url | text
contentDisposition | text
mimeType | text
size | number
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
Event raised when resubmission of form is needed
| Params |
|---|
id | number
Event for OnGeolocationRequested
| Params |
|---|
origin | text
Event raised when current page exits from full screen mode
Event raised when Js have to show an alert to user
| Params |
|---|
id | number
url | text
message | text
Tells to display a confirm dialog to the user.
| Params |
|---|
id | number
url | text
message | text
Event raised when JavaScript needs input from user
| Params |
|---|
id | number
url | text
message | text
defaultValue | text
Event raised when new window is requested by webview with boolean 'isDialog' and 'isPopup'
| Params |
|---|
id | number
isDialog | boolean
isPopup | boolean
Event raised when a website asks for specific permission(s) in list format.
| Params |
|---|
permissionsList | list
Event raised when page loading progress has changed.
| Params |
|---|
id | number
progress | number
Notifies that the WebView received an HTTP authentication request.
| Params |
|---|
id | number
host | text
realm | text
Event for OnReceivedSslError
| Params |
|---|
errorCode | number
Event raised when webview gets scrolled
| Params |
|---|
id | number
scrollX | number
scrollY | number
oldScrollX | number
oldScrollY | number
canGoLeft | boolean
canGoRight | boolean
Event raised when current page enters in full screen mode
Event raised when page loading has finished.
| Params |
|---|
id | number
Event indicating that page loading has started in web view.
| Params |
|---|
id | number
url | text
When the JavaScript calls AppInventor.setWebViewString this event is run.
| Params |
|---|
value | text
Method for AllowGeolocationAccess
| Params |
|---|
allow | boolean
remember | boolean
Gets whether this WebView has a back history item
Return type : boolean
Gets whether the page can go back or forward the given number of steps.
| Params |
|---|
steps | number
Return type : boolean
Gets whether this WebView has a forward history item.
Return type : boolean
Cancels current print job. You can request cancellation of a queued, started, blocked, or failed print job.
Clears the resource cache.
Removes all cookies and raises 'CookiesRemoved' event
Tells this WebView to clear its internal back/forward list.
Clear all location preferences.
Clears the highlighting surrounding text matches.
Whether to proceed JavaScript originated request
| Params |
|---|
confirm | boolean
Gets height of HTML content
Return type : number
Inputs a confirmation response to Js
| Params |
|---|
input | text
Creates a shortcut of given website on home screen
| Params |
|---|
url | text
iconPath | text
title | text
Creates the webview in given arrangement with id
| Params |
|---|
container | component
id | number
Returns current id
Return type : number
Dismiss previously requested Js alert
Asynchronously evaluates JavaScript in the context of the currently displayed page.
| Params |
|---|
script | text
Finds all instances of find on the page and highlights them, asynchronously. Successive calls to this will cancel any pending searches.
| Params |
|---|
string | text
Highlights and scrolls to the next match if 'forward' is true else scrolls to previous match.
| Params |
|---|
forward | boolean
Get cookies for specific url
| Params |
|---|
url | text
Return type : text
Returns a list of used ids
Return type : list
Get internal history of given webview.
| Params |
|---|
id | number
Return type : list
Gets the progress for the given webview
| Params |
|---|
id | number
Return type : number
Return the scrolled left position of the webview
Return type : number
Return the scrolled top position of the webview
Return type : number
Gets the SSL certificate for the main top-level page and raises 'GotCertificate' event
Returns webview object from id
| Params |
|---|
id | number
Return type : any
Goes back in the history of this WebView.
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
Goes forward in the history of this WebView.
Loads the given URL.
| Params |
|---|
url | text
Grants given permissions to webview.Use empty list to deny the request.
| Params |
|---|
permissions | text
Hides previously shown custom view
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.
Loads the given data into this WebView using a 'data' scheme URL.
| Params |
|---|
html | text
Loads requested url in given webview
| Params |
|---|
id | number
Loads the given URL with the specified additional HTTP headers defined is list of lists.
| Params |
|---|
url | text
headers | list
Scrolls the contents of the WebView down by half the page size
| Params |
|---|
bottom | boolean
Scrolls the contents of the WebView up by half the page size
| Params |
|---|
top | boolean
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
Loads the URL with postData using 'POST' method into active WebView.
| Params |
|---|
url | text
data | text
Prints the content of webview with given document name
| Params |
|---|
documentName | text
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
Method for ProceedSslError
| Params |
|---|
proceed | boolean
Reloads the current URL.
Destroys the webview and removes it completely from view system
| Params |
|---|
id | number
Restarts current/previous print job. You can request restart of a failed print job.
Whether to resubmit form or not.
| Params |
|---|
reSubmit | boolean
Resumes the previously paused WebView.
| Params |
|---|
id | number
Saves the current site as a web archive
| Params |
|---|
dir | text
Scrolls the webview to given position
| Params |
|---|
x | number
y | number
Sets cookies for given url
| Params |
|---|
url | text
cookieString | text
Sets the visibility of webview by id
| Params |
|---|
id | number
visibility | boolean
Set specific webview to current webview by id
| Params |
|---|
id | number
Stops the current load.
Uploads the given file from content uri.Use empty string to cancel the upload request.
| Params |
|---|
contentUri | text
Performs a zoom operation in the WebView by given zoom percent
| Params |
|---|
zoomP | number
Performs zoom in in the WebView
Performs zoom out in the WebView
Sets the ad hosts which will be blocked
Property Type : write-only
Accepts : text
Sets whether the WebView should load image resources
Property Type : read-write
Accepts : boolean
Specifies whether webview should autofill saved credentials or not
Property Type : write-only
Accepts : boolean
Sets whether the WebView requires a user gesture to play media
Property Type : read-write
Accepts : boolean
Sets background color of webview
Property Type : write-only
Accepts : number
Sets whether to block ads or not
Property Type : write-only
Accepts : boolean
Sets whether the WebView should not load resources from the network.Use this to save data.
Property Type : read-write
Accepts : boolean
Sets cache mode for active webview
Property Type : read-write
Accepts : number
Title of the page currently viewed
Property Type : read-only
Accepts : text
URL of the page currently viewed
Property Type : read-only
Accepts : text
Sets whether to enable deep links or not i.e. tel: , whatsapp: , sms: , etc.
Property Type : read-write
Accepts : boolean
Sets whether to load content in desktop mode
Property Type : read-write
Accepts : boolean
Sets whether the WebView should display on-screen zoom controls
Property Type : read-write
Accepts : boolean
Tells the WebView to enable JavaScript execution.
Property Type : read-write
Accepts : boolean
Sets whether webview can access local files.Use this to enable file uploading and loading files using HTML
Property Type : read-write
Accepts : boolean
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
Sets the default font size of text. The default is 16.
Property Type : read-write
Accepts : number
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
Property for LayerType
Property Type : read-write
Accepts : number
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
Sets whether to enable text selection and context menu
Property Type : read-write
Accepts : boolean
Property for OverScrollMode
Property Type : read-write
Accepts : number
Returns whether webview will prompt for permission and raise 'OnPermissionRequest' event or not
Property Type : read-write
Accepts : boolean
Property for RotationAngle
Property Type : read-write
Accepts : number
Whether to display horizonatal and vertical scrollbars or not
Property Type : write-only
Accepts : boolean
Property for ScrollBarStyle
Property Type : read-write
Accepts : number
Sets whether the WebView supports multiple windows
Property Type : read-write
Accepts : boolean
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
Get webview user agent
Property Type : read-write
Accepts : text
Whether or not to give the application permission to use the Javascript geolocation API
Property Type : write-only
Accepts : boolean
Returns the visibility of current webview
Property Type : read-only
Accepts : boolean
Set webview string
Property Type : read-write
Accepts : text
Sets whether the WebView should support zooming using its on-screen zoom controls and gestures
Property Type : read-write
Accepts : boolean
Sets the zoom of the page in percent. The default is 100
Property Type : read-write
Accepts : number
Event invoked when downloading gets completed
Event invoked when downloading progress changes
| Params |
|---|
progress | number
Cancels the current download request
Downloads the given file
| Params |
|---|
url | text
mimeType | text
contentDisposition | text
fileName | text
downloadDir | text
Tries to open the last downloaded file