Add comment for method onOverrideUrlLoading()

This commit is contained in:
Bryce Curtis 2011-09-28 21:36:43 -05:00
parent f271e2e0fa
commit 025577c41d

View File

@ -104,6 +104,12 @@ public abstract class Plugin implements IPlugin {
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) {
return false;
}