Rabbit-R1/android (non root)/java/sources/androidx/navigation/NavControllerKt.java

55 lines
3.8 KiB
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package androidx.navigation;
import kotlin.Deprecated;
import kotlin.Metadata;
import kotlin.ReplaceWith;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
/* compiled from: NavController.kt */
@Metadata(d1 = {"\u0000,\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\u001a=\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\b\b\u0003\u0010\u0003\u001a\u00020\u00042\b\b\u0001\u0010\u0005\u001a\u00020\u00042\u0017\u0010\u0006\u001a\u0013\u0012\u0004\u0012\u00020\b\u0012\u0004\u0012\u00020\t0\u0007¢\u0006\u0002\b\nH\u0087\\u0001\u0000\u001a=\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u000b2\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\u000b2\u0017\u0010\u0006\u001a\u0013\u0012\u0004\u0012\u00020\b\u0012\u0004\u0012\u00020\t0\u0007¢\u0006\u0002\b\nH\u0086\\u0001\u0000\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\r"}, d2 = {"createGraph", "Landroidx/navigation/NavGraph;", "Landroidx/navigation/NavController;", "id", "", "startDestination", "builder", "Lkotlin/Function1;", "Landroidx/navigation/NavGraphBuilder;", "", "Lkotlin/ExtensionFunctionType;", "", "route", "navigation-runtime_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes2.dex */
public final class NavControllerKt {
public static /* synthetic */ NavGraph createGraph$default(NavController navController, int i, int i2, Function1 builder, int i3, Object obj) {
if ((i3 & 1) != 0) {
i = 0;
}
Intrinsics.checkNotNullParameter(navController, "<this>");
Intrinsics.checkNotNullParameter(builder, "builder");
NavGraphBuilder navGraphBuilder = new NavGraphBuilder(navController.get_navigatorProvider(), i, i2);
builder.invoke(navGraphBuilder);
return navGraphBuilder.build();
}
@Deprecated(message = "Use routes to create your NavGraph instead", replaceWith = @ReplaceWith(expression = "createGraph(startDestination = startDestination.toString(), route = id.toString()) { builder.invoke() }", imports = {}))
public static final NavGraph createGraph(NavController navController, int i, int i2, Function1<? super NavGraphBuilder, Unit> builder) {
Intrinsics.checkNotNullParameter(navController, "<this>");
Intrinsics.checkNotNullParameter(builder, "builder");
NavGraphBuilder navGraphBuilder = new NavGraphBuilder(navController.get_navigatorProvider(), i, i2);
builder.invoke(navGraphBuilder);
return navGraphBuilder.build();
}
public static /* synthetic */ NavGraph createGraph$default(NavController navController, String startDestination, String str, Function1 builder, int i, Object obj) {
if ((i & 2) != 0) {
str = null;
}
Intrinsics.checkNotNullParameter(navController, "<this>");
Intrinsics.checkNotNullParameter(startDestination, "startDestination");
Intrinsics.checkNotNullParameter(builder, "builder");
NavGraphBuilder navGraphBuilder = new NavGraphBuilder(navController.get_navigatorProvider(), startDestination, str);
builder.invoke(navGraphBuilder);
return navGraphBuilder.build();
}
public static final NavGraph createGraph(NavController navController, String startDestination, String str, Function1<? super NavGraphBuilder, Unit> builder) {
Intrinsics.checkNotNullParameter(navController, "<this>");
Intrinsics.checkNotNullParameter(startDestination, "startDestination");
Intrinsics.checkNotNullParameter(builder, "builder");
NavGraphBuilder navGraphBuilder = new NavGraphBuilder(navController.get_navigatorProvider(), startDestination, str);
builder.invoke(navGraphBuilder);
return navGraphBuilder.build();
}
}