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.
|
executepublic boolean execute(java.lang.String actionStr,
JavaScriptPluginVersion jsVersion,
JSONArray args,
CallbackContext callbackContext)
throws JSONException
ForcePluginexecute in class ForcePluginactionStr - The action to executeargs - JSONArray of arguments for the plugin.callbackContext - Used when calling back into Javascript.JSONExceptionprotected void getInfo(JSONArray args,
CallbackContext callbackContext)
throws JSONException
callbackContext - Used when calling back into Javascript.JSONExceptionprotected void registerAppFeature(JSONArray args,
CallbackContext callbackContext)
throws JSONException
callbackContext - Used when calling back into Javascript.JSONExceptionprotected void unregisterAppFeature(JSONArray args,
CallbackContext callbackContext)
throws JSONException
callbackContext - Used when calling back into Javascript.JSONExceptionpublic static JSONObject getSDKInfo(Context ctx)
throws NameNotFoundException,
JSONException
NameNotFoundExceptionJSONExceptionpublic static java.util.List<java.lang.String> getForcePlugins(Context ctx)
ctx - public static java.util.List<java.lang.String> getForcePluginsFromXML(Context ctx)
ctx -