Purchasing.smali
.class public Lcom/unity3d/services/ads/api/Purchasing;
.super Ljava/lang/Object;
.source "Purchasing.java"
# static fields
.field public static purchaseInterface:Lcom/unity3d/ads/purchasing/IPurchasing;
# direct methods
.method static constructor <clinit>()V
.registers 0
return-void
.end method
.method public constructor <init>()V
.registers 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getPromoCatalog(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.registers 3
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 1
new-instance v0, Lcom/unity3d/services/ads/api/Purchasing$3;
invoke-direct {v0}, Lcom/unity3d/services/ads/api/Purchasing$3;-><init>()V
invoke-static {v0}, Lcom/unity3d/services/core/misc/Utilities;->runOnUiThread(Ljava/lang/Runnable;)V
.line 2
sget-object v0, Lcom/unity3d/services/ads/api/Purchasing;->purchaseInterface:Lcom/unity3d/ads/purchasing/IPurchasing;
const/4 v1, 0x0
if-eqz v0, :cond_13
.line 3
new-array v0, v1, [Ljava/lang/Object;
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_1a
.line 4
:cond_13
sget-object v0, Lcom/unity3d/ads/purchasing/PurchasingError;->PURCHASE_INTERFACE_NULL:Lcom/unity3d/ads/purchasing/PurchasingError;
new-array v1, v1, [Ljava/lang/Object;
invoke-virtual {p0, v0, v1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_1a
return-void
.end method
.method public static getPromoVersion(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.registers 3
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 1
new-instance v0, Lcom/unity3d/services/ads/api/Purchasing$2;
invoke-direct {v0}, Lcom/unity3d/services/ads/api/Purchasing$2;-><init>()V
invoke-static {v0}, Lcom/unity3d/services/core/misc/Utilities;->runOnUiThread(Ljava/lang/Runnable;)V
.line 2
sget-object v0, Lcom/unity3d/services/ads/api/Purchasing;->purchaseInterface:Lcom/unity3d/ads/purchasing/IPurchasing;
const/4 v1, 0x0
if-eqz v0, :cond_13
.line 3
new-array v0, v1, [Ljava/lang/Object;
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_1a
.line 4
:cond_13
sget-object v0, Lcom/unity3d/ads/purchasing/PurchasingError;->PURCHASE_INTERFACE_NULL:Lcom/unity3d/ads/purchasing/PurchasingError;
new-array v1, v1, [Ljava/lang/Object;
invoke-virtual {p0, v0, v1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_1a
return-void
.end method
.method public static initializePurchasing(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.registers 3
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 1
new-instance v0, Lcom/unity3d/services/ads/api/Purchasing$4;
invoke-direct {v0}, Lcom/unity3d/services/ads/api/Purchasing$4;-><init>()V
invoke-static {v0}, Lcom/unity3d/services/core/misc/Utilities;->runOnUiThread(Ljava/lang/Runnable;)V
.line 2
sget-object v0, Lcom/unity3d/services/ads/api/Purchasing;->purchaseInterface:Lcom/unity3d/ads/purchasing/IPurchasing;
const/4 v1, 0x0
if-eqz v0, :cond_13
.line 3
new-array v0, v1, [Ljava/lang/Object;
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_1a
.line 4
:cond_13
sget-object v0, Lcom/unity3d/ads/purchasing/PurchasingError;->PURCHASE_INTERFACE_NULL:Lcom/unity3d/ads/purchasing/PurchasingError;
new-array v1, v1, [Ljava/lang/Object;
invoke-virtual {p0, v0, v1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_1a
return-void
.end method
.method public static initiatePurchasingCommand(Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.registers 3
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 1
new-instance v0, Lcom/unity3d/services/ads/api/Purchasing$1;
invoke-direct {v0, p0}, Lcom/unity3d/services/ads/api/Purchasing$1;-><init>(Ljava/lang/String;)V
invoke-static {v0}, Lcom/unity3d/services/core/misc/Utilities;->runOnUiThread(Ljava/lang/Runnable;)V
.line 2
sget-object p0, Lcom/unity3d/services/ads/api/Purchasing;->purchaseInterface:Lcom/unity3d/ads/purchasing/IPurchasing;
const/4 v0, 0x0
if-eqz p0, :cond_13
.line 3
new-array p0, v0, [Ljava/lang/Object;
invoke-virtual {p1, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_1a
.line 4
:cond_13
sget-object p0, Lcom/unity3d/ads/purchasing/PurchasingError;->PURCHASE_INTERFACE_NULL:Lcom/unity3d/ads/purchasing/PurchasingError;
new-array v0, v0, [Ljava/lang/Object;
invoke-virtual {p1, p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_1a
return-void
.end method
.method public static setPurchasingInterface(Lcom/unity3d/ads/purchasing/IPurchasing;)V
.registers 1
.line 1
sput-object p0, Lcom/unity3d/services/ads/api/Purchasing;->purchaseInterface:Lcom/unity3d/ads/purchasing/IPurchasing;
return-void
.end method