Setup config methods

logLevel

Define the level of logging you want to receive from the Adjust SDK.

AdjustLogLevel? logLevel;
Dart
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox);
//...
adjustConfig.logLevel = AdjustLogLevel.verbose;
//...
Adjust.start(adjustConfig);

AdjustLogLevel Enum

defaultTracker

Define a default tracker token. Adjust assigns organic installs to this tracker token.

String? defaultTracker;
Dart
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox);
//...
adjustConfig.defaultTracker = '{LinkToken}';
//...
Adjust.start(adjustConfig);

externalDeviceId

Define an external device ID to use in your reporting.

String? externalDeviceId;
Dart
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox, true);
//...
adjustConfig.externalDeviceId = '{Your-External-Device-Id}';
//...
Adjust.start(adjustConfig);

launchDeferredDeeplink

Enable or disable launching deferred deep links with the SDK. If enabled, the SDK launches deep links the user interacts with.

bool? launchDeferredDeeplink;
Dart
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox);
//...
adjustConfig.launchDeferredDeeplink = true;
//...
Adjust.start(adjustConfig);

sendInBackground

Set whether the SDK should send information when your app runs in the background. Defaults to false.

bool? sendInBackground;
Dart
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox);
//...
adjustConfig.sendInBackground = true;
//...
Adjust.start(adjustConfig);

needsCost

Enable the SDK to gather cost data. You can access this information in the user's attribution information.

bool? needsCost;
Dart
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox);
//...
adjustConfig.needsCost = true;
//...
Adjust.start(adjustConfig);

delayStart

Delay the startup of the SDK by passing the number of seconds to delay by as a number. You can delay the start of the SDK by up to 10 seconds.

double? delayStart;
Dart
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox);
//...
adjustConfig.delayStart(5.5);
//...
Adjust.start(adjustConfig);

userAgent

Define a user agent string to send with each request.

 String? userAgent;
Dart
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox);
//...
adjustConfig.userAgent = 'your-app/1.2.3"';
//...
Adjust.start(adjustConfig);

isDeviceKnown

Specify whether a device is already known.

bool? isDeviceKnown;
Dart
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox);
//...
adjustConfig.isDeviceKnown = true;
//...
Adjust.start(adjustConfig);

eventBufferingEnabled

Specify whether enable event buffering. If enabled, the SDK stores events on the device and sends all requests once per minute.

bool? eventBufferingEnabled;
Dart
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox);
//...
adjustConfig.eventBufferingEnabled = true;
//...
Adjust.start(adjustConfig);