目录

DataManager.GetIntentInfos

CLASS info

Generates an intent for a specified DataType.

Public Constructor Summary

Constructor name

GetIntentInfos(Context context, DataType dataType)

Constructor for DataManager.GetIntentInfos.

Public Method Summary

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.

Public Constructors

[h2]GetIntentInfos(Context context, DataType dataType)

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.

Public Methods

[h2]setTimeInterval(long startTime, long endTime, TimeUnit timeUnit)

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.

[h2]setDataCollector(DatCollector dataCollector)

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.

[h2]selectApplication(String packageName)

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.

[h2]getIntent()

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.