public class UQI
extends java.lang.Object
Constructor and Description |
---|
UQI(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
void |
evaluate(Function<java.lang.Void,java.lang.Void> query,
boolean retry)
Evaluate current UQI.
|
android.content.Context |
getContext() |
PStream |
getData(PStreamProvider pStreamProvider,
Purpose purpose)
Get a PStream from a provider with a purpose.
|
PSException |
getException() |
void |
setContext(android.content.Context context) |
void |
stopAll()
Stop all query in this UQI.
|
public android.content.Context getContext()
public void setContext(android.content.Context context)
public PSException getException()
public PStream getData(PStreamProvider pStreamProvider, Purpose purpose)
pStreamProvider
- the function to provide the personal data stream,
e.g. Geolocation.asUpdates().purpose
- the purpose of personal data use, e.g. Purpose.ADS("xxx").public void stopAll()
public void evaluate(Function<java.lang.Void,java.lang.Void> query, boolean retry)
query
- the query to evaluate.retry
- whether to try again if the permission is denied.