mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
Adding getContext, startActivity to CordovaInterface
This commit is contained in:
parent
6c1a2e1230
commit
95b48705fe
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user