Setup config methods Define the level of logging you want to receive from the Adjust SDK.
AdjustLogLevel? logLevel;
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox);
//...
adjustConfig.logLevel = AdjustLogLevel.verbose;
//...
Adjust.start(adjustConfig);
AdjustLogLevel.Verbose
Enable full logging. AdjustLogLevel.Debug
Enable more detailed logging for debugging issues. AdjustLogLevel.Info
Return info, warnings, errors, and assert logs. AdjustLogLevel.Warn
Return warnings, errors, and assert logs. AdjustLogLevel.Error
Return only errors and assert logs. AdjustLogLevel.Assert
Return only assert logs. AdjustLogLevel.Suppress
Disable all logging.
Define a default tracker token. Adjust assigns organic installs to this tracker token.
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox);
//...
adjustConfig.defaultTracker = '{TrackerToken}';
//...
Adjust.start(adjustConfig);
Define an external device ID to use in your reporting.
String? externalDeviceId;
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox, true);
//...
adjustConfig.externalDeviceId = '{Your-External-Device-Id}';
//...
Adjust.start(adjustConfig);
Enable or disable launching deferred deep links with the SDK. If enabled , the SDK launches deep links the user interacts with.
bool? launchDeferredDeeplink;
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox);
//...
adjustConfig.launchDeferredDeeplink = true;
//...
Adjust.start(adjustConfig);
Set whether the SDK should send information when your app runs in the background. Defaults to false .
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox);
//...
adjustConfig.sendInBackground = true;
//...
Adjust.start(adjustConfig);
Enable the SDK to gather cost data. You can access this information in the user's attribution information.
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox);
//...
adjustConfig.needsCost = true;
//...
Adjust.start(adjustConfig);
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.
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox);
//...
adjustConfig.delayStart(5.5);
//...
Adjust.start(adjustConfig);
Define a user agent string to send with each request.
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox);
//...
adjustConfig.userAgent = 'your-app/1.2.3"';
//...
Adjust.start(adjustConfig);
Specify whether a device is already known.
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox);
//...
adjustConfig.isDeviceKnown = true;
//...
Adjust.start(adjustConfig);
Specify whether enable event buffering. If enabled, the SDK stores events on the device and sends all requests once per minute.
bool? eventBufferingEnabled;
AdjustConfig adjustConfig = new AdjustConfig('{YourAppToken}', AdjustEnvironment.Sandbox);
//...
adjustConfig.eventBufferingEnabled = true;
//...
Adjust.start(adjustConfig);