Beispiel #1
0
        public static void PreloadInterstitial(String plc, OnAerServEvent onAerServEvent,
                                               Dictionary <string, object> config = null)
        {
            String configJson = convertDictionaryToJsonString(config);

            if (Application.platform == RuntimePlatform.Android)
            {
                AerServNativeAdapter.AERSERVSDK_ANDROID_preload_interstitial(plc, onAerServEvent, configJson);
            }
            else if (Application.platform == RuntimePlatform.IPhonePlayer)
            {
                AerServNativeAdapter.AERSERVSDK_IOS_preload_interstitial(plc, onAerServEvent, configJson);
            }
            else
            {
                Debug.Log("no platform found to show interstitial on");
            }
        }
Beispiel #2
0
        public static void ShowBanner(String plc, int width, int height, int position,
                                      OnAerServEvent onAerServEvent, Dictionary <string, object> config = null)
        {
            String configJson = convertDictionaryToJsonString(config);

            if (Application.platform == RuntimePlatform.Android)
            {
                AerServNativeAdapter.AERSERVSDK_ANDROID_show_banner(plc, width, height, position,
                                                                    onAerServEvent, configJson);
            }
            else if (Application.platform == RuntimePlatform.IPhonePlayer)
            {
                AerServNativeAdapter.AERSERVSDK_IOS_show_banner(plc, width, height, position,
                                                                onAerServEvent, configJson);
            }
            else
            {
                Debug.Log("no platform found to show banner on");
            }
        }
Beispiel #3
0
 public static extern void AERSERVSDK_IOS_show_banner(String plc, int width, int height, int position, OnAerServEvent onAerServEvent, String configJson);
Beispiel #4
0
 public static extern void AERSERVSDK_IOS_preload_interstitial(String plc, OnAerServEvent onAerServEvent, String configJson);