Package com.my.target.common
Class MyTargetConfig.Builder
-
- All Implemented Interfaces:
public final class MyTargetConfig.Builder
-
-
Constructor Summary
Constructors Constructor Description MyTargetConfig.Builder()
-
Method Summary
Modifier and Type Method Description MyTargetConfigbuild()MyTargetConfig.Builderfrom(@NonNull() MyTargetConfig myTargetConfig)Copies all settings from previous config, it can be used for changing only certain fields of config MyTargetConfig.BuilderwithTestDevices(@Nullable() Array<String> testDevices)Adds test device/s to show test ad. MyTargetConfig.BuilderwithTrackingEnvironment(boolean enabled)Provides the option to disable the collection of environment params. MyTargetConfig.BuilderwithTrackingLocation(boolean enabled)Provides the option to enable the collection of location and location-based params. -
-
Method Detail
-
build
@NonNull() MyTargetConfig build()
-
from
@NonNull() MyTargetConfig.Builder from(@NonNull() MyTargetConfig myTargetConfig)
Copies all settings from previous config, it can be used for changing only certain fields of config
- Parameters:
myTargetConfig- previous config
-
withTestDevices
@NonNull() MyTargetConfig.Builder withTestDevices(@Nullable() Array<String> testDevices)
Adds test device/s to show test ad. When ad is loading, SDK writes to log
this value should be put here. Multiple, if code needs to run on several test devices. Method must be called before loading AdD/[myTarget]: Device instanceId is {INSTANCE_ID}. Use this value in adInstance.withTestDevices() to enable test mode on this device.- Parameters:
testDevices- instanceId from the Logcat
-
withTrackingEnvironment
@NonNull() MyTargetConfig.Builder withTrackingEnvironment(boolean enabled)
Provides the option to disable the collection of environment params. The default is TRUE (information is collected).
- Parameters:
enabled- enable or disable collection
-
withTrackingLocation
@NonNull() MyTargetConfig.Builder withTrackingLocation(boolean enabled)
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
-
-
-
-