public static class IterableConfig.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
IterableConfig |
build() |
IterableConfig.Builder |
setAuthHandler(IterableAuthHandler authHandler)
Set a custom auth handler that can be used to retrieve a new auth token
|
IterableConfig.Builder |
setAutoPushRegistration(boolean enabled)
Enable or disable automatic push token registration
If set to `true`, the SDK will automatically register the push token when you
call
IterableApi.setUserId(String) or IterableApi.setEmail(String)
and disable the old device entry when the user logs out |
IterableConfig.Builder |
setCheckForDeferredDeeplink(boolean checkForDeferredDeeplink)
When set to true, it will check for deferred deep links on first time app launch
after installation.
|
IterableConfig.Builder |
setCustomActionHandler(IterableCustomActionHandler customActionHandler)
Set an action handler for custom actions
|
IterableConfig.Builder |
setExpiringAuthTokenRefreshPeriod(java.lang.Long period)
Set a custom period before an auth token expires to automatically retrieve a new token
|
IterableConfig.Builder |
setInAppDisplayInterval(double inAppDisplayInterval)
Set the in-app message display interval: the number of seconds to wait before showing
the next in-app message, if there are multiple messages in the queue
|
IterableConfig.Builder |
setInAppHandler(IterableInAppHandler inAppHandler)
Set a custom in-app handler that can be used to control whether an incoming in-app message
should be shown immediately or not
|
IterableConfig.Builder |
setLogLevel(int logLevel)
Set the log level for Iterable SDK log messages
|
IterableConfig.Builder |
setPushIntegrationName(java.lang.String pushIntegrationName)
Push integration name - used for token registration
Make sure the name of this integration matches the one set up in Iterable console
If this field is not set, Iterable SDK defaults it to the app's package name
|
IterableConfig.Builder |
setUrlHandler(IterableUrlHandler urlHandler)
Set a custom URL handler to override openUrl actions
|
@NonNull public IterableConfig.Builder setPushIntegrationName(@NonNull java.lang.String pushIntegrationName)
pushIntegrationName - Push integration name@NonNull public IterableConfig.Builder setUrlHandler(@NonNull IterableUrlHandler urlHandler)
urlHandler - Custom URL handler provided by the app@NonNull public IterableConfig.Builder setCustomActionHandler(@NonNull IterableCustomActionHandler customActionHandler)
customActionHandler - Custom action handler provided by the app@NonNull public IterableConfig.Builder setAutoPushRegistration(boolean enabled)
IterableApi.setUserId(String) or IterableApi.setEmail(String)
and disable the old device entry when the user logs outenabled - Enable automatic push token registration@NonNull public IterableConfig.Builder setCheckForDeferredDeeplink(boolean checkForDeferredDeeplink)
checkForDeferredDeeplink - Enable deferred deep link checks on first launch@NonNull public IterableConfig.Builder setLogLevel(int logLevel)
logLevel - Log level, defaults to Log.ERROR@NonNull public IterableConfig.Builder setInAppHandler(@NonNull IterableInAppHandler inAppHandler)
inAppHandler - In-app handler provided by the app@NonNull public IterableConfig.Builder setInAppDisplayInterval(double inAppDisplayInterval)
inAppDisplayInterval - display interval in seconds@NonNull public IterableConfig.Builder setAuthHandler(@NonNull IterableAuthHandler authHandler)
authHandler - Auth handler provided by the app@NonNull public IterableConfig.Builder setExpiringAuthTokenRefreshPeriod(@NonNull java.lang.Long period)
period - in seconds@NonNull public IterableConfig build()