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>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
package com.iab.omid.library.unity3d.adsession;
import androidx.annotation.NonNull;
import com.iab.omid.library.unity3d.adsession.media.VastProperties;
import com.iab.omid.library.unity3d.utils.g;
/* loaded from: classes2.dex */
public final class AdEvents {
private final a adSession;
private AdEvents(a aVar) {
this.adSession = aVar;
}
public static AdEvents createAdEvents(AdSession adSession) {
a aVar = (a) adSession;
g.a(adSession, "AdSession is null");
g.g(aVar);
g.b(aVar);
AdEvents adEvents = new AdEvents(aVar);
aVar.getAdSessionStatePublisher().a(adEvents);
return adEvents;
}
public void impressionOccurred() {
g.b(this.adSession);
g.e(this.adSession);
if (!this.adSession.f()) {
try {
this.adSession.start();
} catch (Exception unused) {
}
}
if (this.adSession.f()) {
this.adSession.k();
}
}
public void loaded() {
g.a(this.adSession);
g.e(this.adSession);
this.adSession.l();
}
public void loaded(@NonNull VastProperties vastProperties) {
g.a(vastProperties, "VastProperties is null");
g.a(this.adSession);
g.e(this.adSession);
this.adSession.a(vastProperties.a());
}
}

View File

@@ -0,0 +1,36 @@
package com.iab.omid.library.unity3d.adsession;
import android.view.View;
import androidx.annotation.Nullable;
import com.iab.omid.library.unity3d.publisher.AdSessionStatePublisher;
import com.iab.omid.library.unity3d.utils.g;
/* loaded from: classes2.dex */
public abstract class AdSession {
public static AdSession createAdSession(AdSessionConfiguration adSessionConfiguration, AdSessionContext adSessionContext) {
g.a();
g.a(adSessionConfiguration, "AdSessionConfiguration is null");
g.a(adSessionContext, "AdSessionContext is null");
return new a(adSessionConfiguration, adSessionContext);
}
public abstract void addFriendlyObstruction(View view, FriendlyObstructionPurpose friendlyObstructionPurpose, @Nullable String str);
public abstract void error(ErrorType errorType, String str);
public abstract void finish();
public abstract String getAdSessionId();
public abstract AdSessionStatePublisher getAdSessionStatePublisher();
public abstract void registerAdView(View view);
public abstract void removeAllFriendlyObstructions();
public abstract void removeFriendlyObstruction(View view);
public abstract void setPossibleObstructionListener(PossibleObstructionListener possibleObstructionListener);
public abstract void start();
}

View File

@@ -0,0 +1,52 @@
package com.iab.omid.library.unity3d.adsession;
import com.iab.omid.library.unity3d.utils.c;
import com.iab.omid.library.unity3d.utils.g;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public class AdSessionConfiguration {
private final CreativeType creativeType;
private final Owner impressionOwner;
private final ImpressionType impressionType;
private final boolean isolateVerificationScripts;
private final Owner mediaEventsOwner;
private AdSessionConfiguration(CreativeType creativeType, ImpressionType impressionType, Owner owner, Owner owner2, boolean z) {
this.creativeType = creativeType;
this.impressionType = impressionType;
this.impressionOwner = owner;
if (owner2 == null) {
this.mediaEventsOwner = Owner.NONE;
} else {
this.mediaEventsOwner = owner2;
}
this.isolateVerificationScripts = z;
}
public static AdSessionConfiguration createAdSessionConfiguration(CreativeType creativeType, ImpressionType impressionType, Owner owner, Owner owner2, boolean z) {
g.a(creativeType, "CreativeType is null");
g.a(impressionType, "ImpressionType is null");
g.a(owner, "Impression owner is null");
g.a(owner, creativeType, impressionType);
return new AdSessionConfiguration(creativeType, impressionType, owner, owner2, z);
}
public boolean isNativeImpressionOwner() {
return Owner.NATIVE == this.impressionOwner;
}
public boolean isNativeMediaEventsOwner() {
return Owner.NATIVE == this.mediaEventsOwner;
}
public JSONObject toJsonObject() {
JSONObject jSONObject = new JSONObject();
c.a(jSONObject, "impressionOwner", this.impressionOwner);
c.a(jSONObject, "mediaEventsOwner", this.mediaEventsOwner);
c.a(jSONObject, "creativeType", this.creativeType);
c.a(jSONObject, "impressionType", this.impressionType);
c.a(jSONObject, "isolateVerificationScripts", Boolean.valueOf(this.isolateVerificationScripts));
return jSONObject;
}
}

View File

@@ -0,0 +1,104 @@
package com.iab.omid.library.unity3d.adsession;
import android.webkit.WebView;
import androidx.annotation.Nullable;
import com.iab.omid.library.unity3d.utils.g;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
/* loaded from: classes2.dex */
public final class AdSessionContext {
private final AdSessionContextType adSessionContextType;
@Nullable
private final String contentUrl;
private final String customReferenceData;
private final Map<String, VerificationScriptResource> injectedResourcesMap;
private final String omidJsScriptContent;
private final Partner partner;
private final List<VerificationScriptResource> verificationScriptResources;
private final WebView webView;
private AdSessionContext(Partner partner, WebView webView, String str, List<VerificationScriptResource> list, @Nullable String str2, String str3, AdSessionContextType adSessionContextType) {
ArrayList arrayList = new ArrayList();
this.verificationScriptResources = arrayList;
this.injectedResourcesMap = new HashMap();
this.partner = partner;
this.webView = webView;
this.omidJsScriptContent = str;
this.adSessionContextType = adSessionContextType;
if (list != null) {
arrayList.addAll(list);
for (VerificationScriptResource verificationScriptResource : list) {
this.injectedResourcesMap.put(UUID.randomUUID().toString(), verificationScriptResource);
}
}
this.contentUrl = str2;
this.customReferenceData = str3;
}
public static AdSessionContext createHtmlAdSessionContext(Partner partner, WebView webView, @Nullable String str, String str2) {
g.a(partner, "Partner is null");
g.a(webView, "WebView is null");
if (str2 != null) {
g.a(str2, 256, "CustomReferenceData is greater than 256 characters");
}
return new AdSessionContext(partner, webView, null, null, str, str2, AdSessionContextType.HTML);
}
public static AdSessionContext createJavascriptAdSessionContext(Partner partner, WebView webView, @Nullable String str, String str2) {
g.a(partner, "Partner is null");
g.a(webView, "WebView is null");
if (str2 != null) {
g.a(str2, 256, "CustomReferenceData is greater than 256 characters");
}
return new AdSessionContext(partner, webView, null, null, str, str2, AdSessionContextType.JAVASCRIPT);
}
public static AdSessionContext createNativeAdSessionContext(Partner partner, String str, List<VerificationScriptResource> list, @Nullable String str2, String str3) {
g.a(partner, "Partner is null");
g.a((Object) str, "OM SDK JS script content is null");
g.a(list, "VerificationScriptResources is null");
if (str3 != null) {
g.a(str3, 256, "CustomReferenceData is greater than 256 characters");
}
return new AdSessionContext(partner, null, str, list, str2, str3, AdSessionContextType.NATIVE);
}
public AdSessionContextType getAdSessionContextType() {
return this.adSessionContextType;
}
@Nullable
public String getContentUrl() {
return this.contentUrl;
}
public String getCustomReferenceData() {
return this.customReferenceData;
}
public Map<String, VerificationScriptResource> getInjectedResourcesMap() {
return Collections.unmodifiableMap(this.injectedResourcesMap);
}
public String getOmidJsScriptContent() {
return this.omidJsScriptContent;
}
public Partner getPartner() {
return this.partner;
}
public List<VerificationScriptResource> getVerificationScriptResources() {
return Collections.unmodifiableList(this.verificationScriptResources);
}
public WebView getWebView() {
return this.webView;
}
}

View File

@@ -0,0 +1,21 @@
package com.iab.omid.library.unity3d.adsession;
import com.tapjoy.TJAdUnitConstants;
/* loaded from: classes2.dex */
public enum AdSessionContextType {
HTML(TJAdUnitConstants.String.HTML),
NATIVE("native"),
JAVASCRIPT("javascript");
private final String typeString;
AdSessionContextType(String str) {
this.typeString = str;
}
@Override // java.lang.Enum
public String toString() {
return this.typeString;
}
}

View File

@@ -0,0 +1,21 @@
package com.iab.omid.library.unity3d.adsession;
/* loaded from: classes2.dex */
public enum CreativeType {
DEFINED_BY_JAVASCRIPT("definedByJavaScript"),
HTML_DISPLAY("htmlDisplay"),
NATIVE_DISPLAY("nativeDisplay"),
VIDEO("video"),
AUDIO("audio");
private final String creativeType;
CreativeType(String str) {
this.creativeType = str;
}
@Override // java.lang.Enum
public String toString() {
return this.creativeType;
}
}

View File

@@ -0,0 +1,21 @@
package com.iab.omid.library.unity3d.adsession;
import com.tapjoy.TJDeviceNetworkKt;
/* loaded from: classes2.dex */
public enum DeviceCategory {
CTV("ctv"),
MOBILE(TJDeviceNetworkKt.TJC_CONNECTION_TYPE_MOBILE),
OTHER("other");
private final String deviceCategory;
DeviceCategory(String str) {
this.deviceCategory = str;
}
@Override // java.lang.Enum
public String toString() {
return this.deviceCategory;
}
}

View File

@@ -0,0 +1,18 @@
package com.iab.omid.library.unity3d.adsession;
/* loaded from: classes2.dex */
public enum ErrorType {
GENERIC("generic"),
VIDEO("video");
private final String errorType;
ErrorType(String str) {
this.errorType = str;
}
@Override // java.lang.Enum
public String toString() {
return this.errorType;
}
}

View File

@@ -0,0 +1,9 @@
package com.iab.omid.library.unity3d.adsession;
/* loaded from: classes2.dex */
public enum FriendlyObstructionPurpose {
VIDEO_CONTROLS,
CLOSE_AD,
NOT_VISIBLE,
OTHER
}

View File

@@ -0,0 +1,27 @@
package com.iab.omid.library.unity3d.adsession;
import com.ironsource.v8;
import com.mbridge.msdk.newreward.player.view.hybrid.util.MRAIDCommunicatorUtil;
/* loaded from: classes2.dex */
public enum ImpressionType {
DEFINED_BY_JAVASCRIPT("definedByJavaScript"),
UNSPECIFIED("unspecified"),
LOADED(v8.h.r),
BEGIN_TO_RENDER("beginToRender"),
ONE_PIXEL("onePixel"),
VIEWABLE(MRAIDCommunicatorUtil.KEY_VIEWABLE),
AUDIBLE("audible"),
OTHER("other");
private final String impressionType;
ImpressionType(String str) {
this.impressionType = str;
}
@Override // java.lang.Enum
public String toString() {
return this.impressionType;
}
}

View File

@@ -0,0 +1,7 @@
package com.iab.omid.library.unity3d.adsession;
/* loaded from: classes2.dex */
public enum OutputDeviceStatus {
NOT_DETECTED,
UNKNOWN
}

View File

@@ -0,0 +1,19 @@
package com.iab.omid.library.unity3d.adsession;
/* loaded from: classes2.dex */
public enum Owner {
NATIVE("native"),
JAVASCRIPT("javascript"),
NONE("none");
private final String owner;
Owner(String str) {
this.owner = str;
}
@Override // java.lang.Enum
public String toString() {
return this.owner;
}
}

View File

@@ -0,0 +1,28 @@
package com.iab.omid.library.unity3d.adsession;
import com.iab.omid.library.unity3d.utils.g;
/* loaded from: classes2.dex */
public class Partner {
private final String name;
private final String version;
private Partner(String str, String str2) {
this.name = str;
this.version = str2;
}
public static Partner createPartner(String str, String str2) {
g.a(str, "Name is null or empty");
g.a(str2, "Version is null or empty");
return new Partner(str, str2);
}
public String getName() {
return this.name;
}
public String getVersion() {
return this.version;
}
}

View File

@@ -0,0 +1,9 @@
package com.iab.omid.library.unity3d.adsession;
import android.view.View;
import java.util.List;
/* loaded from: classes2.dex */
public interface PossibleObstructionListener {
void onPossibleObstructionsDetected(String str, List<View> list);
}

View File

@@ -0,0 +1,51 @@
package com.iab.omid.library.unity3d.adsession;
import com.iab.omid.library.unity3d.utils.c;
import com.iab.omid.library.unity3d.utils.g;
import java.net.URL;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class VerificationScriptResource {
private final URL resourceUrl;
private final String vendorKey;
private final String verificationParameters;
private VerificationScriptResource(String str, URL url, String str2) {
this.vendorKey = str;
this.resourceUrl = url;
this.verificationParameters = str2;
}
public static VerificationScriptResource createVerificationScriptResourceWithParameters(String str, URL url, String str2) {
g.a(str, "VendorKey is null or empty");
g.a(url, "ResourceURL is null");
g.a(str2, "VerificationParameters is null or empty");
return new VerificationScriptResource(str, url, str2);
}
public static VerificationScriptResource createVerificationScriptResourceWithoutParameters(URL url) {
g.a(url, "ResourceURL is null");
return new VerificationScriptResource(null, url, null);
}
public URL getResourceUrl() {
return this.resourceUrl;
}
public String getVendorKey() {
return this.vendorKey;
}
public String getVerificationParameters() {
return this.verificationParameters;
}
public JSONObject toJsonObject() {
JSONObject jSONObject = new JSONObject();
c.a(jSONObject, "vendorKey", this.vendorKey);
c.a(jSONObject, "resourceUrl", this.resourceUrl.toString());
c.a(jSONObject, "verificationParameters", this.verificationParameters);
return jSONObject;
}
}

View File

@@ -0,0 +1,262 @@
package com.iab.omid.library.unity3d.adsession;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.iab.omid.library.unity3d.internal.c;
import com.iab.omid.library.unity3d.internal.e;
import com.iab.omid.library.unity3d.internal.h;
import com.iab.omid.library.unity3d.publisher.AdSessionStatePublisher;
import com.iab.omid.library.unity3d.publisher.b;
import com.iab.omid.library.unity3d.utils.g;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.UUID;
import java.util.regex.Pattern;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public class a extends AdSession {
private static final Pattern l = Pattern.compile("^[a-zA-Z0-9 ]+$");
private final AdSessionContext a;
private final AdSessionConfiguration b;
private com.iab.omid.library.unity3d.weakreference.a d;
private AdSessionStatePublisher e;
private final String h;
private boolean i;
private boolean j;
private PossibleObstructionListener k;
private final List<e> c = new ArrayList();
private boolean f = false;
private boolean g = false;
public a(AdSessionConfiguration adSessionConfiguration, AdSessionContext adSessionContext) {
this.b = adSessionConfiguration;
this.a = adSessionContext;
String uuid = UUID.randomUUID().toString();
this.h = uuid;
d(null);
this.e = (adSessionContext.getAdSessionContextType() == AdSessionContextType.HTML || adSessionContext.getAdSessionContextType() == AdSessionContextType.JAVASCRIPT) ? new com.iab.omid.library.unity3d.publisher.a(uuid, adSessionContext.getWebView()) : new b(uuid, adSessionContext.getInjectedResourcesMap(), adSessionContext.getOmidJsScriptContent());
this.e.i();
c.c().a(this);
this.e.a(adSessionConfiguration);
}
private void a() {
if (this.i) {
throw new IllegalStateException("Impression event can only be sent once");
}
}
private static void a(View view) {
if (view == null) {
throw new IllegalArgumentException("FriendlyObstruction is null");
}
}
private void a(String str) {
if (str != null) {
if (str.length() > 50) {
throw new IllegalArgumentException("FriendlyObstruction has detailed reason over 50 characters in length");
}
if (!l.matcher(str).matches()) {
throw new IllegalArgumentException("FriendlyObstruction has detailed reason that contains characters not in [a-z][A-Z][0-9] or space");
}
}
}
private e b(View view) {
for (e eVar : this.c) {
if (eVar.c().get() == view) {
return eVar;
}
}
return null;
}
private void b() {
if (this.j) {
throw new IllegalStateException("Loaded event can only be sent once");
}
}
private void c(View view) {
Collection<a> b = c.c().b();
if (b == null || b.isEmpty()) {
return;
}
for (a aVar : b) {
if (aVar != this && aVar.c() == view) {
aVar.d.clear();
}
}
}
private void d(View view) {
this.d = new com.iab.omid.library.unity3d.weakreference.a(view);
}
public void a(List<com.iab.omid.library.unity3d.weakreference.a> list) {
if (e()) {
ArrayList arrayList = new ArrayList();
Iterator<com.iab.omid.library.unity3d.weakreference.a> it = list.iterator();
while (it.hasNext()) {
View view = it.next().get();
if (view != null) {
arrayList.add(view);
}
}
this.k.onPossibleObstructionsDetected(this.h, arrayList);
}
}
public void a(@NonNull JSONObject jSONObject) {
b();
getAdSessionStatePublisher().a(jSONObject);
this.j = true;
}
@Override // com.iab.omid.library.unity3d.adsession.AdSession
public void addFriendlyObstruction(View view, FriendlyObstructionPurpose friendlyObstructionPurpose, @Nullable String str) {
if (this.g) {
return;
}
a(view);
a(str);
if (b(view) == null) {
this.c.add(new e(view, friendlyObstructionPurpose, str));
}
}
public View c() {
return this.d.get();
}
public List<e> d() {
return this.c;
}
public boolean e() {
return this.k != null;
}
@Override // com.iab.omid.library.unity3d.adsession.AdSession
public void error(ErrorType errorType, String str) {
if (this.g) {
throw new IllegalStateException("AdSession is finished");
}
g.a(errorType, "Error type is null");
g.a(str, "Message is null");
getAdSessionStatePublisher().a(errorType, str);
}
public boolean f() {
return this.f && !this.g;
}
@Override // com.iab.omid.library.unity3d.adsession.AdSession
public void finish() {
if (this.g) {
return;
}
this.d.clear();
removeAllFriendlyObstructions();
this.g = true;
getAdSessionStatePublisher().f();
c.c().b(this);
getAdSessionStatePublisher().b();
this.e = null;
this.k = null;
}
public boolean g() {
return this.g;
}
@Override // com.iab.omid.library.unity3d.adsession.AdSession
public String getAdSessionId() {
return this.h;
}
@Override // com.iab.omid.library.unity3d.adsession.AdSession
public AdSessionStatePublisher getAdSessionStatePublisher() {
return this.e;
}
public boolean h() {
return this.b.isNativeImpressionOwner();
}
public boolean i() {
return this.b.isNativeMediaEventsOwner();
}
public boolean j() {
return this.f;
}
public void k() {
a();
getAdSessionStatePublisher().g();
this.i = true;
}
public void l() {
b();
getAdSessionStatePublisher().h();
this.j = true;
}
@Override // com.iab.omid.library.unity3d.adsession.AdSession
public void registerAdView(View view) {
if (this.g) {
return;
}
g.a(view, "AdView is null");
if (c() == view) {
return;
}
d(view);
getAdSessionStatePublisher().a();
c(view);
}
@Override // com.iab.omid.library.unity3d.adsession.AdSession
public void removeAllFriendlyObstructions() {
if (this.g) {
return;
}
this.c.clear();
}
@Override // com.iab.omid.library.unity3d.adsession.AdSession
public void removeFriendlyObstruction(View view) {
if (this.g) {
return;
}
a(view);
e b = b(view);
if (b != null) {
this.c.remove(b);
}
}
@Override // com.iab.omid.library.unity3d.adsession.AdSession
public void setPossibleObstructionListener(PossibleObstructionListener possibleObstructionListener) {
this.k = possibleObstructionListener;
}
@Override // com.iab.omid.library.unity3d.adsession.AdSession
public void start() {
if (this.f) {
return;
}
this.f = true;
c.c().c(this);
this.e.a(h.c().b());
this.e.a(com.iab.omid.library.unity3d.internal.a.a().b());
this.e.a(this, this.a);
}
}

View File

@@ -0,0 +1,18 @@
package com.iab.omid.library.unity3d.adsession.media;
/* loaded from: classes2.dex */
public enum InteractionType {
CLICK("click"),
INVITATION_ACCEPTED("invitationAccept");
String interactionType;
InteractionType(String str) {
this.interactionType = str;
}
@Override // java.lang.Enum
public String toString() {
return this.interactionType;
}
}

View File

@@ -0,0 +1,127 @@
package com.iab.omid.library.unity3d.adsession.media;
import com.facebook.login.LoginLogger;
import com.iab.omid.library.unity3d.adsession.AdSession;
import com.iab.omid.library.unity3d.adsession.a;
import com.iab.omid.library.unity3d.internal.h;
import com.iab.omid.library.unity3d.utils.c;
import com.iab.omid.library.unity3d.utils.g;
import com.ironsource.mediationsdk.utils.IronSourceConstants;
import com.ironsource.v8;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.tapjoy.TJAdUnitConstants;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class MediaEvents {
private final a adSession;
private MediaEvents(a aVar) {
this.adSession = aVar;
}
private void confirmValidDuration(float f) {
if (f <= 0.0f) {
throw new IllegalArgumentException("Invalid Media duration");
}
}
private void confirmValidVolume(float f) {
if (f < 0.0f || f > 1.0f) {
throw new IllegalArgumentException("Invalid Media volume");
}
}
public static MediaEvents createMediaEvents(AdSession adSession) {
a aVar = (a) adSession;
g.a(adSession, "AdSession is null");
g.f(aVar);
g.c(aVar);
g.b(aVar);
g.h(aVar);
MediaEvents mediaEvents = new MediaEvents(aVar);
aVar.getAdSessionStatePublisher().a(mediaEvents);
return mediaEvents;
}
public void adUserInteraction(InteractionType interactionType) {
g.a(interactionType, "InteractionType is null");
g.a(this.adSession);
JSONObject jSONObject = new JSONObject();
c.a(jSONObject, "interactionType", interactionType);
this.adSession.getAdSessionStatePublisher().a(TJAdUnitConstants.String.AD_USER_INTERACTION, jSONObject);
}
public void bufferFinish() {
g.a(this.adSession);
this.adSession.getAdSessionStatePublisher().a("bufferFinish");
}
public void bufferStart() {
g.a(this.adSession);
this.adSession.getAdSessionStatePublisher().a("bufferStart");
}
public void complete() {
g.a(this.adSession);
this.adSession.getAdSessionStatePublisher().a(CampaignEx.JSON_NATIVE_VIDEO_COMPLETE);
}
public void firstQuartile() {
g.a(this.adSession);
this.adSession.getAdSessionStatePublisher().a("firstQuartile");
}
public void midpoint() {
g.a(this.adSession);
this.adSession.getAdSessionStatePublisher().a(CampaignEx.JSON_NATIVE_VIDEO_MIDPOINT);
}
public void pause() {
g.a(this.adSession);
this.adSession.getAdSessionStatePublisher().a(CampaignEx.JSON_NATIVE_VIDEO_PAUSE);
}
public void playerStateChange(PlayerState playerState) {
g.a(playerState, "PlayerState is null");
g.a(this.adSession);
JSONObject jSONObject = new JSONObject();
c.a(jSONObject, "state", playerState);
this.adSession.getAdSessionStatePublisher().a("playerStateChange", jSONObject);
}
public void resume() {
g.a(this.adSession);
this.adSession.getAdSessionStatePublisher().a(CampaignEx.JSON_NATIVE_VIDEO_RESUME);
}
public void skipped() {
g.a(this.adSession);
this.adSession.getAdSessionStatePublisher().a(LoginLogger.EVENT_PARAM_METHOD_RESULT_SKIPPED);
}
public void start(float f, float f2) {
confirmValidDuration(f);
confirmValidVolume(f2);
g.a(this.adSession);
JSONObject jSONObject = new JSONObject();
c.a(jSONObject, IronSourceConstants.EVENTS_DURATION, Float.valueOf(f));
c.a(jSONObject, "mediaPlayerVolume", Float.valueOf(f2));
c.a(jSONObject, v8.i.P, Float.valueOf(h.c().b()));
this.adSession.getAdSessionStatePublisher().a("start", jSONObject);
}
public void thirdQuartile() {
g.a(this.adSession);
this.adSession.getAdSessionStatePublisher().a("thirdQuartile");
}
public void volumeChange(float f) {
confirmValidVolume(f);
g.a(this.adSession);
JSONObject jSONObject = new JSONObject();
c.a(jSONObject, "mediaPlayerVolume", Float.valueOf(f));
c.a(jSONObject, v8.i.P, Float.valueOf(h.c().b()));
this.adSession.getAdSessionStatePublisher().a("volumeChange", jSONObject);
}
}

View File

@@ -0,0 +1,24 @@
package com.iab.omid.library.unity3d.adsession.media;
import com.mbridge.msdk.newreward.player.view.hybrid.util.MRAIDCommunicatorUtil;
import com.vungle.ads.internal.Constants;
/* loaded from: classes2.dex */
public enum PlayerState {
MINIMIZED("minimized"),
COLLAPSED("collapsed"),
NORMAL("normal"),
EXPANDED(MRAIDCommunicatorUtil.STATES_EXPANDED),
FULLSCREEN(Constants.TEMPLATE_TYPE_FULLSCREEN);
private final String playerState;
PlayerState(String str) {
this.playerState = str;
}
@Override // java.lang.Enum
public String toString() {
return this.playerState;
}
}

View File

@@ -0,0 +1,20 @@
package com.iab.omid.library.unity3d.adsession.media;
/* loaded from: classes2.dex */
public enum Position {
PREROLL("preroll"),
MIDROLL("midroll"),
POSTROLL("postroll"),
STANDALONE("standalone");
private final String position;
Position(String str) {
this.position = str;
}
@Override // java.lang.Enum
public String toString() {
return this.position;
}
}

View File

@@ -0,0 +1,63 @@
package com.iab.omid.library.unity3d.adsession.media;
import com.iab.omid.library.unity3d.utils.d;
import com.iab.omid.library.unity3d.utils.g;
import com.ironsource.v8;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class VastProperties {
private final boolean a;
private final Float b;
private final boolean c;
private final Position d;
private VastProperties(boolean z, Float f, boolean z2, Position position) {
this.a = z;
this.b = f;
this.c = z2;
this.d = position;
}
public static VastProperties createVastPropertiesForNonSkippableMedia(boolean z, Position position) {
g.a(position, "Position is null");
return new VastProperties(false, null, z, position);
}
public static VastProperties createVastPropertiesForSkippableMedia(float f, boolean z, Position position) {
g.a(position, "Position is null");
return new VastProperties(true, Float.valueOf(f), z, position);
}
public JSONObject a() {
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("skippable", this.a);
if (this.a) {
jSONObject.put("skipOffset", this.b);
}
jSONObject.put("autoPlay", this.c);
jSONObject.put(v8.h.L, this.d);
} catch (JSONException e) {
d.a("VastProperties: JSON error", e);
}
return jSONObject;
}
public Position getPosition() {
return this.d;
}
public Float getSkipOffset() {
return this.b;
}
public boolean isAutoPlay() {
return this.c;
}
public boolean isSkippable() {
return this.a;
}
}