-
public class Config
-
-
Field Summary
Fields Modifier and Type Field Description protected Contextcontextprotected StringappKeyprotected StringauthKeyprotected BooleanisDemoAppprotected DeviceIdTypeidModeprotected booleanloggingEnabledprotected doublesdkLocalStorageMaxFileSizeprotected Applicationapplicationprotected booleannoneStandardPhoneValidationprotected InAppMessageListenerinAppListenerDoublelatitudeDoublelongitude
-
Constructor Summary
Constructors Constructor Description Config()Config(Application application, String appKey)
-
Method Summary
Modifier and Type Method Description ConfigsetContext(@NonNull() Context context)Android context.Mandatory field. ConfigsetAppKey(@NonNull() String appKey)app key for the application being tracked; find in the Dashboard under Management > Applications.Mandatory field. ConfigsetAuthKey(@NonNull() String authKey)ConfigsetIsDemoApp(boolean isDemoApp)ConfigsetIdMode(@NonNull() DeviceIdType idMode)enum value specifying which device ID generation strategy should use: OpenUDID or Google Advertising ID. ConfigsetLoggingEnabled(boolean enabled)Set to true if you want to enable internal debugging logsThose logs will be printed to the console ConfigsetSDKLocalStorageMaxFileSize(double maxFileSizeInKiloBytes)limits max local storage file size to a threshold (few KiloBytes tolerance)NOT RECOMMENDED TO USE generally. synchronized ConfigsetApplication(@NonNull() Application application)Set the link to the application class ConfigsetNoneStandardPhoneValidation(@NonNull() Boolean validate)Override validation of user's cell phone. ConfigsetInAppListener(@NonNull() InAppMessageListener listener)synchronized ConfigsetLatitude(@Nullable() Double latitude)synchronized ConfigsetLongitude(@Nullable() Double longitude)ConfigsetServerUrl(@Nullable() String serverURL)ConfigsetDeviceId(@NonNull() String deviceID)unique ID for the device the app is running on; note that null in deviceID means that Sdk will fall back to OpenUDID, then, if it's not available, to Google Advertising ID. ConfigseCollectAdvertisingId(@NonNull() Boolean value)ConfigsetInternalData(@NonNull() String n, @NonNull() String v)ConfigenableCrashReporting()Call to enable uncaught crash reporting ConfigenableInAppMessaging()ConfigenableInAppMessaging(boolean enableAutoTracking, boolean useActivityShortName)ConfigdisableInAppMessagingActivityAndFragmentAutoTracking()synchronized ConfigsetLogListener(@NonNull() LogCallback logCallback)Add a log callback that will duplicate all logs done by the SDK.For each message you will receive the message string and it's targeted log level. -
-
Constructor Detail
-
Config
Config()
-
Config
Config(Application application, String appKey)
-
-
Method Detail
-
setContext
Config setContext(@NonNull() Context context)
Android context.Mandatory field.
-
setAppKey
Config setAppKey(@NonNull() String appKey)
app key for the application being tracked; find in the Dashboard under Management > Applications.Mandatory field.
-
setAuthKey
Config setAuthKey(@NonNull() String authKey)
-
setIsDemoApp
Config setIsDemoApp(boolean isDemoApp)
-
setIdMode
@NonNull() Config setIdMode(@NonNull() DeviceIdType idMode)
enum value specifying which device ID generation strategy should use: OpenUDID or Google Advertising ID.
-
setLoggingEnabled
@NonNull() Config setLoggingEnabled(boolean enabled)
Set to true if you want to enable internal debugging logsThose logs will be printed to the console
-
setSDKLocalStorageMaxFileSize
Config setSDKLocalStorageMaxFileSize(double maxFileSizeInKiloBytes)
limits max local storage file size to a threshold (few KiloBytes tolerance)NOT RECOMMENDED TO USE generally. contact our support if you need to use this feature.
- Parameters:
maxFileSizeInKiloBytes- upper threshold of local storage file size , must be greater than zero!
-
setApplication
synchronized Config setApplication(@NonNull() Application application)
Set the link to the application class
-
setNoneStandardPhoneValidation
@NonNull() Config setNoneStandardPhoneValidation(@NonNull() Boolean validate)
Override validation of user's cell phone.
-
setInAppListener
@NonNull() Config setInAppListener(@NonNull() InAppMessageListener listener)
-
setLatitude
synchronized Config setLatitude(@Nullable() Double latitude)
-
setLongitude
synchronized Config setLongitude(@Nullable() Double longitude)
-
setServerUrl
Config setServerUrl(@Nullable() String serverURL)
-
setDeviceId
Config setDeviceId(@NonNull() String deviceID)
unique ID for the device the app is running on; note that null in deviceID means that Sdk will fall back to OpenUDID, then, if it's not available, to Google Advertising ID.
-
seCollectAdvertisingId
@NonNull() Config seCollectAdvertisingId(@NonNull() Boolean value)
-
enableCrashReporting
@NonNull() Config enableCrashReporting()
Call to enable uncaught crash reporting
-
enableInAppMessaging
@NonNull() Config enableInAppMessaging()
-
enableInAppMessaging
@NonNull() Config enableInAppMessaging(boolean enableAutoTracking, boolean useActivityShortName)
-
disableInAppMessagingActivityAndFragmentAutoTracking
@NonNull() Config disableInAppMessagingActivityAndFragmentAutoTracking()
-
setLogListener
@NonNull() synchronized Config setLogListener(@NonNull() LogCallback logCallback)
Add a log callback that will duplicate all logs done by the SDK.For each message you will receive the message string and it's targeted log level.
-
-
-
-