-
public final class ConfigClass to build a configuration for Batch SDK
-
-
Field Summary
Fields Modifier and Type Field Description LoggerDelegateloggerDelegateLoggerLevelloggerLevel
-
Method Summary
Modifier and Type Method Description ConfigsetLoggerDelegate(LoggerDelegate delegate)Set if Batch should send its logs to an object of yours (default = null)Be careful with your implementation: setting this can impact stability and performanceYou should only use it if you know what you are doing. ConfigsetLoggerLevel(LoggerLevel level)Set the log level Batch should use ConfigsetCanUseAndroidID(boolean canUse)Method kept for compatibility: Batch will not use the Android ID in any situation ConfigsetCanUseAdvertisingID(boolean canUse)Set if Batch can use AvertisingId (default = true)Setting this to false have a negative impact on offer delivery and restoreYou should only use it if you know what you are doing. ConfigsetCanUseAdvancedDeviceInformation(boolean canUse)Set if Batch can use advanced device identifiers (default = true)Advanced device identifiers include information about the device itself, but nothing thatdirectly identify the user, such as but not limited to:- Device model- Device brand- Carrier nameSetting this to false have a negative impact on core Batch featuresYou should only use it if you know what you are doing. ConfigsetCanUseInstanceID(boolean canUse)Set if Batch can use the Google Play Services Instance ID api (default = true)Setting this to false will make Batch fallback on the classic (and deprecated) GCM API. ConfigsetShouldAutomaticallyRegisterPush(boolean shouldAutomaticallyRegisterPush)Set if Batch should automatically register for pushes using FCM or GCM. -
-
Constructor Detail
-
Config
Config(String apikey)
-
-
Method Detail
-
setLoggerDelegate
Config setLoggerDelegate(LoggerDelegate delegate)
Set if Batch should send its logs to an object of yours (default = null)Be careful with your implementation: setting this can impact stability and performanceYou should only use it if you know what you are doing.
- Parameters:
delegate- An object implementing LoggerDelegate
-
setLoggerLevel
Config setLoggerLevel(LoggerLevel level)
Set the log level Batch should use
-
setCanUseAndroidID
@Deprecated() Config setCanUseAndroidID(boolean canUse)
Method kept for compatibility: Batch will not use the Android ID in any situation
-
setCanUseAdvertisingID
Config setCanUseAdvertisingID(boolean canUse)
Set if Batch can use AvertisingId (default = true)Setting this to false have a negative impact on offer delivery and restoreYou should only use it if you know what you are doing.
- Parameters:
canUse- can Batch use AdvertisingID
-
setCanUseAdvancedDeviceInformation
Config setCanUseAdvancedDeviceInformation(boolean canUse)
Set if Batch can use advanced device identifiers (default = true)Advanced device identifiers include information about the device itself, but nothing thatdirectly identify the user, such as but not limited to:- Device model- Device brand- Carrier nameSetting this to false have a negative impact on core Batch featuresYou should only use it if you know what you are doing.
Note: Disabling this does not automatically disable Android ID/Advertising ID collection, use theappropriate methods to control these.
- Parameters:
canUse- Can Batch use advanced device information?
-
setCanUseInstanceID
@Deprecated() Config setCanUseInstanceID(boolean canUse)
Set if Batch can use the Google Play Services Instance ID api (default = true)Setting this to false will make Batch fallback on the classic (and deprecated) GCM API.You should only use it if you know what you are doing.
- Parameters:
canUse- can Batch use the Instance ID
-
setShouldAutomaticallyRegisterPush
@Deprecated() Config setShouldAutomaticallyRegisterPush(boolean shouldAutomaticallyRegisterPush)
Set if Batch should automatically register for pushes using FCM or GCM.Note: This doesn't do anything anymore
- Parameters:
shouldAutomaticallyRegisterPush- Doesn't do anything
-
-
-
-