InAppConfig

class InAppConfig(shouldHideStatusBar: Boolean, optOutActivities: Set<Class<*>>?, isJavascriptEnabled: Boolean)

InApp Configuration Object.

Author

Umang Chamaria

Since

11.0.00

Parameters

shouldHideStatusBar

By default, the MoEngage SDK hides the top navigation bar when showing in-apps. If your application has navigation drawer and fragments some-times the fragment is not rendered after in-app is dismissed.

optOutActivities

Set of Class instances for Activities on which in-app should not be shown.

Constructors

InAppConfig
Link copied to clipboard
fun InAppConfig()
InAppConfig
Link copied to clipboard
fun InAppConfig(shouldHideStatusBar: Boolean)
InAppConfig
Link copied to clipboard
fun InAppConfig(shouldHideStatusBar: Boolean, optOutActivities: Set<Class<*>>?)
InAppConfig
Link copied to clipboard
fun InAppConfig(shouldHideStatusBar: Boolean, optOutActivities: Set<Class<*>>?, isJavascriptEnabled: Boolean)

Functions

addActivityName
Link copied to clipboard
fun addActivityName(screenNames: Set<String>)
addScreenName
Link copied to clipboard
fun addScreenName(clazz: Class<*>)

Add a screen name to the block list.

addScreenNames
Link copied to clipboard
fun addScreenNames(clazzSet: Set<Class<*>>)

Add a set of screen name to the block list.

getOptedOutScreenName
Link copied to clipboard
fun getOptedOutScreenName(): Set<String>
toString
Link copied to clipboard
open override fun toString(): String

Properties

isJavascriptEnabled
Link copied to clipboard
var isJavascriptEnabled: Boolean

This field is used to enable or disable javascript in webview for HTML in-apps, if true javascript will be enabled in webview, default value is true.

optOutActivities
Link copied to clipboard
var optOutActivities: Set<Class<*>>?

Set of class objects which extends AppCompatActivity

shouldHideStatusBar
Link copied to clipboard
var shouldHideStatusBar: Boolean

If true, status bar would be shown when in-app is shown, default value is false.