public class DataRequest extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
DataRequest.CalendarParamsBuilder |
Helepr class to generate parameter Bundle for calendar requests
|
static class |
DataRequest.CallParamsBuilder |
|
static class |
DataRequest.DataType |
|
static class |
DataRequest.LocationParamsBuilder |
Helper class to generate paramter Bundle for location requests
|
static class |
DataRequest.MessageParamsBuilder |
Helper class to generate parameter Bundle for message requests
|
static class |
DataRequest.Purpose |
Purpose strings as defined in PrivacyStreams
https://github.com/PrivacyStreams/PrivacyStreams
|
static class |
DataRequest.TimeParamsBuilder |
Constructor | Description |
---|---|
DataRequest(Context context,
DataRequest.DataType dataType,
Bundle dataTypeExtras,
String palProvider,
Bundle palExtras,
DataRequest.Purpose purpose,
ResultReceiver receiver) |
Modifier and Type | Method | Description |
---|---|---|
static String |
dataTypeToPermission(DataRequest.DataType dataType) |
|
Context |
getContext() |
|
DataRequest.DataType |
getDataType() |
|
Bundle |
getDataTypeExtras() |
|
Bundle |
getPalExtras() |
|
String |
getPalProvider() |
|
String |
getPermission() |
|
DataRequest.Purpose |
getPurpose() |
|
ResultReceiver |
getReceiver() |
public DataRequest(Context context, DataRequest.DataType dataType, Bundle dataTypeExtras, String palProvider, Bundle palExtras, DataRequest.Purpose purpose, ResultReceiver receiver)
context
- The context from where this request originated.dataType
- The type of private data to request and send to the PALdataTypeExtras
- Additional parameters for obtaining the private data.palProvider
- String identifier for the PAL to process the requested
private data.palExtras
- Additional parameters for the target PAL. Nullable.purpose
- The purpose for this request. Specify using the
DataRequest.Purpose class.receiver
- Callback to receive and handle the processed private data.public Context getContext()
public DataRequest.DataType getDataType()
public String getPermission()
public Bundle getDataTypeExtras()
public String getPalProvider()
public Bundle getPalExtras()
public DataRequest.Purpose getPurpose()
public ResultReceiver getReceiver()
public static String dataTypeToPermission(DataRequest.DataType dataType)