Package com.moengage.core.config

Types

CardConfig
Link copied to clipboard
class CardConfig(@DrawableRes cardPlaceHolderImage: Int, @DrawableRes inboxEmptyImage: Int, cardsDateFormat: String, isSwipeRefreshEnabled: Boolean)

Card Configuration.

DataSyncConfig
Link copied to clipboard
class DataSyncConfig(isPeriodicSyncEnabled: Boolean, periodicSyncInterval: Long, isBackgroundSyncEnabled: Boolean)

Data Sync configuration

FcmConfig
Link copied to clipboard
class FcmConfig(isRegistrationEnabled: Boolean)

Create an instance of Firebase Messaging Config.

GeofenceConfig
Link copied to clipboard
class GeofenceConfig(isGeofenceEnabled: Boolean)

Geofence Configuration Object.

InAppConfig
Link copied to clipboard
class InAppConfig(optOutActivities: Set<Class<*>>?)

InApp Configuration Object.

JavaScriptConfig
Link copied to clipboard
class JavaScriptConfig(isJavaScriptEnabled: Boolean)

Javascript configuration object.

LogConfig
Link copied to clipboard
class LogConfig(level: Int, isEnabledForReleaseBuild: Boolean)

Log Configuration Object.

MiPushConfig
Link copied to clipboard
class MiPushConfig(appId: String, appKey: String, isRegistrationEnabled: Boolean)

Mi Push Config Configuration

NetworkAuthorizationConfig
Link copied to clipboard
class NetworkAuthorizationConfig(isJwtEnabled: Boolean)

Create an instance of Network Authorization Config.

NetworkDataSecurityConfig
Link copied to clipboard
class NetworkDataSecurityConfig(isEncryptionEnabled: Boolean, encryptionEncodedDebugKey: String, encryptionEncodedReleaseKey: String)

Create an instance of Network Data Security Config.

NetworkRequestConfig
Link copied to clipboard
class NetworkRequestConfig(networkDataSecurityConfig: NetworkDataSecurityConfig, networkAuthorizationConfig: NetworkAuthorizationConfig)

Create an instance of Network Request Config.

NotificationConfig
Link copied to clipboard
class NotificationConfig(@DrawableRes smallIcon: Int, @DrawableRes largeIcon: Int, @ColorRes notificationColor: Int, isMultipleNotificationInDrawerEnabled: Boolean, isBuildingBackStackEnabled: Boolean, isLargeIconDisplayEnabled: Boolean)

Notification Configuration object.

PushConfig
Link copied to clipboard
class PushConfig(tokenRetryInterval: Long, meta: NotificationConfig, miPush: MiPushConfig, fcm: FcmConfig, pushKit: PushKitConfig)
PushKitConfig
Link copied to clipboard
class PushKitConfig(isRegistrationEnabled: Boolean)

Create an instance of PushKit Messaging Config.

RttConfig
Link copied to clipboard
class RttConfig(isBackgroundSyncEnabled: Boolean)

Create an instance of Real Time trigger configuration.

StorageEncryptionConfig
Link copied to clipboard
class StorageEncryptionConfig(isEncryptionEnabled: Boolean)

Configuration for how data would be stored on the SDK.

StorageSecurityConfig
Link copied to clipboard
class StorageSecurityConfig(storageEncryptionConfig: StorageEncryptionConfig)

Storage security configuration

TrackingOptOutConfig
Link copied to clipboard
class TrackingOptOutConfig(isCarrierTrackingEnabled: Boolean, isDeviceAttributeTrackingEnabled: Boolean, optOutActivities: Set<Class<*>>?)
UserRegistrationConfig
Link copied to clipboard
class UserRegistrationConfig(isRegistrationEnabled: Boolean)

Create an instance of UserRegistrationConfig

Properties

CARD_CONFIG_DEFAULT_DATE_FORMAT
Link copied to clipboard
const val CARD_CONFIG_DEFAULT_DATE_FORMAT: String

Default date format for any card.

const val CARD_CONFIG_DEFAULT_EMPTY_INBOX_IMAGE_RESOURCE_ID: Int

Default resource id for the empty inbox.

const val CARD_CONFIG_DEFAULT_PLACE_HOLDER_IMAGE_RESOURCE_ID: Int

Default resource id for the placeholder image.

CARD_CONFIG_DEFAULT_SWIPE_REFRESH_STATE
Link copied to clipboard
const val CARD_CONFIG_DEFAULT_SWIPE_REFRESH_STATE: Boolean = true

Default state of whether swipe refresh layout.

const val DATA_SYNC_CONFIG_DEFAULT_BACKGROUND_SYNC_STATE: Boolean = true

Default state of background data sync. By default, background data sync is enabled.

const val DATA_SYNC_CONFIG_DEFAULT_PERIODIC_SYNC_INTERVAL: Long

Default value for periodic flush time interval.

const val DATA_SYNC_CONFIG_DEFAULT_PERIODIC_SYNC_STATE: Boolean = true

Default state for periodic flush of data when the application is in foreground. By default, periodic flush is enabled.

FCM_CONFIG_DEFAULT_REGISTRATION_STATE
Link copied to clipboard
const val FCM_CONFIG_DEFAULT_REGISTRATION_STATE: Boolean = true

Default state of Firebase Cloud Messaging token registration. By default, token registration is enabled.

GEOFENCE_CONFIG_DEFAULT_STATE
Link copied to clipboard
const val GEOFENCE_CONFIG_DEFAULT_STATE: Boolean = false

Default state of Geofence feature. By default, geofence feature is disabled.

val INAPP_CONFIG_DEFAULT_INAPP_OPT_OUT_ACTIVITIES: Set<Class<*>>

Default activities on which in-app should not be shown. By default in-app can be shown on any activity.

const val INAPP_CONFIG_DEFAULT_JAVASCRIPT_ENABLED_STATE: Boolean = true

Default state for Javascript enablement. By default, Javascript is enabled.

const val JAVASCRIPT_CONFIG_DEFAULT_STATE_JAVASCRIPT_USAGE: Boolean = true

Default state of Javascript usage in WebView.

LOG_CONFIG_DEFAULT_LOG_LEVEL
Link copied to clipboard
const val LOG_CONFIG_DEFAULT_LOG_LEVEL: Int

Default log level. By default, info logs are enabled.

const val LOG_CONFIG_DEFAULT_STATE_FOR_RELEASE_BUILD: Boolean = false

Default state of logs for release build. By default, logs for release build is disabled.

MI_CONFIG_DEFAULT_APP_ID
Link copied to clipboard
const val MI_CONFIG_DEFAULT_APP_ID: String

Default value of Mi console's App-id.

MI_CONFIG_DEFAULT_APP_KEY
Link copied to clipboard
const val MI_CONFIG_DEFAULT_APP_KEY: String

Default value for Mi console's App-key.

MI_CONFIG_DEFAULT_REGISTRATION_STATE
Link copied to clipboard
const val MI_CONFIG_DEFAULT_REGISTRATION_STATE: Boolean = false

Default state of token registration for Mi Push. By default, token registration is disabled.

const val NETWORK_AUTHORIZATION_CONFIG_DEFAULT_JWT_STATE: Boolean = false

Default value for Network API Jwt Authorization.

const val NETWORK_DATA_SECURITY_CONFIG_DEFAULT_DATA_ENCRYPTION_STATE: Boolean = false

Default value for Network API Data Encryption.

const val NOTIFICATION_CONFIG_DEFAULT_BACK_STACK_STATE: Boolean = true

Default state for back-stack generation of on notification click. By default, back stack generation is enabled.

const val NOTIFICATION_CONFIG_DEFAULT_COLOR_RESOURCE_ID: Int

Default resource id for notification color.

const val NOTIFICATION_CONFIG_DEFAULT_LARGE_ICON_RESOURCE_ID: Int

Default resource id for notification large icon.

const val NOTIFICATION_CONFIG_DEFAULT_LARGE_ICON_STATE: Boolean = true

Default state for notification large icon to be shown. By default, notification large icon will be shown.

const val NOTIFICATION_CONFIG_DEFAULT_MULTIPLE_NOTIFICATION_STATE: Boolean = false

Default state for multiple notifications in the notification drawer. By default multiple notifications are disabled in the notification drawer.

const val NOTIFICATION_CONFIG_DEFAULT_SMALL_ICON_RESOURCE_ID: Int

Default resource id for notification small icon.

const val PUSH_CONFIG_DEFAULT_TOKEN_RETRY_INTERVAL: Long = 20

Default interval for retrying push token registration. Default value is 20 seconds.

const val PUSH_KIT_CONFIG_DEFAULT_REGISTRATION_STATE: Boolean = false

Default state for Push kit token registration. By default token registration is disabled.

const val RTT_CONFIG_DEFAULT_BACKGROUND_SYNC_STATUS: Boolean = true

Default state for background sync of Real-Time Trigger Campaigns. By default, background sync is enabled.

const val TRACKING_CONFIG_DEFAULT_CARRIER_TRACKING_STATE: Boolean = true

Default of carrier name tracking. By default, carrier name tracking is enabled.

const val TRACKING_CONFIG_DEFAULT_DEVICE_ATTRIBUTE_TRACKING_STATE: Boolean = true

Default state of device attribute tracking. By default, device attribute tracking is enabled.

val TRACKING_CONFIG_DEFAULT_OPTED_OUT_ACTIVITIES: Set<Class<*>>

Default list of activities that should not be tracked. By default, all activities are tracked.

const val USER_REGISTRATION_CONFIG_DEFAULT_USER_REGISTRATION_STATE: Boolean = false

Default value for User Registration State.