forked from github/cordova-android
Deprecate addService().
This commit is contained in:
parent
0caca9ae55
commit
827af8a920
@ -827,11 +827,15 @@ public class DroidGap extends PhonegapActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
|
* Add services to res/xml/plugins.xml instead.
|
||||||
|
*
|
||||||
* Add a class that implements a service.
|
* Add a class that implements a service.
|
||||||
*
|
*
|
||||||
* @param serviceType
|
* @param serviceType
|
||||||
* @param className
|
* @param className
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public void addService(String serviceType, String className) {
|
public void addService(String serviceType, String className) {
|
||||||
this.pluginManager.addService(serviceType, className);
|
this.pluginManager.addService(serviceType, className);
|
||||||
}
|
}
|
||||||
|
@ -28,11 +28,15 @@ import android.content.Intent;
|
|||||||
public abstract class PhonegapActivity extends Activity {
|
public abstract class PhonegapActivity extends Activity {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
|
* Add services to res/xml/plugins.xml instead.
|
||||||
|
*
|
||||||
* Add a class that implements a service.
|
* Add a class that implements a service.
|
||||||
*
|
*
|
||||||
* @param serviceType
|
* @param serviceType
|
||||||
* @param className
|
* @param className
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
abstract public void addService(String serviceType, String className);
|
abstract public void addService(String serviceType, String className);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user