Builder

class Builder(application: Application, appId: String)

Initialise MoEngage SDK using this class.

Please follow the guidelines mentioned in MoEngage Integration Docs for integrating the MoEngage SDK.

Author

Umang Chamaria

Since

9.0.00

Constructors

Builder
Link copied to clipboard
fun Builder(application: Application, appId: String)

Functions

build
Link copied to clipboard
fun build(): MoEngage

Builds the configuration to initialise MoEngage SDK. Call MoEngage.initialise with the returned object to

configureCards
Link copied to clipboard
fun configureCards(config: CardConfig): MoEngage.Builder

Configure Card feature.

configureDataSync
Link copied to clipboard
fun configureDataSync(config: DataSyncConfig): MoEngage.Builder

Optionally configure when the SDK sync collected data.

configureFcm
Link copied to clipboard
fun configureFcm(config: FcmConfig): MoEngage.Builder

Configure the Firebase Cloud Messaging.

configureGeofence
Link copied to clipboard
fun configureGeofence(config: GeofenceConfig): MoEngage.Builder

Configure Location

configureInApps
Link copied to clipboard
fun configureInApps(config: InAppConfig): MoEngage.Builder

Configure InApp

configureLogs
Link copied to clipboard
fun configureLogs(config: LogConfig): MoEngage.Builder

Configure logging done by MoEngage SDK

configureMiPush
Link copied to clipboard
fun configureMiPush(config: MiPushConfig): MoEngage.Builder

Configure Mi Push.

configureNotificationMetaData
Link copied to clipboard
fun configureNotificationMetaData(config: NotificationConfig): MoEngage.Builder

Configure Push Notification Meta Data

configurePushKit
Link copied to clipboard
fun configurePushKit(config: PushKitConfig): MoEngage.Builder

Configure Push Kit

configureRealTimeTrigger
Link copied to clipboard
fun configureRealTimeTrigger(config: RttConfig): MoEngage.Builder

Configure Real Time trigger.

configureTrackingOptOut
Link copied to clipboard
fun configureTrackingOptOut(config: TrackingOptOutConfig): MoEngage.Builder

Configure tracking opt-out.

enableEncryption
Link copied to clipboard
fun enableEncryption(): MoEngage.Builder

By default the MoEngage SDK does not add additional encryption on top of https to REST API calls. In case you want the MoEngage SDK to add additional encryption use this API.

enablePartnerIntegration
Link copied to clipboard
fun enablePartnerIntegration(partner: IntegrationPartner): MoEngage.Builder

If you are using MoEngage bundled with any partner integration use this API to notify the partner.

setDataCenter
Link copied to clipboard
fun setDataCenter(dataCenter: DataCenter): MoEngage.Builder

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

setTokenRetryInterval
Link copied to clipboard
fun setTokenRetryInterval(tokenRetryInterval: Long): MoEngage.Builder

Time interval after which SDK retry generating the push token in case of registration failure.

Properties

appId
Link copied to clipboard
val appId: String
initConfig
Link copied to clipboard
val initConfig: InitConfig