Open
Description
Hi,
when I read the documentation for the Android Plugin initialization the following code is proposed to initialize a plugin:
Plugins should use the initialize method for their start-up logic.
@Override
public void initialize(CordovaInterface cordova, CordovaWebView webView) {
super.initialize(cordova, webView);
// your init code here
}
But when I look in the source code of CordovaPlugin#initialize it says that I shouldn't use the initialize
method and pluginInitialize
instead:
Called after plugin construction and fields have been initialized.
Prefer to use pluginInitialize instead since there is no value in
having parameters on the initialize() function.
Is the documentation outdated?
Metadata
Metadata
Assignees
Labels
No labels
Activity