public static abstract class

MarketingCloudConfig.Builder

extends Object
java.lang.Object
   ↳ com.salesforce.marketingcloud.MarketingCloudConfig.Builder

Summary

Public Constructors
Builder()
Public Methods
final MarketingCloudConfig build(Context context)
abstract MarketingCloudConfig.Builder setAccessToken(String value)
abstract MarketingCloudConfig.Builder setAnalyticsEnabled(boolean value)
abstract MarketingCloudConfig.Builder setApplicationId(String value)
abstract MarketingCloudConfig.Builder setDelayRegistrationUntilContactKeyIsSet(boolean value)
Set the behavior for initial Contact Key registration.
abstract MarketingCloudConfig.Builder setGeofencingEnabled(boolean value)
abstract MarketingCloudConfig.Builder setInboxEnabled(boolean value)
abstract MarketingCloudConfig.Builder setMarkMessageReadOnInboxNotificationOpen(boolean value)
The default behavior of the SDK has been to mark an InboxMessage as read when the notification is clicked.
abstract MarketingCloudConfig.Builder setMarketingCloudServerUrl(String value)
Set the Tenant Specific Endpoint URL for your application.
abstract MarketingCloudConfig.Builder setMid(String value)
Set your application's MID value found in your profile in your Marketing Cloud account.
abstract MarketingCloudConfig.Builder setNotificationCustomizationOptions(NotificationCustomizationOptions value)
abstract MarketingCloudConfig.Builder setPiAnalyticsEnabled(boolean value)
abstract MarketingCloudConfig.Builder setProximityEnabled(boolean value)
abstract MarketingCloudConfig.Builder setSenderId(String value)
Sender Id used for push.
abstract MarketingCloudConfig.Builder setUrlHandler(UrlHandler urlHandler)
abstract MarketingCloudConfig.Builder setUseLegacyPiIdentifier(boolean value)
The SDK will, by default, use the Contact Key as the Predictive Intelligence Identifier for all Predictive Intelligence analytics.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Public Methods

public final MarketingCloudConfig build (Context context)

public abstract MarketingCloudConfig.Builder setAccessToken (String value)

public abstract MarketingCloudConfig.Builder setAnalyticsEnabled (boolean value)

public abstract MarketingCloudConfig.Builder setApplicationId (String value)

public abstract MarketingCloudConfig.Builder setDelayRegistrationUntilContactKeyIsSet (boolean value)

Set the behavior for initial Contact Key registration.

Parameters
value defaults to false. Set to true if you wish to prevent the initial registration call until Contact Key is set.

public abstract MarketingCloudConfig.Builder setGeofencingEnabled (boolean value)

public abstract MarketingCloudConfig.Builder setInboxEnabled (boolean value)

public abstract MarketingCloudConfig.Builder setMarkMessageReadOnInboxNotificationOpen (boolean value)

The default behavior of the SDK has been to mark an 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.

public abstract MarketingCloudConfig.Builder setMarketingCloudServerUrl (String value)

Set the Tenant Specific Endpoint URL for your application.

Parameters
value represents the server to which the SDK will communicate.
See Also

public abstract MarketingCloudConfig.Builder setMid (String value)

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

Parameters
value the numeric MID from your Marketing Cloud profile

public abstract MarketingCloudConfig.Builder setNotificationCustomizationOptions (NotificationCustomizationOptions value)

public abstract MarketingCloudConfig.Builder setPiAnalyticsEnabled (boolean value)

public abstract MarketingCloudConfig.Builder setProximityEnabled (boolean value)

public abstract MarketingCloudConfig.Builder setSenderId (String value)

Sender Id used for push.
Do not call this method if you wish to handle retrieval of the push token within your own application code. Doing so will cause conflicts in the push token retrieved.

public abstract MarketingCloudConfig.Builder setUrlHandler (UrlHandler urlHandler)

public abstract MarketingCloudConfig.Builder setUseLegacyPiIdentifier (boolean value)

The SDK will, by default, use the Contact Key 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.

Parameters
value defaults to true. Set to false if you wish to take explicit control of the Predictive Intelligence Identifier value.