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


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

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.


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