public virtual FragmentNavigator.Destination AddFragmentDestination() { var destination = new FragmentNavigator.Destination(FragmentNavigator); destination.SetClassName(Java.Lang.Class.FromType(typeof(NavigationViewFragment)).CanonicalName); destination.Id = AView.GenerateViewId(); NavGraph.AddDestination(destination); return(destination); }
public static MauiFragmentNavDestination AddDestination( IPage page, NavigationPageHandler navigationPageHandler, NavGraph navGraph, FragmentNavigator navigator) { var destination = new MauiFragmentNavDestination(navigator, page, navigationPageHandler); navGraph.AddDestination(destination); return(destination); }