.class public final Landroidx/navigation/NavOptionsBuilder; .super Ljava/lang/Object; .source "NavOptionsBuilder.kt" # annotations .annotation runtime Landroidx/navigation/NavOptionsDsl; .end annotation .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nNavOptionsBuilder.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NavOptionsBuilder.kt\nandroidx/navigation/NavOptionsBuilder\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,211:1\n1#2:212\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; d1 = { "\u0000N\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\u0008\u0006\n\u0002\u0010\u0008\n\u0002\u0008\t\n\u0002\u0010\u000e\n\u0002\u0008\u000b\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0008\u0007\u0018\u00002\u00020\u0001B\u0005\u00a2\u0006\u0002\u0010\u0002J\u001f\u0010\"\u001a\u00020#2\u0017\u0010$\u001a\u0013\u0012\u0004\u0012\u00020&\u0012\u0004\u0012\u00020#0%\u00a2\u0006\u0002\u0008\'J\r\u0010(\u001a\u00020)H\u0000\u00a2\u0006\u0002\u0008*J+\u0010\u000e\u001a\u00020#2\u0008\u0008\u0001\u0010+\u001a\u00020\r2\u0019\u0008\u0002\u0010,\u001a\u0013\u0012\u0004\u0012\u00020-\u0012\u0004\u0012\u00020#0%\u00a2\u0006\u0002\u0008\'J)\u0010\u000e\u001a\u00020#2\u0006\u0010.\u001a\u00020\u00172\u0019\u0008\u0002\u0010,\u001a\u0013\u0012\u0004\u0012\u00020-\u0012\u0004\u0012\u00020#0%\u00a2\u0006\u0002\u0008\'R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u001a\u0010\u0007\u001a\u00020\u0006X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0008\u0010\t\"\u0004\u0008\n\u0010\u000bR*\u0010\u000e\u001a\u00020\r2\u0006\u0010\u000c\u001a\u00020\r8F@GX\u0087\u000e\u00a2\u0006\u0012\u0012\u0004\u0008\u000f\u0010\u0002\u001a\u0004\u0008\u0010\u0010\u0011\"\u0004\u0008\u0012\u0010\u0013R&\u0010\u0014\u001a\u00020\r2\u0006\u0010\u000c\u001a\u00020\r8\u0006@@X\u0087\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0015\u0010\u0011\"\u0004\u0008\u0016\u0010\u0013R(\u0010\u0018\u001a\u0004\u0018\u00010\u00172\u0008\u0010\u000c\u001a\u0004\u0018\u00010\u0017@BX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0019\u0010\u001a\"\u0004\u0008\u001b\u0010\u001cR&\u0010\u001e\u001a\u00020\u00062\u0006\u0010\u001d\u001a\u00020\u00068F@FX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u001f\u0010\t\"\u0004\u0008 \u0010\u000bR\u000e\u0010!\u001a\u00020\u0006X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006/" } d2 = { "Landroidx/navigation/NavOptionsBuilder;", "", "()V", "builder", "Landroidx/navigation/NavOptions$Builder;", "inclusive", "", "launchSingleTop", "getLaunchSingleTop", "()Z", "setLaunchSingleTop", "(Z)V", "value", "", "popUpTo", "getPopUpTo$annotations", "getPopUpTo", "()I", "setPopUpTo", "(I)V", "popUpToId", "getPopUpToId", "setPopUpToId$navigation_common_release", "", "popUpToRoute", "getPopUpToRoute", "()Ljava/lang/String;", "setPopUpToRoute", "(Ljava/lang/String;)V", "", "restoreState", "getRestoreState", "setRestoreState", "saveState", "anim", "", "animBuilder", "Lkotlin/Function1;", "Landroidx/navigation/AnimBuilder;", "Lkotlin/ExtensionFunctionType;", "build", "Landroidx/navigation/NavOptions;", "build$navigation_common_release", "id", "popUpToBuilder", "Landroidx/navigation/PopUpToBuilder;", "route", "navigation-common_release" } k = 0x1 mv = { 0x1, 0x8, 0x0 } xi = 0x30 .end annotation # instance fields .field private final builder:Landroidx/navigation/NavOptions$Builder; .field private inclusive:Z .field private launchSingleTop:Z .field private popUpToId:I .field private popUpToRoute:Ljava/lang/String; .field private restoreState:Z .field private saveState:Z # direct methods .method public constructor ()V .locals 1 .line 35 invoke-direct {p0}, Ljava/lang/Object;->()V .line 37 new-instance v0, Landroidx/navigation/NavOptions$Builder; invoke-direct {v0}, Landroidx/navigation/NavOptions$Builder;->()V iput-object v0, p0, Landroidx/navigation/NavOptionsBuilder;->builder:Landroidx/navigation/NavOptions$Builder; const/4 v0, -0x1 iput v0, p0, Landroidx/navigation/NavOptionsBuilder;->popUpToId:I return-void .end method .method public static synthetic getPopUpTo$annotations()V .locals 0 .annotation runtime Lkotlin/Deprecated; message = "Use the popUpToId property." .end annotation return-void .end method .method public static synthetic popUpTo$default(Landroidx/navigation/NavOptionsBuilder;ILkotlin/jvm/functions/Function1;ILjava/lang/Object;)V .locals 0 and-int/lit8 p3, p3, 0x2 if-eqz p3, :cond_0 .line 98 sget-object p2, Landroidx/navigation/NavOptionsBuilder$popUpTo$1;->INSTANCE:Landroidx/navigation/NavOptionsBuilder$popUpTo$1; check-cast p2, Lkotlin/jvm/functions/Function1; :cond_0 invoke-virtual {p0, p1, p2}, Landroidx/navigation/NavOptionsBuilder;->popUpTo(ILkotlin/jvm/functions/Function1;)V return-void .end method .method public static synthetic popUpTo$default(Landroidx/navigation/NavOptionsBuilder;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V .locals 0 and-int/lit8 p3, p3, 0x2 if-eqz p3, :cond_0 .line 113 sget-object p2, Landroidx/navigation/NavOptionsBuilder$popUpTo$2;->INSTANCE:Landroidx/navigation/NavOptionsBuilder$popUpTo$2; check-cast p2, Lkotlin/jvm/functions/Function1; :cond_0 invoke-virtual {p0, p1, p2}, Landroidx/navigation/NavOptionsBuilder;->popUpTo(Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V return-void .end method .method private final setPopUpToRoute(Ljava/lang/String;)V .locals 1 if-eqz p1, :cond_1 .line 86 move-object v0, p1 check-cast v0, Ljava/lang/CharSequence; invoke-static {v0}, Lkotlin/text/StringsKt;->isBlank(Ljava/lang/CharSequence;)Z move-result v0 xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iput-object p1, p0, Landroidx/navigation/NavOptionsBuilder;->popUpToRoute:Ljava/lang/String; const/4 p1, 0x0 iput-boolean p1, p0, Landroidx/navigation/NavOptionsBuilder;->inclusive:Z goto :goto_0 :cond_0 new-instance p0, Ljava/lang/IllegalArgumentException; const-string p1, "Cannot pop up to an empty route" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p0 :cond_1 :goto_0 return-void .end method # virtual methods .method public final anim(Lkotlin/jvm/functions/Function1;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lkotlin/jvm/functions/Function1<", "-", "Landroidx/navigation/AnimBuilder;", "Lkotlin/Unit;", ">;)V" } .end annotation const-string v0, "animBuilder" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 127 new-instance v0, Landroidx/navigation/AnimBuilder; invoke-direct {v0}, Landroidx/navigation/AnimBuilder;->()V invoke-interface {p1, v0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object; iget-object p0, p0, Landroidx/navigation/NavOptionsBuilder;->builder:Landroidx/navigation/NavOptions$Builder; .line 128 invoke-virtual {v0}, Landroidx/navigation/AnimBuilder;->getEnter()I move-result p1 invoke-virtual {p0, p1}, Landroidx/navigation/NavOptions$Builder;->setEnterAnim(I)Landroidx/navigation/NavOptions$Builder; move-result-object p0 .line 129 invoke-virtual {v0}, Landroidx/navigation/AnimBuilder;->getExit()I move-result p1 invoke-virtual {p0, p1}, Landroidx/navigation/NavOptions$Builder;->setExitAnim(I)Landroidx/navigation/NavOptions$Builder; move-result-object p0 .line 130 invoke-virtual {v0}, Landroidx/navigation/AnimBuilder;->getPopEnter()I move-result p1 invoke-virtual {p0, p1}, Landroidx/navigation/NavOptions$Builder;->setPopEnterAnim(I)Landroidx/navigation/NavOptions$Builder; move-result-object p0 .line 131 invoke-virtual {v0}, Landroidx/navigation/AnimBuilder;->getPopExit()I move-result p1 invoke-virtual {p0, p1}, Landroidx/navigation/NavOptions$Builder;->setPopExitAnim(I)Landroidx/navigation/NavOptions$Builder; return-void .end method .method public final build$navigation_common_release()Landroidx/navigation/NavOptions; .locals 3 iget-object v0, p0, Landroidx/navigation/NavOptionsBuilder;->builder:Landroidx/navigation/NavOptions$Builder; iget-boolean v1, p0, Landroidx/navigation/NavOptionsBuilder;->launchSingleTop:Z .line 136 invoke-virtual {v0, v1}, Landroidx/navigation/NavOptions$Builder;->setLaunchSingleTop(Z)Landroidx/navigation/NavOptions$Builder; iget-boolean v1, p0, Landroidx/navigation/NavOptionsBuilder;->restoreState:Z .line 137 invoke-virtual {v0, v1}, Landroidx/navigation/NavOptions$Builder;->setRestoreState(Z)Landroidx/navigation/NavOptions$Builder; iget-object v1, p0, Landroidx/navigation/NavOptionsBuilder;->popUpToRoute:Ljava/lang/String; if-eqz v1, :cond_0 iget-boolean v2, p0, Landroidx/navigation/NavOptionsBuilder;->inclusive:Z iget-boolean p0, p0, Landroidx/navigation/NavOptionsBuilder;->saveState:Z .line 139 invoke-virtual {v0, v1, v2, p0}, Landroidx/navigation/NavOptions$Builder;->setPopUpTo(Ljava/lang/String;ZZ)Landroidx/navigation/NavOptions$Builder; goto :goto_0 :cond_0 iget v1, p0, Landroidx/navigation/NavOptionsBuilder;->popUpToId:I iget-boolean v2, p0, Landroidx/navigation/NavOptionsBuilder;->inclusive:Z iget-boolean p0, p0, Landroidx/navigation/NavOptionsBuilder;->saveState:Z .line 141 invoke-virtual {v0, v1, v2, p0}, Landroidx/navigation/NavOptions$Builder;->setPopUpTo(IZZ)Landroidx/navigation/NavOptions$Builder; .line 143 :goto_0 invoke-virtual {v0}, Landroidx/navigation/NavOptions$Builder;->build()Landroidx/navigation/NavOptions; move-result-object p0 return-object p0 .end method .method public final getLaunchSingleTop()Z .locals 0 iget-boolean p0, p0, Landroidx/navigation/NavOptionsBuilder;->launchSingleTop:Z return p0 .end method .method public final getPopUpTo()I .locals 0 iget p0, p0, Landroidx/navigation/NavOptionsBuilder;->popUpToId:I return p0 .end method .method public final getPopUpToId()I .locals 0 iget p0, p0, Landroidx/navigation/NavOptionsBuilder;->popUpToId:I return p0 .end method .method public final getPopUpToRoute()Ljava/lang/String; .locals 0 iget-object p0, p0, Landroidx/navigation/NavOptionsBuilder;->popUpToRoute:Ljava/lang/String; return-object p0 .end method .method public final getRestoreState()Z .locals 0 iget-boolean p0, p0, Landroidx/navigation/NavOptionsBuilder;->restoreState:Z return p0 .end method .method public final popUpTo(ILkotlin/jvm/functions/Function1;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(I", "Lkotlin/jvm/functions/Function1<", "-", "Landroidx/navigation/PopUpToBuilder;", "Lkotlin/Unit;", ">;)V" } .end annotation const-string v0, "popUpToBuilder" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 99 invoke-virtual {p0, p1}, Landroidx/navigation/NavOptionsBuilder;->setPopUpToId$navigation_common_release(I)V const/4 p1, 0x0 .line 100 invoke-direct {p0, p1}, Landroidx/navigation/NavOptionsBuilder;->setPopUpToRoute(Ljava/lang/String;)V .line 101 new-instance p1, Landroidx/navigation/PopUpToBuilder; invoke-direct {p1}, Landroidx/navigation/PopUpToBuilder;->()V invoke-interface {p2, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object; .line 102 invoke-virtual {p1}, Landroidx/navigation/PopUpToBuilder;->getInclusive()Z move-result p2 iput-boolean p2, p0, Landroidx/navigation/NavOptionsBuilder;->inclusive:Z .line 103 invoke-virtual {p1}, Landroidx/navigation/PopUpToBuilder;->getSaveState()Z move-result p1 iput-boolean p1, p0, Landroidx/navigation/NavOptionsBuilder;->saveState:Z return-void .end method .method public final popUpTo(Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/String;", "Lkotlin/jvm/functions/Function1<", "-", "Landroidx/navigation/PopUpToBuilder;", "Lkotlin/Unit;", ">;)V" } .end annotation const-string v0, "route" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "popUpToBuilder" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 114 invoke-direct {p0, p1}, Landroidx/navigation/NavOptionsBuilder;->setPopUpToRoute(Ljava/lang/String;)V const/4 p1, -0x1 .line 115 invoke-virtual {p0, p1}, Landroidx/navigation/NavOptionsBuilder;->setPopUpToId$navigation_common_release(I)V .line 116 new-instance p1, Landroidx/navigation/PopUpToBuilder; invoke-direct {p1}, Landroidx/navigation/PopUpToBuilder;->()V invoke-interface {p2, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object; .line 117 invoke-virtual {p1}, Landroidx/navigation/PopUpToBuilder;->getInclusive()Z move-result p2 iput-boolean p2, p0, Landroidx/navigation/NavOptionsBuilder;->inclusive:Z .line 118 invoke-virtual {p1}, Landroidx/navigation/PopUpToBuilder;->getSaveState()Z move-result p1 iput-boolean p1, p0, Landroidx/navigation/NavOptionsBuilder;->saveState:Z return-void .end method .method public final setLaunchSingleTop(Z)V .locals 0 iput-boolean p1, p0, Landroidx/navigation/NavOptionsBuilder;->launchSingleTop:Z return-void .end method .method public final setPopUpTo(I)V .locals 2 .annotation runtime Lkotlin/Deprecated; message = "Use the popUpTo function and passing in the id." .end annotation const/4 v0, 0x0 const/4 v1, 0x2 .line 76 invoke-static {p0, p1, v0, v1, v0}, Landroidx/navigation/NavOptionsBuilder;->popUpTo$default(Landroidx/navigation/NavOptionsBuilder;ILkotlin/jvm/functions/Function1;ILjava/lang/Object;)V return-void .end method .method public final setPopUpToId$navigation_common_release(I)V .locals 0 iput p1, p0, Landroidx/navigation/NavOptionsBuilder;->popUpToId:I const/4 p1, 0x0 iput-boolean p1, p0, Landroidx/navigation/NavOptionsBuilder;->inclusive:Z return-void .end method .method public final setRestoreState(Z)V .locals 0 iput-boolean p1, p0, Landroidx/navigation/NavOptionsBuilder;->restoreState:Z return-void .end method