public void SetTestDeviceIds(List <string> testDeviceIds)
        {
            _testDeviceIds = testDeviceIds;
            var nativeList = CASJavaProxy.GetJavaListObject(testDeviceIds);

            settingsBridge.CallStatic("setTestDeviceIds", nativeList);
        }
        public void CreateManager(CASInitSettings initData)
        {
            _interstitialProxy             = new AdEventsProxy(AdType.Interstitial);
            _interstitialProxy.OnAdLoaded += CallbackOnInterLoaded;
            _interstitialProxy.OnAdFailed += CallbackOnInterFailed;
            _rewardedProxy             = new AdEventsProxy(AdType.Rewarded);
            _rewardedProxy.OnAdLoaded += CallbackOnRewardLoaded;
            _rewardedProxy.OnAdFailed += CallbackOnRewardFailed;
            _returnAdProxy             = new AdEventsProxy(AdType.Interstitial);

            if (initData.initListener != null)
            {
                initializationListener = new InitializationListenerProxy(this, initData.initListener);
            }

            AndroidJavaObject activity = CASJavaProxy.GetUnityActivity();

            _managerBridge = new AndroidJavaObject(CASJavaProxy.NativeBridgeClassName, activity);


            if (initData.extras != null && initData.extras.Count != 0)
            {
                AndroidJavaObject extraKeys   = new AndroidJavaObject(CASJavaProxy.JavaUtilArrayList);
                AndroidJavaObject extraValues = new AndroidJavaObject(CASJavaProxy.JavaUtilArrayList);
                foreach (var extra in initData.extras)
                {
                    extraKeys.Call <bool>("add", extra.Key);
                    extraValues.Call <bool>("add", extra.Value);
                }
                _managerBridge.Call("createWithMeta",
                                    managerID,
                                    ( int )initData.allowedAdFlags,
                                    isTestAdMode,
                                    initializationListener,
                                    _interstitialProxy,
                                    _rewardedProxy,
                                    extraKeys,
                                    extraValues
                                    );
            }
            else
            {
                _managerBridge.Call("createSimple",
                                    managerID,
                                    ( int )initData.allowedAdFlags,
                                    isTestAdMode,
                                    initializationListener,
                                    _interstitialProxy,
                                    _rewardedProxy);
            }
        }
 public void ValidateIntegration()
 {
     settingsBridge.CallStatic("validateIntegration", CASJavaProxy.GetUnityActivity());
 }