public class SDKInfoPlugin extends ForcePlugin
Constructor and Description |
---|
SDKInfoPlugin() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(java.lang.String actionStr,
JavaScriptPluginVersion jsVersion,
JSONArray args,
CallbackContext callbackContext)
Abstract method to concrete subclass need to implement
|
static java.util.List<java.lang.String> |
getForcePlugins(Context ctx) |
static java.util.List<java.lang.String> |
getForcePluginsFromXML(Context ctx) |
protected void |
getInfo(JSONArray args,
CallbackContext callbackContext)
Native implementation for "getInfo" action.
|
static JSONObject |
getSDKInfo(Context ctx) |
protected void |
registerAppFeature(JSONArray args,
CallbackContext callbackContext)
Native implementation for "registerAppFeature" action.
|
protected void |
unregisterAppFeature(JSONArray args,
CallbackContext callbackContext)
Native implementation for "unregisterAppFeature" action.
|
execute
public boolean execute(java.lang.String actionStr, JavaScriptPluginVersion jsVersion, JSONArray args, CallbackContext callbackContext) throws JSONException
ForcePlugin
execute
in class ForcePlugin
actionStr
- The action to executeargs
- JSONArray of arguments for the plugin.callbackContext
- Used when calling back into Javascript.JSONException
protected void getInfo(JSONArray args, CallbackContext callbackContext) throws JSONException
callbackContext
- Used when calling back into Javascript.JSONException
protected void registerAppFeature(JSONArray args, CallbackContext callbackContext) throws JSONException
callbackContext
- Used when calling back into Javascript.JSONException
protected void unregisterAppFeature(JSONArray args, CallbackContext callbackContext) throws JSONException
callbackContext
- Used when calling back into Javascript.JSONException
public static JSONObject getSDKInfo(Context ctx) throws NameNotFoundException, JSONException
NameNotFoundException
JSONException
public static java.util.List<java.lang.String> getForcePlugins(Context ctx)
ctx
- public static java.util.List<java.lang.String> getForcePluginsFromXML(Context ctx)
ctx
-