Files
rr3-apk/decompiled/sources/com/unity3d/services/ads/operation/show/ShowOperation.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

88 lines
3.5 KiB
Java

package com.unity3d.services.ads.operation.show;
import com.unity3d.ads.UnityAds;
import com.unity3d.services.ads.operation.AdOperation;
import com.unity3d.services.core.misc.Utilities;
import com.unity3d.services.core.webview.bridge.invocation.IWebViewBridgeInvocation;
/* loaded from: classes4.dex */
public class ShowOperation extends AdOperation implements IShowOperation {
private ShowOperationState showOperationState;
@Override // com.unity3d.services.ads.operation.show.IShowOperation
public ShowOperationState getShowOperationState() {
return this.showOperationState;
}
public ShowOperation(ShowOperationState showOperationState, IWebViewBridgeInvocation iWebViewBridgeInvocation) {
super(iWebViewBridgeInvocation, "show");
this.showOperationState = showOperationState;
}
@Override // com.unity3d.ads.IUnityAdsShowListener
public void onUnityAdsShowFailure(String str, final UnityAds.UnityAdsShowError unityAdsShowError, final String str2) {
ShowOperationState showOperationState = this.showOperationState;
if (showOperationState == null || showOperationState.listener == null) {
return;
}
Utilities.runOnUiThread(new Runnable() { // from class: com.unity3d.services.ads.operation.show.ShowOperation.1
@Override // java.lang.Runnable
public void run() {
if (ShowOperation.this.showOperationState != null) {
ShowOperation.this.showOperationState.onUnityAdsShowFailure(unityAdsShowError, str2);
}
}
});
}
@Override // com.unity3d.ads.IUnityAdsShowListener
public void onUnityAdsShowStart(final String str) {
if (this.showOperationState == null) {
return;
}
Utilities.runOnUiThread(new Runnable() { // from class: com.unity3d.services.ads.operation.show.ShowOperation.2
@Override // java.lang.Runnable
public void run() {
if (ShowOperation.this.showOperationState != null) {
ShowOperation.this.showOperationState.onUnityAdsShowStart(str);
}
}
});
}
@Override // com.unity3d.ads.IUnityAdsShowListener
public void onUnityAdsShowClick(String str) {
if (this.showOperationState == null) {
return;
}
Utilities.runOnUiThread(new Runnable() { // from class: com.unity3d.services.ads.operation.show.ShowOperation.3
@Override // java.lang.Runnable
public void run() {
if (ShowOperation.this.showOperationState != null) {
ShowOperation.this.showOperationState.onUnityAdsShowClick();
}
}
});
}
@Override // com.unity3d.ads.IUnityAdsShowListener
public void onUnityAdsShowComplete(String str, final UnityAds.UnityAdsShowCompletionState unityAdsShowCompletionState) {
if (this.showOperationState == null) {
return;
}
Utilities.runOnUiThread(new Runnable() { // from class: com.unity3d.services.ads.operation.show.ShowOperation.4
@Override // java.lang.Runnable
public void run() {
if (ShowOperation.this.showOperationState != null) {
ShowOperation.this.showOperationState.onUnityAdsShowComplete(unityAdsShowCompletionState);
}
}
});
}
@Override // com.unity3d.services.core.webview.bridge.IWebViewSharedObject
public String getId() {
return this.showOperationState.id;
}
}