Migration Guide
SDK 1.x to 2.x
Ads:
Removed API | New API |
---|---|
sdk.ads.interstitial.show() | sdk.ads.showInterstitialAd() |
sdk.ads.rewarded.show() | sdk.ads.showRewardAd() |
sdk.ads.bannerAd.show() | sdk.ads.showBannerAd() |
Persistence:
Removed API | New API |
---|---|
sdk.gameState.saveGameState() | REMOVED |
sdk.gameState.loadGameState() | REMOVED |
sdk.environment.localStorage.getItem() | sdk.persistence.getLocalStorageItem() |
sdk.environment.localStorage.setItem() | sdk.persistence.setLocalStorageItem() |
sdk.environment.localStorage.removeItem() | sdk.persistence.removeLocalStorageItem() |
sdk.environment.cookieStorage.GetKey() | sdk.persistence.getCookie() |
Auth:
Removed API | New API |
---|---|
sdk.userStateApi.userProfileReader.isUserAuthorized() | sdk.auth.isUserAuthorized() |
sdk.userStateApi.userProfileReader.getUserProfile() | sdk.auth.getUserProfile() |
sdk.userStateApi.userProfileReader.authStatus.subscribe() | sdk.auth.onAuthStatusChange() |
sdk.userStateApi.authUIManager.openAuthForm() | sdk.auth.openAuthForm() |
sdk.userStateApi.authUIManager.openAuthRequest.subscribe() | sdk.auth.onOpenAuthForm() |
Lifecycle:
Removed API | New API |
---|---|
sdk.lifecycle.OnTestReady() | sdk.lifecycle.onTestReady() |
sdk.lifecycle.OnInteract() | sdk.lifecycle.onInteract() |
sdk.lifecycle.OnGameStart() | sdk.lifecycle.onGameStart() |
sdk.lifecycle.OnGameEnd() | sdk.lifecycle.onGameEnd() |
sdk.lifecycle.OnGameResume() | sdk.lifecycle.onGameResume() |
sdk.lifecycle.OnPauseReady() | sdk.lifecycle.onPauseReady() |
sdk.lifecycle.OnGamePause() | sdk.lifecycle.onGamePause() |
sdk.lifecycle.OnChangeScore() | sdk.lifecycle.onChangeScore() |
Host:
Removed API | New API |
---|---|
sdk.purchases.ui.purchaseRequest() | sdk.host.openPurchaseForm() |
sdk.environment.urlParamsReader.GetParam() | sdk.host.getQueryParameter() |
sdk.environment.webEnvironmentDetailsStorage.getParams() | sdk.host.getDetails() |
sdk.environment.gameIdReader.readGameId() | sdk.host.getGameId() |
sdk.environment.gameIdReader.setGameId() | sdk.host.setGameId() |