Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Initialize SDK object and use it anywhere in your application.

Warning

Remember to initialize SDK only once on application launch. Don't forget to replace the %YOUR_STORE_KEY% text with the current store key from your PersonaClick account.


Code Block
languagejs
themeFadeToGrey
import PersonaClick
...
var sdk = createPersonalizationSDK(shopId: "%YOUR_STORE_KEY%", stream: "ios")

Or with completion to handle problems:

Code Block
languagejs
themeFadeToGrey
import PersonaClick
...
var sdk = createPersonalizationSDK(shopId: "%YOUR_STORE_KEY%", stream: "ios", { (error) in
    print(error)
})


Table of Contents
maxLevel2
classpersonaclick-fixed-position