Пример #1
0
        private IMASettings CreateIMASettings()
        {
            var settings = new IMASettings();

            settings.Language      = NSLocale.PreferredLanguages[0];
            settings.PlayerType    = "google/gmf-ios";
            settings.PlayerVersion = "1.0.0";

            return(settings);
        }
Пример #2
0
        /// <summary>
        /// Setups the ads loader.
        /// </summary>
        private void SetupAdsLoader()
        {
            IMASettings settings = new IMASettings()
            {
                Language = "zh-CN"
            };

            this.AdsLoader          = new IMAAdsLoader(settings);
            this.AdsLoader.Delegate = new MYPlayerAdsLoaderDelegate(new WeakReference <ViewController>(this));
        }