Marketing Cloud SDK / com.salesforce.marketingcloud / MarketingCloudConfig / Builder

Builder

class Builder

Functions

build

fun build(context: Context): MarketingCloudConfig

setAccessToken

fun setAccessToken(accessToken: String): <ERROR CLASS>

setAnalyticsEnabled

fun setAnalyticsEnabled(analyticsEnabled: Boolean): <ERROR CLASS>

setApplicationId

fun setApplicationId(applicationId: String): <ERROR CLASS>

setDelayRegistrationUntilContactKeyIsSet

Set the behavior for initial Contact Key registration.

fun setDelayRegistrationUntilContactKeyIsSet(delay: Boolean): <ERROR CLASS>

setGeofencingEnabled

fun setGeofencingEnabled(geofenceEnabled: Boolean): <ERROR CLASS>

setInboxEnabled

fun setInboxEnabled(inboxEnabled: Boolean): <ERROR CLASS>

setMarketingCloudServerUrl

Set the Tenant Specific Endpoint URL for your application. For more information reference the SDK documentation website.

fun setMarketingCloudServerUrl(marketingCloudServerUrl: String): <ERROR CLASS>

setMarkMessageReadOnInboxNotificationOpen

The default behavior of the SDK has been to mark an {@link InboxMessage} as read when the notification is clicked. The default behavior remains unchanged and messages will continue to be marked as read unless you set this field to false.

fun setMarkMessageReadOnInboxNotificationOpen(markRead: Boolean): <ERROR CLASS>

setMid

Set your application's MID value found in your profile in your Marketing Cloud account.

fun setMid(mid: String): <ERROR CLASS>

setNotificationCustomizationOptions

fun setNotificationCustomizationOptions(options: NotificationCustomizationOptions): <ERROR CLASS>

setPiAnalyticsEnabled

fun setPiAnalyticsEnabled(piAnalyticsEnabled: Boolean): <ERROR CLASS>

setProximityEnabled

fun setProximityEnabled(proximityEnabled: Boolean): <ERROR CLASS>

setSenderId

Sender Id used for push.

fun setSenderId(senderId: String): <ERROR CLASS>

setUrlHandler

fun setUrlHandler(urlHandler: UrlHandler): <ERROR CLASS>

setUseLegacyPiIdentifier

The SDK will, by default, use the RegistrationManager.getContactKey as the Predictive Intelligence Identifier for all Predictive Intelligence analytics. A future release of the SDK will eliminate this default behavior such that a value must be explicitly set as the pi identifier.

fun setUseLegacyPiIdentifier(useLegacyPiIdentifier: Boolean): <ERROR CLASS>