4
0
mirror of https://github.com/apache/cordova-android.git synced 2025-05-17 01:14:06 +08:00

feat!: deprecate CordovaPlugin's method initialize ()

This commit is contained in:
エリス 2025-01-28 12:28:32 +09:00 committed by GitHub
parent 1f349f2984
commit b623311efa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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) {
} }
@ -416,7 +420,7 @@ public class CordovaPlugin {
* @param requestCode * @param requestCode
* @param permissions * @param permissions
* @param grantResults * @param grantResults
* *
* @deprecated Use {@link #onRequestPermissionsResult} instead. * @deprecated Use {@link #onRequestPermissionsResult} instead.
*/ */
@Deprecated @Deprecated