public class PluginResult
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PluginResult.Status |
Modifier and Type | Field and Description |
---|---|
static int |
MESSAGE_TYPE_ARRAYBUFFER |
static int |
MESSAGE_TYPE_BINARYSTRING |
static int |
MESSAGE_TYPE_BOOLEAN |
static int |
MESSAGE_TYPE_JSON |
static int |
MESSAGE_TYPE_MULTIPART |
static int |
MESSAGE_TYPE_NULL |
static int |
MESSAGE_TYPE_NUMBER |
static int |
MESSAGE_TYPE_STRING |
static java.lang.String[] |
StatusMessages |
Constructor and Description |
---|
PluginResult(PluginResult.Status status) |
PluginResult(PluginResult.Status status,
boolean b) |
PluginResult(PluginResult.Status status,
byte[] data) |
PluginResult(PluginResult.Status status,
byte[] data,
boolean binaryString) |
PluginResult(PluginResult.Status status,
float f) |
PluginResult(PluginResult.Status status,
int i) |
PluginResult(PluginResult.Status status,
org.json.JSONArray message) |
PluginResult(PluginResult.Status status,
org.json.JSONObject message) |
PluginResult(PluginResult.Status status,
java.util.List<PluginResult> multipartMessages) |
PluginResult(PluginResult.Status status,
java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getJSONString()
Deprecated.
|
boolean |
getKeepCallback() |
java.lang.String |
getMessage() |
int |
getMessageType() |
PluginResult |
getMultipartMessage(int index) |
int |
getMultipartMessagesSize() |
int |
getStatus() |
java.lang.String |
getStrMessage()
If messageType == MESSAGE_TYPE_STRING, then returns the message string.
|
void |
setKeepCallback(boolean b) |
java.lang.String |
toCallbackString(java.lang.String callbackId)
Deprecated.
|
java.lang.String |
toErrorCallbackString(java.lang.String callbackId)
Deprecated.
|
java.lang.String |
toSuccessCallbackString(java.lang.String callbackId)
Deprecated.
|
public static final int MESSAGE_TYPE_STRING
public static final int MESSAGE_TYPE_JSON
public static final int MESSAGE_TYPE_NUMBER
public static final int MESSAGE_TYPE_BOOLEAN
public static final int MESSAGE_TYPE_NULL
public static final int MESSAGE_TYPE_ARRAYBUFFER
public static final int MESSAGE_TYPE_BINARYSTRING
public static final int MESSAGE_TYPE_MULTIPART
public static java.lang.String[] StatusMessages
public PluginResult(PluginResult.Status status)
public PluginResult(PluginResult.Status status, java.lang.String message)
public PluginResult(PluginResult.Status status, org.json.JSONArray message)
public PluginResult(PluginResult.Status status, org.json.JSONObject message)
public PluginResult(PluginResult.Status status, int i)
public PluginResult(PluginResult.Status status, float f)
public PluginResult(PluginResult.Status status, boolean b)
public PluginResult(PluginResult.Status status, byte[] data)
public PluginResult(PluginResult.Status status, byte[] data, boolean binaryString)
public PluginResult(PluginResult.Status status, java.util.List<PluginResult> multipartMessages)
public void setKeepCallback(boolean b)
public int getStatus()
public int getMessageType()
public java.lang.String getMessage()
public int getMultipartMessagesSize()
public PluginResult getMultipartMessage(int index)
public java.lang.String getStrMessage()
public boolean getKeepCallback()
@Deprecated public java.lang.String getJSONString()
@Deprecated public java.lang.String toCallbackString(java.lang.String callbackId)
@Deprecated public java.lang.String toSuccessCallbackString(java.lang.String callbackId)
@Deprecated public java.lang.String toErrorCallbackString(java.lang.String callbackId)