Usercentrics - PUBLIC

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Current »

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(), getServices() and getCategories().

  • 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?

  • No labels