コード例 #1
0
        private AndroidJavaObject createNativeShowType(PromoShowType type)
        {
            var index     = (int)type;
            var enumClass = new AndroidJavaClass("com.unity3d.services.monetization.placementcontent.purchasing.NativePromoShowType");
            var values    = enumClass.CallStatic <AndroidJavaObject>("values");

            return(new AndroidJavaClass("java.lang.reflect.Array").CallStatic <AndroidJavaObject>("get", values, index));
        }
コード例 #2
0
 public void OnShown(PromoShowType type)
 {
     Debug.LogFormat("Native promo was shown: {0}", type);
 }
コード例 #3
0
 public void OnShown(PromoShowType type)
 {
     UnityMonetizationNativePromoAdapterOnShown(nativePromoAdapter, (int)type);
 }
コード例 #4
0
        public void OnShown(PromoShowType type)
        {
            AndroidJavaObject nativeShowType = createNativeShowType(type);

            nativeAdapter.Call("onShown", nativeShowType);
        }