Esempio n. 1
0
    //--------------------------------------
    //  EVENTS BANNER AD
    //--------------------------------------

    private void OnBannerAdLoaded(string bannerID)
    {
        int             id     = System.Convert.ToInt32(bannerID);
        AndroidADBanner banner = GetBanner(id) as AndroidADBanner;

        if (banner != null)
        {
            banner.OnBannerAdLoaded();
        }
    }
Esempio n. 2
0
    //--------------------------------------
    //  EVENTS
    //--------------------------------------



    //--------------------------------------
    //  EVENTS BANNER AD
    //--------------------------------------

    private void OnBannerAdLoaded(string data)
    {
        string[] bannerData;
        bannerData = data.Split(AndroidNative.DATA_SPLITTER [0]);


        int id = System.Convert.ToInt32(bannerData[0]);
        int w  = System.Convert.ToInt32(bannerData[1]);
        int h  = System.Convert.ToInt32(bannerData[2]);

        AndroidADBanner banner = GetBanner(id) as AndroidADBanner;

        if (banner != null)
        {
            banner.SetDimentions(w, h);
            banner.OnBannerAdLoaded();
        }
    }