Files
rr3-apk/decompiled-community/sources/com/facebook/ads/NativeAdView.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

82 lines
3.0 KiB
Java

package com.facebook.ads;
import android.content.Context;
import android.view.View;
import androidx.annotation.Keep;
import androidx.annotation.Nullable;
import com.facebook.ads.internal.api.NativeAdViewTypeApi;
import com.facebook.ads.internal.dynamicloading.DynamicLoaderFactory;
import com.facebook.ads.internal.util.common.Preconditions;
@Keep
/* loaded from: classes2.dex */
public class NativeAdView {
public static View render(Context context, NativeAd nativeAd) {
Preconditions.checkNotNull(context, "context must be not null");
Preconditions.checkNotNull(nativeAd, "nativeAd must be not null");
return DynamicLoaderFactory.makeLoader(context).createNativeAdViewApi().render(context, nativeAd);
}
public static View render(Context context, NativeAd nativeAd, @Nullable NativeAdViewAttributes nativeAdViewAttributes) {
Preconditions.checkNotNull(context, "context must be not null");
Preconditions.checkNotNull(nativeAd, "nativeAd must be not null");
return DynamicLoaderFactory.makeLoader(context).createNativeAdViewApi().render(context, nativeAd, nativeAdViewAttributes);
}
@Deprecated
public static View render(Context context, NativeAd nativeAd, Type type) {
Preconditions.checkNotNull(context, "context must be not null");
Preconditions.checkNotNull(nativeAd, "nativeAd must be not null");
return DynamicLoaderFactory.makeLoader(context).createNativeAdViewApi().render(context, nativeAd, type);
}
@Deprecated
public static View render(Context context, NativeAd nativeAd, Type type, @Nullable NativeAdViewAttributes nativeAdViewAttributes) {
Preconditions.checkNotNull(context, "context must be not null");
Preconditions.checkNotNull(nativeAd, "nativeAd must be not null");
Preconditions.checkNotNull(type, "type must be not null");
return DynamicLoaderFactory.makeLoader(context).createNativeAdViewApi().render(context, nativeAd, type, nativeAdViewAttributes);
}
@Keep
@Deprecated
public enum Type {
HEIGHT_300(2),
HEIGHT_400(3);
private final int mEnumCode;
private NativeAdViewTypeApi mNativeAdViewTypeApi;
public int getEnumCode() {
return this.mEnumCode;
}
@Deprecated
Type(int i) {
this.mEnumCode = i;
}
@Deprecated
public int getWidth() {
return getNativeAdViewTypeApi(this.mEnumCode).getWidth();
}
@Deprecated
public int getHeight() {
return getNativeAdViewTypeApi(this.mEnumCode).getHeight();
}
@Deprecated
public int getValue() {
return getNativeAdViewTypeApi(this.mEnumCode).getValue();
}
private NativeAdViewTypeApi getNativeAdViewTypeApi(int i) {
if (this.mNativeAdViewTypeApi == null) {
this.mNativeAdViewTypeApi = DynamicLoaderFactory.makeLoaderUnsafe().createNativeAdViewTypeApi(i);
}
return this.mNativeAdViewTypeApi;
}
}
}