feat!: deprecate CordovaPlugin's method initialize

This commit is contained in:
エリス 2024-12-27 16:22:58 +09:00
parent bb37da02b9
commit d9f256aaf0
No known key found for this signature in database
GPG Key ID: 2E5FF17FB26AF7F2

View File

@ -64,7 +64,11 @@ public class CordovaPlugin {
* Called after plugin construction and fields have been initialized. * Called after plugin construction and fields have been initialized.
* Prefer to use pluginInitialize instead since there is no value in * Prefer to use pluginInitialize instead since there is no value in
* having parameters on the initialize() function. * having parameters on the initialize() function.
*
* @deprecated Use {@link #pluginInitialize()} instead. This method is no longer recommended
* and will be removed in future versions.
*/ */
@Deprecated
public void initialize(CordovaInterface cordova, CordovaWebView webView) { public void initialize(CordovaInterface cordova, CordovaWebView webView) {
} }