Gesture.smali

.class public final enum Lcom/otaliastudios/cameraview/gesture/Gesture;
.super Ljava/lang/Enum;
.source "Gesture.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Enum<",
        "Lcom/otaliastudios/cameraview/gesture/Gesture;",
        ">;"
    }
.end annotation


# static fields
.field public static final synthetic $VALUES:[Lcom/otaliastudios/cameraview/gesture/Gesture;

.field public static final enum LONG_TAP:Lcom/otaliastudios/cameraview/gesture/Gesture;

.field public static final enum PINCH:Lcom/otaliastudios/cameraview/gesture/Gesture;

.field public static final enum SCROLL_HORIZONTAL:Lcom/otaliastudios/cameraview/gesture/Gesture;

.field public static final enum SCROLL_VERTICAL:Lcom/otaliastudios/cameraview/gesture/Gesture;

.field public static final enum TAP:Lcom/otaliastudios/cameraview/gesture/Gesture;


# instance fields
.field public type:Lcom/otaliastudios/cameraview/gesture/GestureType;


# direct methods
.method public static constructor <clinit>()V
    .registers 8

    new-instance v0, Lcom/otaliastudios/cameraview/gesture/Gesture;

    sget-object v1, Lcom/otaliastudios/cameraview/gesture/GestureType;->CONTINUOUS:Lcom/otaliastudios/cameraview/gesture/GestureType;

    const/4 v2, 0x0

    const-string v3, "PINCH"

    invoke-direct {v0, v3, v2, v1}, Lcom/otaliastudios/cameraview/gesture/Gesture;-><init>(Ljava/lang/String;ILcom/otaliastudios/cameraview/gesture/GestureType;)V

    sput-object v0, Lcom/otaliastudios/cameraview/gesture/Gesture;->PINCH:Lcom/otaliastudios/cameraview/gesture/Gesture;

    new-instance v0, Lcom/otaliastudios/cameraview/gesture/Gesture;

    sget-object v1, Lcom/otaliastudios/cameraview/gesture/GestureType;->ONE_SHOT:Lcom/otaliastudios/cameraview/gesture/GestureType;

    const/4 v3, 0x1

    const-string v4, "TAP"

    invoke-direct {v0, v4, v3, v1}, Lcom/otaliastudios/cameraview/gesture/Gesture;-><init>(Ljava/lang/String;ILcom/otaliastudios/cameraview/gesture/GestureType;)V

    sput-object v0, Lcom/otaliastudios/cameraview/gesture/Gesture;->TAP:Lcom/otaliastudios/cameraview/gesture/Gesture;

    new-instance v0, Lcom/otaliastudios/cameraview/gesture/Gesture;

    sget-object v1, Lcom/otaliastudios/cameraview/gesture/GestureType;->ONE_SHOT:Lcom/otaliastudios/cameraview/gesture/GestureType;

    const/4 v4, 0x2

    const-string v5, "LONG_TAP"

    invoke-direct {v0, v5, v4, v1}, Lcom/otaliastudios/cameraview/gesture/Gesture;-><init>(Ljava/lang/String;ILcom/otaliastudios/cameraview/gesture/GestureType;)V

    sput-object v0, Lcom/otaliastudios/cameraview/gesture/Gesture;->LONG_TAP:Lcom/otaliastudios/cameraview/gesture/Gesture;

    new-instance v0, Lcom/otaliastudios/cameraview/gesture/Gesture;

    sget-object v1, Lcom/otaliastudios/cameraview/gesture/GestureType;->CONTINUOUS:Lcom/otaliastudios/cameraview/gesture/GestureType;

    const/4 v5, 0x3

    const-string v6, "SCROLL_HORIZONTAL"

    invoke-direct {v0, v6, v5, v1}, Lcom/otaliastudios/cameraview/gesture/Gesture;-><init>(Ljava/lang/String;ILcom/otaliastudios/cameraview/gesture/GestureType;)V

    sput-object v0, Lcom/otaliastudios/cameraview/gesture/Gesture;->SCROLL_HORIZONTAL:Lcom/otaliastudios/cameraview/gesture/Gesture;

    new-instance v0, Lcom/otaliastudios/cameraview/gesture/Gesture;

    sget-object v1, Lcom/otaliastudios/cameraview/gesture/GestureType;->CONTINUOUS:Lcom/otaliastudios/cameraview/gesture/GestureType;

    const/4 v6, 0x4

    const-string v7, "SCROLL_VERTICAL"

    invoke-direct {v0, v7, v6, v1}, Lcom/otaliastudios/cameraview/gesture/Gesture;-><init>(Ljava/lang/String;ILcom/otaliastudios/cameraview/gesture/GestureType;)V

    sput-object v0, Lcom/otaliastudios/cameraview/gesture/Gesture;->SCROLL_VERTICAL:Lcom/otaliastudios/cameraview/gesture/Gesture;

    const/4 v1, 0x5

    new-array v1, v1, [Lcom/otaliastudios/cameraview/gesture/Gesture;

    sget-object v7, Lcom/otaliastudios/cameraview/gesture/Gesture;->PINCH:Lcom/otaliastudios/cameraview/gesture/Gesture;

    aput-object v7, v1, v2

    sget-object v2, Lcom/otaliastudios/cameraview/gesture/Gesture;->TAP:Lcom/otaliastudios/cameraview/gesture/Gesture;

    aput-object v2, v1, v3

    sget-object v2, Lcom/otaliastudios/cameraview/gesture/Gesture;->LONG_TAP:Lcom/otaliastudios/cameraview/gesture/Gesture;

    aput-object v2, v1, v4

    sget-object v2, Lcom/otaliastudios/cameraview/gesture/Gesture;->SCROLL_HORIZONTAL:Lcom/otaliastudios/cameraview/gesture/Gesture;

    aput-object v2, v1, v5

    aput-object v0, v1, v6

    sput-object v1, Lcom/otaliastudios/cameraview/gesture/Gesture;->$VALUES:[Lcom/otaliastudios/cameraview/gesture/Gesture;

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;ILcom/otaliastudios/cameraview/gesture/GestureType;)V
    .registers 4
    .param p1    # Ljava/lang/String;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/otaliastudios/cameraview/gesture/GestureType;",
            ")V"
        }
    .end annotation

    invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V

    iput-object p3, p0, Lcom/otaliastudios/cameraview/gesture/Gesture;->type:Lcom/otaliastudios/cameraview/gesture/GestureType;

    return-void
.end method

.method public static valueOf(Ljava/lang/String;)Lcom/otaliastudios/cameraview/gesture/Gesture;
    .registers 2

    const-class v0, Lcom/otaliastudios/cameraview/gesture/Gesture;

    invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;

    move-result-object p0

    check-cast p0, Lcom/otaliastudios/cameraview/gesture/Gesture;

    return-object p0
.end method

.method public static values()[Lcom/otaliastudios/cameraview/gesture/Gesture;
    .registers 1

    sget-object v0, Lcom/otaliastudios/cameraview/gesture/Gesture;->$VALUES:[Lcom/otaliastudios/cameraview/gesture/Gesture;

    invoke-virtual {v0}, [Lcom/otaliastudios/cameraview/gesture/Gesture;->clone()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Lcom/otaliastudios/cameraview/gesture/Gesture;

    return-object v0
.end method


# virtual methods
.method public isAssignableTo(Lcom/otaliastudios/cameraview/gesture/GestureAction;)Z
    .registers 3
    .param p1    # Lcom/otaliastudios/cameraview/gesture/GestureAction;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    sget-object v0, Lcom/otaliastudios/cameraview/gesture/GestureAction;->NONE:Lcom/otaliastudios/cameraview/gesture/GestureAction;

    if-eq p1, v0, :cond_f

    invoke-virtual {p1}, Lcom/otaliastudios/cameraview/gesture/GestureAction;->type()Lcom/otaliastudios/cameraview/gesture/GestureType;

    move-result-object p1

    iget-object v0, p0, Lcom/otaliastudios/cameraview/gesture/Gesture;->type:Lcom/otaliastudios/cameraview/gesture/GestureType;

    if-ne p1, v0, :cond_d

    goto :goto_f

    :cond_d
    const/4 p1, 0x0

    goto :goto_10

    :cond_f
    :goto_f
    const/4 p1, 0x1

    :goto_10
    return p1
.end method