Package com.my.target.common
Class MyTargetConfig.Builder
java.lang.Object
com.my.target.common.MyTargetConfig.Builder
- Enclosing class:
- MyTargetConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()from(MyTargetConfig myTargetConfig) Copies all settings from previous config, it can be used for changing only certain fields of configwithTestDevices(String... testDevices) Adds test device/s to show test ad.withTrackingEnvironment(boolean enabled) Provides the option to disable the collection of environment params.withTrackingLocation(boolean enabled) Provides the option to enable the collection of location and location-based params.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
-
from
Copies all settings from previous config, it can be used for changing only certain fields of config- Parameters:
myTargetConfig- previous config
-
withTrackingEnvironment
Provides the option to disable the collection of environment params. The default is TRUE (information is collected).- Parameters:
enabled- enable or disable collection
-
withTrackingLocation
Provides the option to enable the collection of location and location-based params. The default is FALSE (information is not collected).- Parameters:
enabled- enable or disable collection
-
withTestDevices
Adds test device/s to show test ad. When ad is loading, SDK writes to logD/[myTarget]: Device instanceId is {INSTANCE_ID}. Use this value in adInstance.withTestDevices() to enable test mode on this device.this value should be put here. Multiple, if code needs to run on several test devices. Method must be called before loading Ad- Parameters:
testDevices- instanceId from the Logcat
-