public final class SubmitReportTask
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
SubmitReportTask.Result |
| Constructor and Description |
|---|
SubmitReportTask() |
| Modifier and Type | Method and Description |
|---|---|
SubmitReportTask.Result |
execute(org.json.JSONObject report)
Synchronously executes a POST request
|
void |
execute(org.json.JSONObject report,
ReportSubmissionCallback callback)
Asynchronously executes a POST request
|
public SubmitReportTask.Result execute(org.json.JSONObject report)
report - a JSON payload with the report to submitpublic void execute(org.json.JSONObject report,
ReportSubmissionCallback callback)
report - a JSON payload with the report to submitcallback - Calls back with the result of the request; this is called on the main thread