.class public Landroidx/navigation/NavGraphBuilder; .super Landroidx/navigation/NavDestinationBuilder; .source "NavGraphBuilder.kt" # annotations .annotation runtime Landroidx/navigation/NavDestinationDsl; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Landroidx/navigation/NavDestinationBuilder<", "Landroidx/navigation/NavGraph;", ">;" } .end annotation .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nNavGraphBuilder.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NavGraphBuilder.kt\nandroidx/navigation/NavGraphBuilder\n+ 2 NavigatorProvider.kt\nandroidx/navigation/NavigatorProviderKt\n*L\n1#1,193:1\n161#2:194\n161#2:195\n*S KotlinDebug\n*F\n+ 1 NavGraphBuilder.kt\nandroidx/navigation/NavGraphBuilder\n*L\n131#1:194\n149#1:195\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; d1 = { "\u00008\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0002\u0008\u0003\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0010\u0002\n\u0002\u0008\u0006\u0008\u0017\u0018\u00002\u0008\u0012\u0004\u0012\u00020\u00020\u0001B#\u0008\u0017\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0008\u0008\u0001\u0010\u0005\u001a\u00020\u0006\u0012\u0008\u0008\u0001\u0010\u0007\u001a\u00020\u0006\u00a2\u0006\u0002\u0010\u0008B!\u0008\u0016\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0007\u001a\u00020\t\u0012\u0008\u0010\n\u001a\u0004\u0018\u00010\t\u00a2\u0006\u0002\u0010\u000bJ\u000e\u0010\u0013\u001a\u00020\u00142\u0006\u0010\u0015\u001a\u00020\u000eJ\u0008\u0010\u0016\u001a\u00020\u0002H\u0016J\u001e\u0010\u0015\u001a\u00020\u0014\"\u0008\u0008\u0000\u0010\u0017*\u00020\u000e2\u000c\u0010\u0018\u001a\u0008\u0012\u0004\u0012\u0002H\u00170\u0001J\r\u0010\u0019\u001a\u00020\u0014*\u00020\u000eH\u0086\u0002R\u0014\u0010\u000c\u001a\u0008\u0012\u0004\u0012\u00020\u000e0\rX\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0011\u0010\u0003\u001a\u00020\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000f\u0010\u0010R\u0012\u0010\u0011\u001a\u00020\u00068\u0002@\u0002X\u0083\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u0012\u001a\u0004\u0018\u00010\tX\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u001a" } d2 = { "Landroidx/navigation/NavGraphBuilder;", "Landroidx/navigation/NavDestinationBuilder;", "Landroidx/navigation/NavGraph;", "provider", "Landroidx/navigation/NavigatorProvider;", "id", "", "startDestination", "(Landroidx/navigation/NavigatorProvider;II)V", "", "route", "(Landroidx/navigation/NavigatorProvider;Ljava/lang/String;Ljava/lang/String;)V", "destinations", "", "Landroidx/navigation/NavDestination;", "getProvider", "()Landroidx/navigation/NavigatorProvider;", "startDestinationId", "startDestinationRoute", "addDestination", "", "destination", "build", "D", "navDestination", "unaryPlus", "navigation-common_release" } k = 0x1 mv = { 0x1, 0x8, 0x0 } xi = 0x30 .end annotation # instance fields .field private final destinations:Ljava/util/List; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/List<", "Landroidx/navigation/NavDestination;", ">;" } .end annotation .end field .field private final provider:Landroidx/navigation/NavigatorProvider; .field private startDestinationId:I .field private startDestinationRoute:Ljava/lang/String; # direct methods .method public constructor (Landroidx/navigation/NavigatorProvider;II)V .locals 1 .annotation runtime Lkotlin/Deprecated; message = "Use routes to build your NavGraph instead" replaceWith = .subannotation Lkotlin/ReplaceWith; expression = "NavGraphBuilder(provider, startDestination = startDestination.toString(), route = id.toString())" imports = {} .end subannotation .end annotation const-string v0, "provider" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 131 const-class v0, Landroidx/navigation/NavGraphNavigator; .line 194 invoke-virtual {p1, v0}, Landroidx/navigation/NavigatorProvider;->getNavigator(Ljava/lang/Class;)Landroidx/navigation/Navigator; move-result-object v0 .line 131 invoke-direct {p0, v0, p2}, Landroidx/navigation/NavDestinationBuilder;->(Landroidx/navigation/Navigator;I)V .line 154 new-instance p2, Ljava/util/ArrayList; invoke-direct {p2}, Ljava/util/ArrayList;->()V check-cast p2, Ljava/util/List; iput-object p2, p0, Landroidx/navigation/NavGraphBuilder;->destinations:Ljava/util/List; iput-object p1, p0, Landroidx/navigation/NavGraphBuilder;->provider:Landroidx/navigation/NavigatorProvider; iput p3, p0, Landroidx/navigation/NavGraphBuilder;->startDestinationId:I return-void .end method .method public constructor (Landroidx/navigation/NavigatorProvider;Ljava/lang/String;Ljava/lang/String;)V .locals 1 const-string v0, "provider" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "startDestination" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 149 const-class v0, Landroidx/navigation/NavGraphNavigator; .line 195 invoke-virtual {p1, v0}, Landroidx/navigation/NavigatorProvider;->getNavigator(Ljava/lang/Class;)Landroidx/navigation/Navigator; move-result-object v0 .line 149 invoke-direct {p0, v0, p3}, Landroidx/navigation/NavDestinationBuilder;->(Landroidx/navigation/Navigator;Ljava/lang/String;)V .line 154 new-instance p3, Ljava/util/ArrayList; invoke-direct {p3}, Ljava/util/ArrayList;->()V check-cast p3, Ljava/util/List; iput-object p3, p0, Landroidx/navigation/NavGraphBuilder;->destinations:Ljava/util/List; iput-object p1, p0, Landroidx/navigation/NavGraphBuilder;->provider:Landroidx/navigation/NavigatorProvider; iput-object p2, p0, Landroidx/navigation/NavGraphBuilder;->startDestinationRoute:Ljava/lang/String; return-void .end method # virtual methods .method public final addDestination(Landroidx/navigation/NavDestination;)V .locals 1 const-string v0, "destination" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object p0, p0, Landroidx/navigation/NavGraphBuilder;->destinations:Ljava/util/List; .line 174 check-cast p0, Ljava/util/Collection; invoke-interface {p0, p1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z return-void .end method .method public bridge synthetic build()Landroidx/navigation/NavDestination; .locals 0 .line 101 invoke-virtual {p0}, Landroidx/navigation/NavGraphBuilder;->build()Landroidx/navigation/NavGraph; move-result-object p0 check-cast p0, Landroidx/navigation/NavDestination; return-object p0 .end method .method public build()Landroidx/navigation/NavGraph; .locals 3 .line 177 invoke-super {p0}, Landroidx/navigation/NavDestinationBuilder;->build()Landroidx/navigation/NavDestination; move-result-object v0 check-cast v0, Landroidx/navigation/NavGraph; iget-object v1, p0, Landroidx/navigation/NavGraphBuilder;->destinations:Ljava/util/List; .line 178 check-cast v1, Ljava/util/Collection; invoke-virtual {v0, v1}, Landroidx/navigation/NavGraph;->addDestinations(Ljava/util/Collection;)V iget v1, p0, Landroidx/navigation/NavGraphBuilder;->startDestinationId:I if-nez v1, :cond_1 iget-object v2, p0, Landroidx/navigation/NavGraphBuilder;->startDestinationRoute:Ljava/lang/String; if-nez v2, :cond_1 .line 180 invoke-virtual {p0}, Landroidx/navigation/NavGraphBuilder;->getRoute()Ljava/lang/String; move-result-object p0 if-eqz p0, :cond_0 .line 181 new-instance p0, Ljava/lang/IllegalStateException; const-string v0, "You must set a start destination route" invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p0 .line 183 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string v0, "You must set a start destination id" invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p0 :cond_1 iget-object p0, p0, Landroidx/navigation/NavGraphBuilder;->startDestinationRoute:Ljava/lang/String; if-eqz p0, :cond_2 .line 187 invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-virtual {v0, p0}, Landroidx/navigation/NavGraph;->setStartDestination(Ljava/lang/String;)V goto :goto_0 .line 189 :cond_2 invoke-virtual {v0, v1}, Landroidx/navigation/NavGraph;->setStartDestination(I)V :goto_0 return-object v0 .end method .method public final destination(Landroidx/navigation/NavDestinationBuilder;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/navigation/NavDestinationBuilder<", "+TD;>;)V" } .end annotation const-string v0, "navDestination" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object p0, p0, Landroidx/navigation/NavGraphBuilder;->destinations:Ljava/util/List; .line 160 check-cast p0, Ljava/util/Collection; invoke-virtual {p1}, Landroidx/navigation/NavDestinationBuilder;->build()Landroidx/navigation/NavDestination; move-result-object p1 invoke-interface {p0, p1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z return-void .end method .method public final getProvider()Landroidx/navigation/NavigatorProvider; .locals 0 iget-object p0, p0, Landroidx/navigation/NavGraphBuilder;->provider:Landroidx/navigation/NavigatorProvider; return-object p0 .end method .method public final unaryPlus(Landroidx/navigation/NavDestination;)V .locals 1 const-string v0, "" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 167 invoke-virtual {p0, p1}, Landroidx/navigation/NavGraphBuilder;->addDestination(Landroidx/navigation/NavDestination;)V return-void .end method