jimu-decompiled/sources/com/unity3d/ads/purchasing/Purchasing.java
2025-05-13 19:24:51 +02:00

29 lines
808 B
Java

package com.unity3d.ads.purchasing;
import com.unity3d.ads.webview.WebViewApp;
import com.unity3d.ads.webview.WebViewEventCategory;
/* loaded from: classes2.dex */
public class Purchasing {
public enum UnityAdsPurchasingEvent {
COMMAND,
VERSION,
CATALOG,
INITIALIZATION,
EVENT
}
public static void dispatchReturnEvent(int i, String str) {
WebViewApp currentApp = WebViewApp.getCurrentApp();
if (currentApp == null || !currentApp.isWebAppLoaded()) {
return;
}
currentApp.sendEvent(WebViewEventCategory.PURCHASING, UnityAdsPurchasingEvent.values()[i], str);
}
public static void initialize(IPurchasing iPurchasing) {
com.unity3d.ads.api.Purchasing.setPurchasingInterface(iPurchasing);
}
}