Migrate APIs

The Medallia Experience Orchestration SDK for iOS introduces breaking public API changes. For more information, see Additional features of the Medallia Experience Orchestration SDK for iOS.

In general, to migrate from Thunderhead ONE public APIs to Medallia Experience Orchestration public APIs, follow the steps below:

  1. Remove the import of the Thunderhead SDK's module from all classes.
    import Thunderhead
    @import Thunderhead;
  2. Import the Medallia Experience Orchestration SDK's module instead.
    import MedalliaMXO
    @import MedalliaMXO;
  3. Replace all mentions of One in your code to MedalliaMXO to call an API.

    For example, for Swift users, update One.setLogLevel(.All) to MedalliaMXO.setLogLevel(.all), and for Objective-C users, update [One setLogLevel]; to [MedalliaMXO setLogLevel].

  4. Replace One to MXO in the API names.

    For example, update OneLogLevelAll to MXOLogLevelAll.

    Important: Some public API names have been completely changed. We strongly encourage you to follow the new documentation to update all public API names for each Medallia Experience Orchestration SDK additional feature used in your iOS app.

For example, for configuring logging, instead of using:

One.setLogLevel(.All)
[One setLogLevel:OneLogLevelAll];

Use the following:

MedalliaMXO.setLogLevel(.all)
[MedalliaMXO setLogLevel:MXOLogLevelAll];