Builder

class Builder(application: Application, val appId: String, dataCenter: DataCenter)

Create an instance of MoEngage.Builder

Since

12.8.00

Parameters

application

instance of Application

appId

Account identifier for MoEngage Account.

dataCenter

Data Center to which the data should flow.

Constructors

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

Create an instance of MoEngage.Builder

constructor(application: Application, appId: String, dataCenter: DataCenter)

Properties

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

Functions

Link copied to clipboard

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

Link copied to clipboard

Configure Card feature.

Link copied to clipboard

Optionally configure when the SDK sync collected data.

Link copied to clipboard

Configure the Firebase Cloud Messaging.

Link copied to clipboard

Configure Location

Link copied to clipboard

Configure InApp

Link copied to clipboard

Configure logging done by MoEngage SDK

Link copied to clipboard

Configure Mi Push.

Link copied to clipboard

By default, the MoEngage SDK does not add additional security on top of https to REST API calls. In case you want the MoEngage SDK to add additional security in the network request use this API to configure the request.

Link copied to clipboard

Configure Push Notification Meta Data

Link copied to clipboard

Configure Push Kit

Link copied to clipboard

Configure Real Time trigger.

Link copied to clipboard

Configure encryption feature of the MoEngage SDK. This configuration is used to enable encryption of data temporarily stored on the end users device. Once enabled it cannot be reverted. If enabled make sure to add the com:moengage:encrypted-storage artifact.

Link copied to clipboard

Configure tracking opt-out.

Link copied to clipboard

Configure User Registration

Link copied to clipboard

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

Link copied to clipboard

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

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.