public class ContentRequest extends PermissionRequest
ContentProviders that are protected by Android
permissions on your behalf.
See PermissionRequest for details on how to use this class.| Modifier and Type | Class and Description |
|---|---|
static class |
ContentRequest.Builder |
| Modifier and Type | Field and Description |
|---|---|
static String |
DELETE |
static String |
INSERT |
static String |
SELECT |
static String |
UPDATE |
mParams, mReceiver| Constructor and Description |
|---|
ContentRequest(RequestParams params) |
| Modifier and Type | Method and Description |
|---|---|
ContentRequest |
listener(ContentListener listener)
Attach a listener.
|
static ContentRequest.Builder |
newBuilder() |
void |
startRequest(android.content.Context context,
String reason,
ContentListener listener)
/** Start the request.
|
addFilter, startRequestpublic static final String SELECT
public static final String INSERT
public static final String UPDATE
public static final String DELETE
public ContentRequest(RequestParams params)
public static ContentRequest.Builder newBuilder()
public ContentRequest listener(ContentListener listener)
listener - Response receiverpublic void startRequest(android.content.Context context,
String reason,
ContentListener listener)
context - Activity, Service, etc.reason - Explain to the user why you need to access the resource. This is displayed to the user in a
dialog when Permission Nanny needs to ask the user for authorization.listener - Response receiver