Exemplo n.º 1
0
        public static void ShowAd(int adKind, string placementID, int uiOrientation)
        {
#if !UNITY_EDITOR
            using (AndroidJavaClass jc = new AndroidJavaClass(WRAPPER_CLASS))
            {
                jc.CallStatic("showAd", adKind, placementID, AdDealsWrapperAndroid.transToAndroidOrientation(uiOrientation));
            }
#endif
        }
Exemplo n.º 2
0
        public static void SetConsent(int consent)
        {
#if !UNITY_EDITOR
            using (AndroidJavaClass jc = new AndroidJavaClass(WRAPPER_CLASS))
            {
                jc.CallStatic("setConsent", AdDealsWrapperAndroid.transToAndroidConsent(consent));
            }
#endif
        }
Exemplo n.º 3
0
        public static void IsAvailable(int adType, int uiOrientation)
        {
#if !UNITY_EDITOR
            using (AndroidJavaClass jc = new AndroidJavaClass(WRAPPER_CLASS))
            {
                bool b = jc.CallStatic <bool>("isCacheAdAvailable", adType, AdDealsWrapperAndroid.transToAndroidOrientation(uiOrientation));
                AdDealsWrapperAndroid.AdAvailableEvent.Invoke(adType, b);
            }
#endif
        }