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)); }
public void OnShown(PromoShowType type) { Debug.LogFormat("Native promo was shown: {0}", type); }
public void OnShown(PromoShowType type) { UnityMonetizationNativePromoAdapterOnShown(nativePromoAdapter, (int)type); }
public void OnShown(PromoShowType type) { AndroidJavaObject nativeShowType = createNativeShowType(type); nativeAdapter.Call("onShown", nativeShowType); }