mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-27 04:33:00 +08:00
Add comment for method onOverrideUrlLoading()
This commit is contained in:
parent
f271e2e0fa
commit
025577c41d
@ -104,6 +104,12 @@ public abstract class Plugin implements IPlugin {
|
|||||||
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
|
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* By specifying a <url-filter> in plugins.xml you can map a URL (using startsWith atm) to this method.
|
||||||
|
*
|
||||||
|
* @param url The URL that is trying to be loaded in the PhoneGap webview.
|
||||||
|
* @return Return true to prevent the URL from loading. Default is false.
|
||||||
|
*/
|
||||||
public boolean onOverrideUrlLoading(String url) {
|
public boolean onOverrideUrlLoading(String url) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user