Builder
Initialise MoEngage SDK using this class. Please follow the guidelines mentioned in MoEngage Integration Docs for integrating the MoEngage SDK.
Author
Umang Chamaria
Constructors
Functions
configureCards
Link copied to clipboard
Configure Card feature.
configureDataSync
Link copied to clipboard
open fun configureDataSync(@NonNull config: DataSyncConfig): MoEngage.Builder
Content copied to clipboard
Optionally configure when the SDK sync collected data.
configureFcm
Link copied to clipboard
Configure the Firebase Cloud Messaging.
configureGeofence
Link copied to clipboard
open fun configureGeofence(@NonNull config: GeofenceConfig): MoEngage.Builder
Content copied to clipboard
Configure Location
configureInApps
Link copied to clipboard
Configure InApp
configureLogs
Link copied to clipboard
Configure logging done by MoEngage SDK
configureMiPush
Link copied to clipboard
open fun configureMiPush(@NonNull config: MiPushConfig): MoEngage.Builder
Content copied to clipboard
Content copied to clipboard
Configure Mi Push.
configureNotificationMetaData
Link copied to clipboard
open fun configureNotificationMetaData(@NonNull config: NotificationConfig): MoEngage.Builder
Content copied to clipboard
Configure Push Notification Meta Data
configurePushKit
Link copied to clipboard
open fun configurePushKit(@NonNull config: PushKitConfig): MoEngage.Builder
Content copied to clipboard
Configure Push Kit
configureRealTimeTrigger
Link copied to clipboard
open fun configureRealTimeTrigger(@NonNull config: RttConfig): MoEngage.Builder
Content copied to clipboard
Configure Real Time trigger.
configureTrackingOptOut
Link copied to clipboard
open fun configureTrackingOptOut(@NonNull config: TrackingOptOutConfig): MoEngage.Builder
Content copied to clipboard
Configure tracking opt-out.
enableEncryption
Link copied to clipboard
By default the MoEngage SDK does not add additional encryption on top of https to REST API calls.
enableLogs
Link copied to clipboard
Enable SDK logs with the given level.
enableLogsForSignedBuild
Link copied to clipboard
Enables/Disables MoEngage logs.
enableMultipleNotificationInDrawer
Link copied to clipboard
By default, the SDK shows only one notification at a given point in time, existing notification is updated with the new notification.
enablePartnerIntegration
Link copied to clipboard
open fun enablePartnerIntegration(@NonNull partner: IntegrationPartner): MoEngage.Builder
Content copied to clipboard
If you are using MoEngage bundled with any partner integration use this API to notify the partner.
enablePushKitTokenRegistration
Link copied to clipboard
By default the MoEngage SDK does not register for Huawei PushKit push token.
enableSegmentIntegration
Link copied to clipboard
This API it to notify MoEngage SDK that the app uses MoEngage SDK along with Segment's SDK as a bundle.
optOutBackStackBuilder
Link copied to clipboard
By default MoEngage SDK synthesis the back-stack from the manifest when redirecting user on push click.
optOutInAppOnActivity
Link copied to clipboard
Content copied to clipboard
By default, the MoEngage SDK will try to show in-app messages on all the activities.
optOutNavBar
Link copied to clipboard
By default, the MoEngage SDK hides the top navigation bar when showing in-apps.
optOutNotificationLargeIcon
Link copied to clipboard
Optionally remove notification large icon
optOutTokenRegistration
Link copied to clipboard
By default the MoEngage SDK registers for push token.
setDataCenter
Link copied to clipboard
open fun setDataCenter(@NonNull dataCenter: DataCenter): MoEngage.Builder
Content copied to clipboard
Optionally set the data-center to which the data should flow.
setNotificationColor
Link copied to clipboard
Set the color for notification.
setNotificationLargeIcon
Link copied to clipboard
Content copied to clipboard
Set the large icon to be shown in the notification.
setNotificationSmallIcon
Link copied to clipboard
Content copied to clipboard
Set the small icon to be shown in the notification.
setNotificationTone
Link copied to clipboard
Set the file name for notification tone.
setSenderId
Link copied to clipboard
Set the sender-id/project id for the FCM project.
setTokenRetryInterval
Link copied to clipboard
open fun setTokenRetryInterval(tokenRetryInterval: Long): MoEngage.Builder
Content copied to clipboard
Time interval after which SDK retry generating the push token in case of registration failure.