Package com.swrve.sdk.config
Class SwrveInAppMessageConfig
- java.lang.Object
-
- com.swrve.sdk.config.SwrveInAppMessageConfig
-
public class SwrveInAppMessageConfig extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SwrveInAppMessageConfig.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAutoShowMessagesMaxDelay()
Maximum delay for in-app messages to appear after initialization.int
getClickColor()
The in-app message button click color.SwrveClipboardButtonListener
getClipboardButtonListener()
Custom listener to process in-app message copy-to-clipboard button clicks.SwrveCustomButtonListener
getCustomButtonListener()
Custom listener to process in-app message custom button clicks.int
getDefaultBackgroundColor()
The in-app message default background colorSwrveDismissButtonListener
getDismissButtonListener()
In-app button listener to get notified of in-app message dismiss button clicks.SwrveInstallButtonListener
getInstallButtonListener()
Custom listener to process in-app message install button clicks.SwrveMessageFocusListener
getMessageFocusListener()
IAM focus listenerSwrveMessagePersonalizationProvider
getPersonalizationProvider()
Custom personalization provider for incoming In app messages.int
getPersonalizedTextBackgroundColor()
The in-app message text background color.int
getPersonalizedTextForegroundColor()
The in-app message personalized text foreground color.android.graphics.Typeface
getPersonalizedTextTypeface()
The in-app message personalized text typeface.SwrveInAppWindowListener
getWindowListener()
Custom IAM window listenerboolean
isHideToolbar()
-
-
-
Method Detail
-
getDefaultBackgroundColor
public int getDefaultBackgroundColor()
The in-app message default background color- Returns:
- The in-app message default background color
-
getClickColor
public int getClickColor()
The in-app message button click color.- Returns:
- The in-app message button click color
-
isHideToolbar
public boolean isHideToolbar()
- Returns:
- Whether the SDK will hide the toolbar when displaying in-app messages.
-
getPersonalizedTextBackgroundColor
public int getPersonalizedTextBackgroundColor()
The in-app message text background color.- Returns:
- The in-app message text background color
-
getPersonalizedTextForegroundColor
public int getPersonalizedTextForegroundColor()
The in-app message personalized text foreground color.- Returns:
- The in-app message button click color
-
getPersonalizedTextTypeface
public android.graphics.Typeface getPersonalizedTextTypeface()
The in-app message personalized text typeface.- Returns:
- The in-app message personalized text typeface
-
getAutoShowMessagesMaxDelay
public long getAutoShowMessagesMaxDelay()
Maximum delay for in-app messages to appear after initialization.- Returns:
- maximum delay in milliseconds
-
getInstallButtonListener
public SwrveInstallButtonListener getInstallButtonListener()
Custom listener to process in-app message install button clicks.- Returns:
- The custom listener
-
getCustomButtonListener
public SwrveCustomButtonListener getCustomButtonListener()
Custom listener to process in-app message custom button clicks.- Returns:
- The custom listener
-
getDismissButtonListener
public SwrveDismissButtonListener getDismissButtonListener()
In-app button listener to get notified of in-app message dismiss button clicks.- Returns:
- The custom listener
-
getClipboardButtonListener
public SwrveClipboardButtonListener getClipboardButtonListener()
Custom listener to process in-app message copy-to-clipboard button clicks.- Returns:
- The custom listener
-
getPersonalizationProvider
public SwrveMessagePersonalizationProvider getPersonalizationProvider()
Custom personalization provider for incoming In app messages.- Returns:
- The personalization provider
-
getWindowListener
public SwrveInAppWindowListener getWindowListener()
Custom IAM window listener- Returns:
- the custom listener
-
getMessageFocusListener
public SwrveMessageFocusListener getMessageFocusListener()
IAM focus listener- Returns:
- the focus listener
-
-