MoEngageBuilderKtx

constructor(application: Application, appId: String, notificationConfig: NotificationConfig = NotificationConfig.defaultConfig(), fcmConfig: FcmConfig = FcmConfig.defaultConfig(), pushKitConfig: PushKitConfig = PushKitConfig.defaultConfig(), rttConfig: RttConfig = RttConfig.defaultConfig(), tokenRetryInterval: Long = PUSH_CONFIG_DEFAULT_TOKEN_RETRY_INTERVAL, inAppConfig: InAppConfig = InAppConfig.defaultConfig(), logConfig: LogConfig = LogConfig.defaultConfig(), cardConfig: CardConfig = CardConfig.defaultConfig(), dataSyncConfig: DataSyncConfig = DataSyncConfig.defaultConfig(), optOutConfig: TrackingOptOutConfig = TrackingOptOutConfig.defaultConfig(), dataCenter: DataCenter = DEFAULT_DATA_CENTER, integrationPartner: IntegrationPartner? = null, storageSecurityConfig: StorageSecurityConfig = StorageSecurityConfig.defaultConfig(), networkRequestConfig: NetworkRequestConfig = NetworkRequestConfig.defaultConfig(), userRegistrationConfig: UserRegistrationConfig = UserRegistrationConfig.defaultConfig())

Parameters

application

Instance of Application

appId

App Id from MoEngage Dashboard.

notificationConfig

Configuration Push Notification Meta Data. Refer NotificationConfig

fcmConfig

Configuration for Firebase Cloud Messaging. Refer FcmConfig

pushKitConfig

Configuration for HMS Push Kit. Refer PushKitConfig

rttConfig

Configuration for Real Time Trigger Campaign. Refer RttConfig

tokenRetryInterval

Configuration for interval after which SDK should retry registering for push token.

inAppConfig

Configuration for InApp Campaigns. Refer InAppConfig

logConfig

Configuration for logs being printed in logcat by the SDK. Refer LogConfig

cardConfig

Configuration for Card Campaigns. Refer CardConfig

dataSyncConfig

Configuration for data syncing with MoEngage Server. Refer DataSyncConfig

optOutConfig

Configuration for opting out on default data tracked by the SDK. Refer TrackingOptOutConfig

dataCenter

Optionally set the data-center to which the data should flow.

integrationPartner

If you are using MoEngage bundled with any partner integration specify the Partner using this field. Refer IntegrationPartner to know the supported partners. Note: Do not use this API if you are not using MoEngage via any partner as a bundled SDK. Calling this API without using Partner bundle will result in malfunction of the SDK.

networkRequestConfig

Configuration for Network Request. Refer NetworkRequestConfig

userRegistrationConfig

Configuration for User Registration. Refer UserRegistrationConfig