forked from github/cordova-android
Revert: Adding getContext, startActivity to CordovaInterface
This commit is contained in:
parent
95b48705fe
commit
47211f6cb3
@ -19,7 +19,6 @@
|
|||||||
package org.apache.cordova.api;
|
package org.apache.cordova.api;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -38,13 +37,6 @@ public interface CordovaInterface {
|
|||||||
*/
|
*/
|
||||||
abstract public void startActivityForResult(IPlugin command, Intent intent, int requestCode);
|
abstract public void startActivityForResult(IPlugin command, Intent intent, int requestCode);
|
||||||
|
|
||||||
/**
|
|
||||||
* Launch an activity for which you would not like a result when it finished.
|
|
||||||
*
|
|
||||||
* @param intent The intent to start
|
|
||||||
*/
|
|
||||||
abstract public void startActivity(Intent intent);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the plugin to be called when a sub-activity exits.
|
* Set the plugin to be called when a sub-activity exits.
|
||||||
*
|
*
|
||||||
@ -84,6 +76,4 @@ public interface CordovaInterface {
|
|||||||
* @return Object or null
|
* @return Object or null
|
||||||
*/
|
*/
|
||||||
public Object onMessage(String id, Object data);
|
public Object onMessage(String id, Object data);
|
||||||
|
|
||||||
abstract public Context getContext();
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user