A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.nativescript.org/api/class/WebView below:

WebView | API - NativeScript

on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void

A basic method signature to hook an event listener (shortcut alias to the addEventListener method).

Parameter Default Description eventNames

string

String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").

callback

Callback function which will be executed when event is raised.

thisArg

any

An optional parameter which will be used as `this` context for callback execution.

Returns void

on(event: "loadFinished", callback: (args: LoadEventData) => void, thisArg?: any): void

Raised when a loadFinished event occurs.

Parameter Default Description event

"loadFinished"

callback thisArg

any

Returns void

on(event: "loadStarted", callback: (args: LoadEventData) => void, thisArg?: any): void

Raised when a loadStarted event occurs.

Parameter Default Description event

"loadStarted"

callback thisArg

any

Returns void


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4