8.1.0 API Changes
As part of ironSource SDK 8.1.0 we removed some APIs and deprecated some of our existing listeners and callbacks. You can find the detailed list of changes below:
APIs deprecated in 2.0.0 for React Native
Deprecated Class |
New Class |
InitializationEvents |
InitializationListener |
ImpressionDataEvents |
LevelPlayInterstitialListener |
ConsentViewEvents |
ConsentViewListener |
LevelPlayBannerEvents |
LevelPlayBannerListener |
LevelPlayInterstitialEvents |
LevelPlayInterstitialListener |
LevelPlayRewardedVideoEvents |
LevelPlayRewardedVideoListener
LevelPlayRewardedVideoManualListener |
Deprecated API |
New API |
InitializationEvents.onInitializationComplete |
setInitializationListener: (listener: InitializationListener) |
ImpressionDataEvents.onImpressionSuccess |
setImpressionDataListener: (listener: ImpressionDataListener) |
ConsentViewEvents.consentViewDidLoadSuccess
ConsentViewEvents.consentViewDidFailToLoad
ConsentViewEvents.consentViewDidShowSuccess
ConsentViewEvents.consentViewDidFailToShow |
setConsentViewListener: (listener: ConsentViewListener) |
LevelPlayBannerEvents.onAdLoaded
LevelPlayBannerEvents.onAdLoadFailed
LevelPlayBannerEvents.onAdClicked
LevelPlayBannerEvents.onAdScreenPresented
LevelPlayBannerEvents.onAdScreenDismissed
LevelPlayBannerEvents.onAdLeftApplication |
setLevelPlayBannerListener: (listener: LevelPlayBannerListener) |
LevelPlayInterstitialEvents.onAdReady
LevelPlayInterstitialEvents.onAdLoadFailed
LevelPlayInterstitialEvents.onAdOpened
LevelPlayInterstitialEvents.onAdClosed
LevelPlayInterstitialEvents.onAdShowFailed
LevelPlayInterstitialEvents.onAdClicked
LevelPlayInterstitialEvents.onAdShowSucceeded |
setLevelPlayInterstitialListener: (listener: LevelPlayInterstitialListener) |
LevelPlayRewardedVideoEvents.onAdAvailable
LevelPlayRewardedVideoEvents.onAdUnavailable
LevelPlayRewardedVideoEvents.onAdOpened
LevelPlayRewardedVideoEvents.onAdClosed
LevelPlayRewardedVideoEvents.onAdAvailable
LevelPlayRewardedVideoEvents.onAdRewarded
LevelPlayRewardedVideoEvents.onAdShowFailed
LevelPlayRewardedVideoEvents.onAdClicked
LevelPlayRewardedVideoEvents.onAdReady
LevelPlayRewardedVideoEvents.onAdLoadFailed |
setLevelPlayRewardedVideoListener: (listener: LevelPlayRewardedVideoListener)
setLevelPlayRewardedVideoManualListener: (listener: LevelPlayRewardedVideoManualListener) |
APIs removed from 2.0.0 for React-Native
Deprecated Class |
New Class |
BannerEvents |
LevelPlayBannerListener |
InterstitialEvents |
LevelPlayInterstitialListener |
RewardedVideoEvents |
LevelPlayRewardedVideoListener
LevelPlayRewardedVideoManualListener |
OfferwallEvents |
– |
IronSourceOWCreditInfo |
– |
Deprecated API |
New API |
BannerEvents.onBannerAdLoaded
BannerEvents.onBannerAdLoadFailed
BannerEvents.onBannerAdClicked
BannerEvents.onBannerAdScreenPresented
BannerEvents.onBannerAdDismissed
BannerEvents.onBannerAdLeftApplication |
setLevelPlayBannerListener: (listener: LevelPlayBannerListener) |
InterstitialEvents.onInterstitialAdReady
InterstitialEvents.onInterstitialAdLoadFailed
InterstitialEvents.onInterstitialAdOpened
InterstitialEvents.onInterstitialAdClosed
InterstitialEvents.onInterstitialAdShowSucceeded
InterstitialEvents.onInterstitialAdShowFailed
InterstitialEvents.onInterstitialAdClicked |
setLevelPlayInterstitialListener: (listener: LevelPlayInterstitialListener) |
RewardedVideoEvents.onRewardedVideoAdOpened
RewardedVideoEvents.onRewardedVideoAdClosed
RewardedVideoEvents.onRewardedVideoAdAvailabilityChanged
RewardedVideoEvents.onRewardedVideoAdStarted
RewardedVideoEvents.onRewardedVideoAdEnded
RewardedVideoEvents.onRewardedVideoAdRewarded
RewardedVideoEvents.onRewardedVideoAdShowFailed
RewardedVideoEvents.onRewardedVideoAdClicked
RewardedVideoEvents.onRewardedVideoAdReady
RewardedVideoEvents.onRewardedVideoAdLoadFailed |
setLevelPlayRewardedVideoListener: (listener: LevelPlayRewardedVideoListener)
setLevelPlayRewardedVideoManualListener: (listener: LevelPlayRewardedVideoManualListener) |
showOfferwall(): Promise<void> |
– |
showOfferwallForPlacement(placementName: string): Promise<void> |
– |
getOfferwallCredits(): Promise<void> |
– |
isOfferwallAvailable(): Promise<boolean> |
– |
setOfferwallCustomParams(params: { [key: string]: string }): Promise<void> |
– |
showOfferwall: ShowFunction |
– |