CLASS info |
|---|
Generates an intent for a specified DataType. |
Constructor name |
|---|
GetIntentInfos(Context context, DataType dataType) Constructor for DataManager.GetIntentInfos. |
Return | Method |
|---|---|
DataManager.GetIntentInfos | setTimeInterval(long startTime, long endTime, TimeUnit timeUnit) Sets the start time and end time. |
DataManager.GetIntentInfos | setDataCollector (DataCollector dataCollector) Sets the data collector. |
DataManager.GetIntentInfos | selectApplication(String name) Sets the app name. |
Intent | getIntent() Builds the intent. |
Constructor name |
|---|
public GetIntentInfos(Context context, DataType dataType) |
Constructor for GetIntentInfos. |
Parameters
Parameter name | Parameter desc |
|---|---|
context | The Context the PublisherAdView is running in. |
dataType | Data type, which is used to specify the intent content when building the intent. |
Method |
|---|
public DataManager.GetIntentInfos setTimeInterval(long startTime, long endTime, TimeUnit timeUnit) |
Sets the start time and end time of the intent. |
Parameters
Parameter name | Parameter desc |
|---|---|
startTime | Start time. |
endTime | End time. |
timeUnit | Time unit of the start time and end time. |
Method |
|---|
public DataManager.GetIntentInfos setDataCollector(DatCollector dataCollector) |
Sets the data collector for data reading. |
Parameters
Parameter name | Parameter desc |
|---|---|
dataCollector | Data collector that the data to be read is from. |
Method |
|---|
public DataManager.GetIntentInfos selectApplication(String packageName) |
Sets the preferred app for intent processing. If there are several matched apps, this app will preferentially be used. |
Parameters
Parameter name | Parameter desc |
|---|---|
packageName | Package name of the preferred app for intent processing. |
Method |
|---|
public Intent getIntent() |
Returns the built intent, which can be used by registerModifyDataMonitor(ModifyDataMonitorOptions) to listen to data updates. |
Throws
Throw name | Throw desc |
|---|---|
IllegalStateException | This exception will be thrown if a parameter passed to the builder is invalid. |