setPiIdentifier

abstract fun setPiIdentifier(@Nullable @Size(min = 1) piIdentifier: String)

Set the Predictive Intelligence Identifier to be associated with your Predictive Intelligence analytics. This value can be cleared by setting it to null. By default, if unset, the SDK will use the Contact Key. You can decide whether or not you want this default, legacy behavior by setting MarketingCloudConfig.Builder#setUseLegacyPiIdentifier(boolean). This default behavior will be removed in an upcoming SDK release and you will be required to explicitly set the identifier.

Parameters

piIdentifier

the Predictive Intelligence Identifier for your PI Analytics.

See also

MarketingCloudConfig.Builder