@@ -79,7 +79,7 @@ protected void pluginInitialize() {
79
79
}
80
80
81
81
/**
82
- * Returns the plugin's service name (what you'd use when calling pluginManger.getPlugin())
82
+ * @return the plugin's service name (what you'd use when calling pluginManger.getPlugin())
83
83
*/
84
84
public String getServiceName () {
85
85
return serviceName ;
@@ -289,7 +289,7 @@ public Boolean shouldOpenExternalUrl(String url) {
289
289
* Allows plugins to handle a link being clicked. Return true here to cancel the navigation.
290
290
*
291
291
* @param url The URL that is trying to be loaded in the Cordova webview.
292
- * @return Return true to prevent the URL from loading. Default is false.
292
+ * @return true to prevent the URL from loading. Default is false.
293
293
*/
294
294
public boolean onOverrideUrlLoading (String url ) {
295
295
return false ;
@@ -362,7 +362,6 @@ public void onReset() {
362
362
* @param handler The HttpAuthHandler used to set the WebView's response
363
363
* @param host The host requiring authentication
364
364
* @param realm The realm for which authentication is required
365
- *
366
365
* @return Returns True if plugin will resolve this auth challenge, otherwise False
367
366
*
368
367
*/
@@ -376,8 +375,7 @@ public boolean onReceivedHttpAuthRequest(CordovaWebView view, ICordovaHttpAuthHa
376
375
*
377
376
* @param view The WebView that is initiating the callback
378
377
* @param request The client certificate request
379
- *
380
- * @return Returns True if plugin will resolve this auth challenge, otherwise False
378
+ * @return True if plugin will resolve this auth challenge, otherwise False
381
379
*
382
380
*/
383
381
public boolean onReceivedClientCertRequest (CordovaWebView view , ICordovaClientCertRequest request ) {
@@ -396,20 +394,17 @@ public void onConfigurationChanged(Configuration newConfig) {
396
394
* Called by the Plugin Manager when we need to actually request permissions
397
395
*
398
396
* @param requestCode Passed to the activity to track the request
399
- *
400
- * @return Returns the permission that was stored in the plugin
397
+ * @return The permission that was stored in the plugin
401
398
*/
402
-
403
399
public void requestPermissions (int requestCode ) {
404
400
}
405
401
406
- /*
402
+ /**
407
403
* Called by the WebView implementation to check for geolocation permissions, can be used
408
404
* by other Java methods in the event that a plugin is using this as a dependency.
409
405
*
410
- * @return Returns true if the plugin has all the permissions it needs to operate.
406
+ * @return True if the plugin has all the permissions it needs to operate.
411
407
*/
412
-
413
408
public boolean hasPermisssion () {
414
409
return true ;
415
410
}
@@ -420,7 +415,6 @@ public boolean hasPermisssion() {
420
415
* @param requestCode
421
416
* @param permissions
422
417
* @param grantResults
423
- *
424
418
* @deprecated Use {@link #onRequestPermissionsResult} instead.
425
419
*/
426
420
@ Deprecated
@@ -443,6 +437,7 @@ public void onRequestPermissionsResult(int requestCode, String[] permissions,
443
437
444
438
/**
445
439
* Allow plugins to supply a PathHandler for the WebViewAssetHandler
440
+ *
446
441
* @return a CordovaPluginPathHandler which listen for paths and returns a response
447
442
*/
448
443
public CordovaPluginPathHandler getPathHandler () {
0 commit comments