Skip to content

Commit c7cded0

Browse files
committed
feat!: deprecate CordovaPlugin's method initialize
1 parent 822704a commit c7cded0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

framework/src/org/apache/cordova/CordovaPlugin.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ public final void privateInitialize(String serviceName, CordovaInterface cordova
6464
* Called after plugin construction and fields have been initialized.
6565
* Prefer to use pluginInitialize instead since there is no value in
6666
* having parameters on the initialize() function.
67+
*
68+
* @deprecated Use {@link #pluginInitialize()} instead. This method is no longer recommended
69+
* and will be removed in future versions.
6770
*/
71+
@Deprecated
6872
public void initialize(CordovaInterface cordova, CordovaWebView webView) {
6973
}
7074

@@ -416,7 +420,7 @@ public boolean hasPermisssion() {
416420
* @param requestCode
417421
* @param permissions
418422
* @param grantResults
419-
*
423+
*
420424
* @deprecated Use {@link #onRequestPermissionsResult} instead.
421425
*/
422426
@Deprecated

0 commit comments

Comments
 (0)