mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 12:03:28 +08:00
CB-5471: add deprecation javadoc/annotation
This commit is contained in:
parent
64d2ae9ad4
commit
b621c3e4c4
@ -642,10 +642,14 @@ public class CordovaActivity extends Activity implements CordovaInterface {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set boolean property on activity.
|
* Set boolean property on activity.
|
||||||
|
* This method has been deprecated in 3.0 and will be removed at a future
|
||||||
|
* time. Please use config.xml instead.
|
||||||
*
|
*
|
||||||
* @param name
|
* @param name
|
||||||
* @param value
|
* @param value
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public void setBooleanProperty(String name, boolean value) {
|
public void setBooleanProperty(String name, boolean value) {
|
||||||
Log.d(TAG, "Setting boolean properties in CordovaActivity will be deprecated in 3.0 on July 2013, please use config.xml");
|
Log.d(TAG, "Setting boolean properties in CordovaActivity will be deprecated in 3.0 on July 2013, please use config.xml");
|
||||||
this.getIntent().putExtra(name.toLowerCase(), value);
|
this.getIntent().putExtra(name.toLowerCase(), value);
|
||||||
@ -653,10 +657,14 @@ public class CordovaActivity extends Activity implements CordovaInterface {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set int property on activity.
|
* Set int property on activity.
|
||||||
|
* This method has been deprecated in 3.0 and will be removed at a future
|
||||||
|
* time. Please use config.xml instead.
|
||||||
*
|
*
|
||||||
* @param name
|
* @param name
|
||||||
* @param value
|
* @param value
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public void setIntegerProperty(String name, int value) {
|
public void setIntegerProperty(String name, int value) {
|
||||||
Log.d(TAG, "Setting integer properties in CordovaActivity will be deprecated in 3.0 on July 2013, please use config.xml");
|
Log.d(TAG, "Setting integer properties in CordovaActivity will be deprecated in 3.0 on July 2013, please use config.xml");
|
||||||
this.getIntent().putExtra(name.toLowerCase(), value);
|
this.getIntent().putExtra(name.toLowerCase(), value);
|
||||||
@ -664,10 +672,14 @@ public class CordovaActivity extends Activity implements CordovaInterface {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set string property on activity.
|
* Set string property on activity.
|
||||||
|
* This method has been deprecated in 3.0 and will be removed at a future
|
||||||
|
* time. Please use config.xml instead.
|
||||||
*
|
*
|
||||||
* @param name
|
* @param name
|
||||||
* @param value
|
* @param value
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public void setStringProperty(String name, String value) {
|
public void setStringProperty(String name, String value) {
|
||||||
Log.d(TAG, "Setting string properties in CordovaActivity will be deprecated in 3.0 on July 2013, please use config.xml");
|
Log.d(TAG, "Setting string properties in CordovaActivity will be deprecated in 3.0 on July 2013, please use config.xml");
|
||||||
this.getIntent().putExtra(name.toLowerCase(), value);
|
this.getIntent().putExtra(name.toLowerCase(), value);
|
||||||
@ -675,10 +687,14 @@ public class CordovaActivity extends Activity implements CordovaInterface {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set double property on activity.
|
* Set double property on activity.
|
||||||
|
* This method has been deprecated in 3.0 and will be removed at a future
|
||||||
|
* time. Please use config.xml instead.
|
||||||
*
|
*
|
||||||
* @param name
|
* @param name
|
||||||
* @param value
|
* @param value
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public void setDoubleProperty(String name, double value) {
|
public void setDoubleProperty(String name, double value) {
|
||||||
Log.d(TAG, "Setting double properties in CordovaActivity will be deprecated in 3.0 on July 2013, please use config.xml");
|
Log.d(TAG, "Setting double properties in CordovaActivity will be deprecated in 3.0 on July 2013, please use config.xml");
|
||||||
this.getIntent().putExtra(name.toLowerCase(), value);
|
this.getIntent().putExtra(name.toLowerCase(), value);
|
||||||
|
@ -17,10 +17,18 @@
|
|||||||
under the License.
|
under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// We moved everything to CordovaActivity
|
|
||||||
|
|
||||||
package org.apache.cordova;
|
package org.apache.cordova;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This used to be the class that should be extended by application
|
||||||
|
* developers, but everything has been moved to CordovaActivity. So
|
||||||
|
* you should extend CordovaActivity instead of DroidGap. This class
|
||||||
|
* will be removed at a future time.
|
||||||
|
*
|
||||||
|
* @see CordovaActivity
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
public class DroidGap extends CordovaActivity {
|
public class DroidGap extends CordovaActivity {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user