public class PubnativeHttpRequest
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
PubnativeHttpRequest.Listener |
| Modifier and Type | Field and Description |
|---|---|
static int |
HTTP_INVALID_REQUEST |
static int |
HTTP_OK |
| Constructor and Description |
|---|
PubnativeHttpRequest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setConnectionTimeout(int connectionTimeout)
Sets a timeout for establishing connection with the server, if not specified default is 4000 ms
|
void |
start(android.content.Context context,
java.lang.String urlString,
PubnativeHttpRequest.Listener listener)
This method will start a new request to the given URL
|
public static final int HTTP_OK
public static final int HTTP_INVALID_REQUEST
public static void setConnectionTimeout(int connectionTimeout)
connectionTimeout - time in millisecondspublic void start(android.content.Context context,
java.lang.String urlString,
PubnativeHttpRequest.Listener listener)
context - valid Context objecturlString - URL where the request will be donelistener - valid Listener for callbacks