public class SimpleRequest extends PermissionRequest
TelephonyManager
and
LocationManager
- that are protected by Android permissions on your behalf.mParams, mReceiver
Constructor and Description |
---|
SimpleRequest(RequestParams params) |
Modifier and Type | Method and Description |
---|---|
SimpleRequest |
listener(SimpleListener listener)
Attach a listener.
|
void |
startRequest(android.content.Context context,
String reason,
SimpleListener listener)
Start the request.
|
addFilter, startRequest
public SimpleRequest(RequestParams params)
public SimpleRequest listener(SimpleListener listener)
listener
- Response receiverpublic void startRequest(android.content.Context context, String reason, SimpleListener 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