mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Added loadStarted event.
This commit is contained in:
@@ -24,6 +24,7 @@ class WebViewClientClass extends android.webkit.WebViewClient {
|
||||
|
||||
if (this._view) {
|
||||
trace.write("WebViewClientClass.onPageStarted(" + url + ", " + favicon + ")", trace.categories.Debug);
|
||||
this._view._onLoadStarted(url);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +33,7 @@ class WebViewClientClass extends android.webkit.WebViewClient {
|
||||
|
||||
if (this._view) {
|
||||
trace.write("WebViewClientClass.onPageFinished(" + url + ")", trace.categories.Debug);
|
||||
this._view._onFinished(url, undefined);
|
||||
this._view._onLoadFinished(url, undefined);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,7 +42,7 @@ class WebViewClientClass extends android.webkit.WebViewClient {
|
||||
|
||||
if (this._view) {
|
||||
trace.write("WebViewClientClass.onReceivedError(" + errorCode + ", " + description + ", " + failingUrl + ")", trace.categories.Debug);
|
||||
this._view._onFinished(failingUrl, description + "(" + errorCode + ")");
|
||||
this._view._onLoadFinished(failingUrl, description + "(" + errorCode + ")");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user