Initial commit
This commit is contained in:
12
sources/com/unity3d/ads/purchasing/IPurchasing.java
Normal file
12
sources/com/unity3d/ads/purchasing/IPurchasing.java
Normal file
@@ -0,0 +1,12 @@
|
||||
package com.unity3d.ads.purchasing;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public interface IPurchasing {
|
||||
void onGetProductCatalog();
|
||||
|
||||
void onGetPurchasingVersion();
|
||||
|
||||
void onInitializePurchasing();
|
||||
|
||||
void onPurchasingCommand(String str);
|
||||
}
|
28
sources/com/unity3d/ads/purchasing/Purchasing.java
Normal file
28
sources/com/unity3d/ads/purchasing/Purchasing.java
Normal file
@@ -0,0 +1,28 @@
|
||||
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);
|
||||
}
|
||||
}
|
6
sources/com/unity3d/ads/purchasing/PurchasingError.java
Normal file
6
sources/com/unity3d/ads/purchasing/PurchasingError.java
Normal file
@@ -0,0 +1,6 @@
|
||||
package com.unity3d.ads.purchasing;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public enum PurchasingError {
|
||||
PURCHASE_INTERFACE_NULL
|
||||
}
|
Reference in New Issue
Block a user