Adding getContext, startActivity to CordovaInterface

This commit is contained in:
macdonst 2012-06-08 14:03:20 -04:00
parent 6c1a2e1230
commit 95b48705fe

View File

@ -19,6 +19,7 @@
package org.apache.cordova.api;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
/**
@ -37,6 +38,13 @@ public interface CordovaInterface {
*/
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.
*
@ -77,4 +85,5 @@ public interface CordovaInterface {
*/
public Object onMessage(String id, Object data);
abstract public Context getContext();
}