BlueStack SDK v6.0.1 for React Native
· Une minute de lecture
Major release. Several public C# APIs have been renamed or have shape changes — see the v3.x → v6.0.0 migration guide before upgrading.
BlueStackAds.SetDebugMode(bool) plus IsDebugModeEnabled and IsInitialized propertiesInterstitialAd.IsReady and RewardedAd.IsReadyBannerAd anchor-based positioning, custom screen-space positioning, masking, and a useSafeArea opt-outBannerAd.OnAdResized event delivering a PreferredBannerSizeBlueStackAds.Initialize signature simplified — Settings and the dual init callbacks are removed;
a single callback now delivers InitializationStatusRewardedVideoAd renamed to RewardedAd; reward event renamed to OnAdRewardEarnedOnAd* conventionSee the full announcement and migration walkthrough: BlueStack SDK for Unity version 6.
See the full announcement for context, prerequisites, and upgrade instructions: BlueStack SDK for React Native version 6.
AppOpenAd class for loading and displaying app open adsMNGGender.MNGGenderUnknown → Gender.GenderUnknownMNGGender.MNGGenderMale → Gender.GenderMaleMNGGender.MNGGenderFemale → Gender.GenderFemaleAdSize.BANNER → BannerAdSize.BANNERAdSize.FULL_BANNER → BannerAdSize.FULL_BANNERAdSize.LARGE_BANNER → BannerAdSize.LARGE_BANNERAdSize.LEADERBOARD → BannerAdSize.LEADERBOARDAdSize.MEDIUM_RECTANGLE → BannerAdSize.MEDIUM_RECTANGLEAdSize.DYNAMIC_BANNER → BannerAdSize.DYNAMIC_BANNERAdSize.DYNAMIC_LEADERBOARD → BannerAdSize.DYNAMIC_LEADERBOARD:::tip Migration Guide Available See the complete migration guide for detailed code examples and step-by-step instructions. :::
BLS prefix to Objective-C public classes to avoid naming conflicts.BlueStack to MobileAds
(Objective-C: BLSMobileAds).BlueStackPrivacySettings to PrivacySettings.BlueStackError to AdError and BlueStackErrorCode
to AdErrorCode.BlueStackError* and MAdvertiseError* error constants
renamed to AdError* prefix
(e.g., BlueStackErrorWrongPlacement → AdErrorWrongPlacement).MNGAdsSDKFactory → AdsSDKFactory,
MNGAdsAdapter → AdsAdapter, MNGNAtiveObject → NativeObject,
MNGPreference → Preference.MNGAdsAdapterNativeDelegate → AdsAdapterNativeDelegate.MNGDisplayType to DisplayType.:::tip Migration Guide Available See the complete migration guide for detailed code examples and step-by-step instructions. :::