CLASS info |
|---|
用于生成一个指定DataType的intent |
Constructor name |
|---|
GetIntentInfos(Context context, DataType dataType) DataManager.GetIntentInfos 构造器 |
Return | Method |
|---|---|
DataManager.GetIntentInfos | setTimeInterval(long startTime, long endTime, TimeUnit timeUnit) 设置开始和结束时间 |
DataManager.GetIntentInfos | setDataCollector (DataCollector dataCollector) 设置数据采集器 |
DataManager.GetIntentInfos | selectApplication(String name) 设置应用名称 |
Intent | getIntent() 构建意图 |
Constructor name |
|---|
public GetIntentInfos(Context context, DataType dataType) |
GetIntentInfos构造方法 |
Parameters
Parameter name | Parameter desc |
|---|---|
context | The Context the PublisherAdView is running in. |
dataType | 数据类型,用于构造意图时指定意图内容 |
Method |
|---|
public DataManager.GetIntentInfos setTimeInterval(long startTime, long endTime, TimeUnit timeUnit) |
设置Intent的开始和结束时间参数 |
Parameters
Parameter name | Parameter desc |
|---|---|
startTime | 开始时间 |
endTime | 结束时间 |
timeUnit | 开始时间和结束时间的时间单位 |
Method |
|---|
public DataManager.GetIntentInfos setDataCollector(DatCollector dataCollector) |
指定特定数据采集器读取数据 |
Parameters
Parameter name | Parameter desc |
|---|---|
dataCollector | 要读取数据的数据采集器 |
Method |
|---|
public DataManager.GetIntentInfos selectApplication(String packageName) |
设置用于处理Intent的首选应用,指定包名信息后,如果查询到多个应用,优先使用此应用处理 |
Parameters
Parameter name | Parameter desc |
|---|---|
packageName | 查找Intent的应用包名信息 |
Method |
|---|
public Intent getIntent() |
返回构建的意图,可用于registerModifyDataMonitor(ModifyDataMonitorOptions)监听数据的更新。 |
Throws
Throw name | Throw desc |
|---|---|
IllegalStateException | 异常,如果传递到Builder中的参数不合法,将抛出该异常。 |