Usercentrics - PUBLIC

Breaking change: What methods will replace getSettings() and getServices()?

Overview


What’s happening?

Usercentrics is introducing a breaking change for two methods that were available in our CMP Version 2.

The methods getSettings() and getServices() will be deprecated.


For what were these methods used?

  • getSettings() was a public method used to retrieve basic CMP configuration information

  • getServices() was a public method used to get the list of services


Which method are replacing them?

  • the methods deprecated are getSettings() and getServices().

  • getSettings() will be replaced by getSettingsCore(), getSettingsUI(), getSettingsLabels() and getControllerId().

  • getServices() will be replaced by getServicesBaseInfo() and getServicesFullInfo().


What purpose does the deprecation serve?

The methods getSettings() and getServices() are getting deprecated because we restructured our settings configurations file to improve performance by loading only what is necessary for each layer. The new methods available getSettingsCore(), getSettingsUI(), getSettingsLabels(), getControllerId() and getServicesFullInfo() will serve you with the same purpose.


Do you need further help?

How can I get help with technical questions?

 

Usercentrics - PUBLIC