a.smali

.class public Lcom/kwad/sdk/a/a;
.super Lcom/kwad/sdk/api/core/AbstractKsNativeAd;


# instance fields
.field private a:Lcom/kwad/sdk/core/response/model/AdTemplate;
    .annotation build Landroid/support/annotation/NonNull;
    .end annotation
.end field

.field private b:Lcom/kwad/sdk/core/response/model/AdInfo;

.field private c:Lcom/kwad/sdk/core/download/a/b;
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation
.end field

.field private d:Lcom/kwad/sdk/api/KsNativeAd$AdInteractionListener;
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation
.end field

.field private e:Lcom/kwad/sdk/a/b;

.field private f:Lcom/kwad/sdk/api/KsNativeAd$VideoPlayListener;
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation
.end field

.field private g:Lcom/kwad/sdk/api/KsNativeAd$VideoPlayListener;

.field private h:Lcom/kwad/sdk/api/KsNativeAd$AdInteractionListener;


# direct methods
.method public constructor <init>(Lcom/kwad/sdk/core/response/model/AdTemplate;)V
    .registers 4
    .param p1    # Lcom/kwad/sdk/core/response/model/AdTemplate;
        .annotation build Landroid/support/annotation/NonNull;
        .end annotation
    .end param

    invoke-direct {p0}, Lcom/kwad/sdk/api/core/AbstractKsNativeAd;-><init>()V

    new-instance v0, Lcom/kwad/sdk/a/a$5;

    invoke-direct {v0, p0}, Lcom/kwad/sdk/a/a$5;-><init>(Lcom/kwad/sdk/a/a;)V

    iput-object v0, p0, Lcom/kwad/sdk/a/a;->g:Lcom/kwad/sdk/api/KsNativeAd$VideoPlayListener;

    new-instance v0, Lcom/kwad/sdk/a/a$6;

    invoke-direct {v0, p0}, Lcom/kwad/sdk/a/a$6;-><init>(Lcom/kwad/sdk/a/a;)V

    iput-object v0, p0, Lcom/kwad/sdk/a/a;->h:Lcom/kwad/sdk/api/KsNativeAd$AdInteractionListener;

    iput-object p1, p0, Lcom/kwad/sdk/a/a;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/c;->j(Lcom/kwad/sdk/core/response/model/AdTemplate;)Lcom/kwad/sdk/core/response/model/AdInfo;

    move-result-object v0

    iput-object v0, p0, Lcom/kwad/sdk/a/a;->b:Lcom/kwad/sdk/core/response/model/AdInfo;

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->b:Lcom/kwad/sdk/core/response/model/AdInfo;

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/a;->t(Lcom/kwad/sdk/core/response/model/AdInfo;)Z

    move-result v0

    if-eqz v0, :cond_2c

    new-instance v0, Lcom/kwad/sdk/core/download/a/b;

    iget-object v1, p0, Lcom/kwad/sdk/a/a;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    invoke-direct {v0, v1}, Lcom/kwad/sdk/core/download/a/b;-><init>(Lcom/kwad/sdk/core/response/model/AdTemplate;)V

    iput-object v0, p0, Lcom/kwad/sdk/a/a;->c:Lcom/kwad/sdk/core/download/a/b;

    :cond_2c
    iget-object v0, p0, Lcom/kwad/sdk/a/a;->b:Lcom/kwad/sdk/core/response/model/AdInfo;

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/a;->c(Lcom/kwad/sdk/core/response/model/AdInfo;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/kwad/sdk/a/a;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/imageloader/KSImageLoader;->preloadImage(Ljava/lang/String;Lcom/kwad/sdk/core/response/model/AdTemplate;)V

    return-void
.end method

.method static synthetic a(Lcom/kwad/sdk/a/a;)Lcom/kwad/sdk/core/response/model/AdTemplate;
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    return-object v0
.end method

.method private a(Landroid/view/View;Lcom/kwad/sdk/c/l$a;)V
    .registers 7

    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/kwad/sdk/a/a;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    new-instance v2, Lcom/kwad/sdk/a/a$3;

    invoke-direct {v2, p0, p2, p1}, Lcom/kwad/sdk/a/a$3;-><init>(Lcom/kwad/sdk/a/a;Lcom/kwad/sdk/c/l$a;Landroid/view/View;)V

    iget-object v3, p0, Lcom/kwad/sdk/a/a;->c:Lcom/kwad/sdk/core/download/a/b;

    invoke-static {v0, v1, v2, v3}, Lcom/kwad/sdk/core/download/a/a;->a(Landroid/content/Context;Lcom/kwad/sdk/core/response/model/AdTemplate;Lcom/kwad/sdk/core/download/a/a$a;Lcom/kwad/sdk/core/download/a/b;)V

    return-void
.end method

.method private a(Landroid/view/ViewGroup;)V
    .registers 4

    invoke-direct {p0, p1}, Lcom/kwad/sdk/a/a;->b(Landroid/view/ViewGroup;)Lcom/kwad/sdk/core/page/widget/a;

    move-result-object v0

    if-nez v0, :cond_12

    new-instance v0, Lcom/kwad/sdk/core/page/widget/a;

    invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1, p1}, Lcom/kwad/sdk/core/page/widget/a;-><init>(Landroid/content/Context;Landroid/view/View;)V

    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    :cond_12
    new-instance v1, Lcom/kwad/sdk/a/a$4;

    invoke-direct {v1, p0}, Lcom/kwad/sdk/a/a$4;-><init>(Lcom/kwad/sdk/a/a;)V

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/core/page/widget/a;->setViewCallback(Lcom/kwad/sdk/core/page/widget/a$a;)V

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/core/page/widget/a;->setNeedCheckingShow(Z)V

    return-void
.end method

.method private a(Landroid/view/ViewGroup;Ljava/util/List;)V
    .registers 7
    .param p1    # Landroid/view/ViewGroup;
        .annotation build Landroid/support/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Ljava/util/List;
        .annotation build Landroid/support/annotation/NonNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/view/ViewGroup;",
            "Ljava/util/List",
            "<",
            "Landroid/view/View;",
            ">;)V"
        }
    .end annotation

    invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_4
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_26

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    new-instance v2, Lcom/kwad/sdk/c/l$a;

    invoke-direct {v2}, Lcom/kwad/sdk/c/l$a;-><init>()V

    new-instance v3, Lcom/kwad/sdk/a/a$1;

    invoke-direct {v3, p0, v2, p1}, Lcom/kwad/sdk/a/a$1;-><init>(Lcom/kwad/sdk/a/a;Lcom/kwad/sdk/c/l$a;Landroid/view/ViewGroup;)V

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    new-instance v3, Lcom/kwad/sdk/a/a$2;

    invoke-direct {v3, p0, v2}, Lcom/kwad/sdk/a/a$2;-><init>(Lcom/kwad/sdk/a/a;Lcom/kwad/sdk/c/l$a;)V

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_4

    :cond_26
    return-void
.end method

.method static synthetic a(Lcom/kwad/sdk/a/a;Landroid/view/View;Lcom/kwad/sdk/c/l$a;)V
    .registers 3

    invoke-direct {p0, p1, p2}, Lcom/kwad/sdk/a/a;->a(Landroid/view/View;Lcom/kwad/sdk/c/l$a;)V

    return-void
.end method

.method static synthetic b(Lcom/kwad/sdk/a/a;)Lcom/kwad/sdk/api/KsNativeAd$AdInteractionListener;
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->d:Lcom/kwad/sdk/api/KsNativeAd$AdInteractionListener;

    return-object v0
.end method

.method private b(Landroid/view/ViewGroup;)Lcom/kwad/sdk/core/page/widget/a;
    .registers 5

    const/4 v0, 0x0

    move v1, v0

    :goto_2
    invoke-virtual {p1}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v0

    if-ge v1, v0, :cond_17

    invoke-virtual {p1, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    instance-of v2, v0, Lcom/kwad/sdk/core/page/widget/a;

    if-eqz v2, :cond_13

    check-cast v0, Lcom/kwad/sdk/core/page/widget/a;

    :goto_12
    return-object v0

    :cond_13
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_2

    :cond_17
    const/4 v0, 0x0

    goto :goto_12
.end method

.method static synthetic c(Lcom/kwad/sdk/a/a;)Lcom/kwad/sdk/api/KsNativeAd$VideoPlayListener;
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->f:Lcom/kwad/sdk/api/KsNativeAd$VideoPlayListener;

    return-object v0
.end method


# virtual methods
.method public a()Lcom/kwad/sdk/internal/api/a;
    .registers 5
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->b:Lcom/kwad/sdk/core/response/model/AdInfo;

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/a;->y(Lcom/kwad/sdk/core/response/model/AdInfo;)Lcom/kwad/sdk/core/response/model/AdInfo$AdMaterialInfo$MaterialFeature;

    move-result-object v1

    iget-object v0, v1, Lcom/kwad/sdk/core/response/model/AdInfo$AdMaterialInfo$MaterialFeature;->coverUrl:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1a

    new-instance v0, Lcom/kwad/sdk/internal/api/a;

    iget v2, v1, Lcom/kwad/sdk/core/response/model/AdInfo$AdMaterialInfo$MaterialFeature;->width:I

    iget v3, v1, Lcom/kwad/sdk/core/response/model/AdInfo$AdMaterialInfo$MaterialFeature;->height:I

    iget-object v1, v1, Lcom/kwad/sdk/core/response/model/AdInfo$AdMaterialInfo$MaterialFeature;->coverUrl:Ljava/lang/String;

    invoke-direct {v0, v2, v3, v1}, Lcom/kwad/sdk/internal/api/a;-><init>(IILjava/lang/String;)V

    :goto_19
    return-object v0

    :cond_1a
    const/4 v0, 0x0

    goto :goto_19
.end method

.method public b()Lcom/kwad/sdk/core/response/model/AdTemplate;
    .registers 2
    .annotation build Landroid/support/annotation/NonNull;
    .end annotation

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    return-object v0
.end method

.method public getActionDescription()Ljava/lang/String;
    .registers 2
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->b:Lcom/kwad/sdk/core/response/model/AdInfo;

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/a;->r(Lcom/kwad/sdk/core/response/model/AdInfo;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getAdDescription()Ljava/lang/String;
    .registers 2
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->b:Lcom/kwad/sdk/core/response/model/AdInfo;

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/a;->k(Lcom/kwad/sdk/core/response/model/AdInfo;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getAdSource()Ljava/lang/String;
    .registers 2
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->b:Lcom/kwad/sdk/core/response/model/AdInfo;

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/a;->q(Lcom/kwad/sdk/core/response/model/AdInfo;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getAppDownloadCountDes()Ljava/lang/String;
    .registers 2
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->b:Lcom/kwad/sdk/core/response/model/AdInfo;

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/a;->o(Lcom/kwad/sdk/core/response/model/AdInfo;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getAppIconUrl()Ljava/lang/String;
    .registers 2
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->b:Lcom/kwad/sdk/core/response/model/AdInfo;

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/a;->l(Lcom/kwad/sdk/core/response/model/AdInfo;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getAppName()Ljava/lang/String;
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->b:Lcom/kwad/sdk/core/response/model/AdInfo;

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/a;->m(Lcom/kwad/sdk/core/response/model/AdInfo;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getAppScore()F
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->b:Lcom/kwad/sdk/core/response/model/AdInfo;

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/a;->p(Lcom/kwad/sdk/core/response/model/AdInfo;)F

    move-result v0

    return v0
.end method

.method public getECPM()I
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->b:Lcom/kwad/sdk/core/response/model/AdInfo;

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/a;->v(Lcom/kwad/sdk/core/response/model/AdInfo;)I

    move-result v0

    return v0
.end method

.method public getImageList()Ljava/util/List;
    .registers 8
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Lcom/kwad/sdk/api/KsImage;",
            ">;"
        }
    .end annotation

    const/4 v6, 0x2

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/c;->j(Lcom/kwad/sdk/core/response/model/AdTemplate;)Lcom/kwad/sdk/core/response/model/AdInfo;

    move-result-object v0

    iget-object v2, p0, Lcom/kwad/sdk/a/a;->b:Lcom/kwad/sdk/core/response/model/AdInfo;

    invoke-static {v2}, Lcom/kwad/sdk/core/response/b/a;->E(Lcom/kwad/sdk/core/response/model/AdInfo;)I

    move-result v2

    if-eq v2, v6, :cond_17

    const/4 v3, 0x3

    if-ne v2, v3, :cond_46

    :cond_17
    iget-object v0, v0, Lcom/kwad/sdk/core/response/model/AdInfo;->adMaterialInfo:Lcom/kwad/sdk/core/response/model/AdInfo$AdMaterialInfo;

    iget-object v0, v0, Lcom/kwad/sdk/core/response/model/AdInfo$AdMaterialInfo;->materialFeatureList:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_1f
    :goto_1f
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_46

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/kwad/sdk/core/response/model/AdInfo$AdMaterialInfo$MaterialFeature;

    iget v3, v0, Lcom/kwad/sdk/core/response/model/AdInfo$AdMaterialInfo$MaterialFeature;->featureType:I

    if-ne v3, v6, :cond_1f

    iget-object v3, v0, Lcom/kwad/sdk/core/response/model/AdInfo$AdMaterialInfo$MaterialFeature;->materialUrl:Ljava/lang/String;

    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_1f

    new-instance v3, Lcom/kwad/sdk/internal/api/a;

    iget v4, v0, Lcom/kwad/sdk/core/response/model/AdInfo$AdMaterialInfo$MaterialFeature;->width:I

    iget v5, v0, Lcom/kwad/sdk/core/response/model/AdInfo$AdMaterialInfo$MaterialFeature;->height:I

    iget-object v0, v0, Lcom/kwad/sdk/core/response/model/AdInfo$AdMaterialInfo$MaterialFeature;->materialUrl:Ljava/lang/String;

    invoke-direct {v3, v4, v5, v0}, Lcom/kwad/sdk/internal/api/a;-><init>(IILjava/lang/String;)V

    invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1f

    :cond_46
    return-object v1
.end method

.method public getInteractionType()I
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->b:Lcom/kwad/sdk/core/response/model/AdInfo;

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/a;->u(Lcom/kwad/sdk/core/response/model/AdInfo;)I

    move-result v0

    return v0
.end method

.method public getMaterialType()I
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->b:Lcom/kwad/sdk/core/response/model/AdInfo;

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/a;->E(Lcom/kwad/sdk/core/response/model/AdInfo;)I

    move-result v0

    return v0
.end method

.method public getSdkLogo()Landroid/graphics/Bitmap;
    .registers 4
    .annotation build Landroid/support/annotation/NonNull;
    .end annotation

    invoke-static {}, Lcom/kwad/sdk/KsAdSDKImpl;->get()Lcom/kwad/sdk/KsAdSDKImpl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/kwad/sdk/KsAdSDKImpl;->getContext()Landroid/content/Context;

    move-result-object v0

    if-nez v0, :cond_c

    const/4 v0, 0x0

    :goto_b
    return-object v0

    :cond_c
    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const-string v2, "ksad_sdk_logo"

    invoke-static {v0, v2}, Lcom/kwad/sdk/c/t;->d(Landroid/content/Context;Ljava/lang/String;)I

    move-result v0

    invoke-static {v1, v0}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    goto :goto_b
.end method

.method public synthetic getVideoCoverImage()Lcom/kwad/sdk/api/KsImage;
    .registers 2
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    invoke-virtual {p0}, Lcom/kwad/sdk/a/a;->a()Lcom/kwad/sdk/internal/api/a;

    move-result-object v0

    return-object v0
.end method

.method public getVideoDuration()I
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->b:Lcom/kwad/sdk/core/response/model/AdInfo;

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/a;->b(Lcom/kwad/sdk/core/response/model/AdInfo;)I

    move-result v0

    return v0
.end method

.method public getVideoUrl()Ljava/lang/String;
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->b:Lcom/kwad/sdk/core/response/model/AdInfo;

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/a;->a(Lcom/kwad/sdk/core/response/model/AdInfo;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getVideoView2(Landroid/content/Context;Lcom/kwad/sdk/api/KsAdVideoPlayConfig;)Landroid/view/View;
    .registers 6
    .param p2    # Lcom/kwad/sdk/api/KsAdVideoPlayConfig;
        .annotation build Landroid/support/annotation/Nullable;
        .end annotation
    .end param
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    invoke-virtual {p0}, Lcom/kwad/sdk/a/a;->getVideoUrl()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_13

    const-string v0, "KsNativeAdControl"

    const-string v1, "videoUrl is empty"

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->c(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v0, 0x0

    :goto_12
    return-object v0

    :cond_13
    iget-object v0, p0, Lcom/kwad/sdk/a/a;->e:Lcom/kwad/sdk/a/b;

    if-nez v0, :cond_35

    new-instance v0, Lcom/kwad/sdk/a/b;

    invoke-direct {v0, p1}, Lcom/kwad/sdk/a/b;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/kwad/sdk/a/a;->e:Lcom/kwad/sdk/a/b;

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->e:Lcom/kwad/sdk/a/b;

    iget-object v1, p0, Lcom/kwad/sdk/a/a;->h:Lcom/kwad/sdk/api/KsNativeAd$AdInteractionListener;

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/a/b;->setAdInteractionListener(Lcom/kwad/sdk/api/KsNativeAd$AdInteractionListener;)V

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->e:Lcom/kwad/sdk/a/b;

    iget-object v1, p0, Lcom/kwad/sdk/a/a;->g:Lcom/kwad/sdk/api/KsNativeAd$VideoPlayListener;

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/a/b;->setVideoPlayListener(Lcom/kwad/sdk/api/KsNativeAd$VideoPlayListener;)V

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->e:Lcom/kwad/sdk/a/b;

    iget-object v1, p0, Lcom/kwad/sdk/a/a;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    iget-object v2, p0, Lcom/kwad/sdk/a/a;->c:Lcom/kwad/sdk/core/download/a/b;

    invoke-virtual {v0, v1, v2, p2}, Lcom/kwad/sdk/a/b;->a(Lcom/kwad/sdk/core/response/model/AdTemplate;Lcom/kwad/sdk/core/download/a/b;Lcom/kwad/sdk/api/KsAdVideoPlayConfig;)V

    :cond_35
    iget-object v0, p0, Lcom/kwad/sdk/a/a;->e:Lcom/kwad/sdk/a/b;

    goto :goto_12
.end method

.method public getVideoView2(Landroid/content/Context;Z)Landroid/view/View;
    .registers 5

    new-instance v0, Lcom/kwad/sdk/api/KsAdVideoPlayConfig$Builder;

    invoke-direct {v0}, Lcom/kwad/sdk/api/KsAdVideoPlayConfig$Builder;-><init>()V

    invoke-virtual {v0, p2}, Lcom/kwad/sdk/api/KsAdVideoPlayConfig$Builder;->videoSoundEnable(Z)Lcom/kwad/sdk/api/KsAdVideoPlayConfig$Builder;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/api/KsAdVideoPlayConfig$Builder;->dataFlowAutoStart(Z)Lcom/kwad/sdk/api/KsAdVideoPlayConfig$Builder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/kwad/sdk/api/KsAdVideoPlayConfig$Builder;->build()Lcom/kwad/sdk/api/KsAdVideoPlayConfig;

    move-result-object v0

    invoke-virtual {p0, p1, v0}, Lcom/kwad/sdk/a/a;->getVideoView(Landroid/content/Context;Lcom/kwad/sdk/api/KsAdVideoPlayConfig;)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public registerViewForInteraction(Landroid/view/ViewGroup;Ljava/util/List;Lcom/kwad/sdk/api/KsNativeAd$AdInteractionListener;)V
    .registers 4
    .param p1    # Landroid/view/ViewGroup;
        .annotation build Landroid/support/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Ljava/util/List;
        .annotation build Landroid/support/annotation/NonNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/view/ViewGroup;",
            "Ljava/util/List",
            "<",
            "Landroid/view/View;",
            ">;",
            "Lcom/kwad/sdk/api/KsNativeAd$AdInteractionListener;",
            ")V"
        }
    .end annotation

    iput-object p3, p0, Lcom/kwad/sdk/a/a;->d:Lcom/kwad/sdk/api/KsNativeAd$AdInteractionListener;

    invoke-direct {p0, p1}, Lcom/kwad/sdk/a/a;->a(Landroid/view/ViewGroup;)V

    invoke-direct {p0, p1, p2}, Lcom/kwad/sdk/a/a;->a(Landroid/view/ViewGroup;Ljava/util/List;)V

    return-void
.end method

.method public reportAdVideoPlayEnd()V
    .registers 2

    invoke-virtual {p0}, Lcom/kwad/sdk/a/a;->b()Lcom/kwad/sdk/core/response/model/AdTemplate;

    move-result-object v0

    invoke-static {v0}, Lcom/kwad/sdk/core/report/b;->i(Lcom/kwad/sdk/core/response/model/AdTemplate;)V

    return-void
.end method

.method public reportAdVideoPlayStart()V
    .registers 2

    invoke-virtual {p0}, Lcom/kwad/sdk/a/a;->b()Lcom/kwad/sdk/core/response/model/AdTemplate;

    move-result-object v0

    invoke-static {v0}, Lcom/kwad/sdk/core/report/b;->h(Lcom/kwad/sdk/core/response/model/AdTemplate;)V

    return-void
.end method

.method public setBidEcpm(I)V
    .registers 3

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    iput p1, v0, Lcom/kwad/sdk/core/response/model/AdTemplate;->mBidEcpm:I

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    invoke-static {v0}, Lcom/kwad/sdk/core/report/b;->l(Lcom/kwad/sdk/core/response/model/AdTemplate;)V

    return-void
.end method

.method public setDownloadListener(Lcom/kwad/sdk/api/KsAppDownloadListener;)V
    .registers 3

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->c:Lcom/kwad/sdk/core/download/a/b;

    if-eqz v0, :cond_b

    if-eqz p1, :cond_b

    iget-object v0, p0, Lcom/kwad/sdk/a/a;->c:Lcom/kwad/sdk/core/download/a/b;

    invoke-virtual {v0, p1}, Lcom/kwad/sdk/core/download/a/b;->a(Lcom/kwad/sdk/api/KsAppDownloadListener;)V

    :cond_b
    return-void
.end method

.method public setVideoPlayListener(Lcom/kwad/sdk/api/KsNativeAd$VideoPlayListener;)V
    .registers 2

    iput-object p1, p0, Lcom/kwad/sdk/a/a;->f:Lcom/kwad/sdk/api/KsNativeAd$VideoPlayListener;

    return-void
.end method