Table of Contents

Method UseNavigate

Namespace
Velvet
Assembly
Velvet.Docs.dll

UseNavigate(bool)

Returns a navigate function that pushes (or, when replace is true, replaces) the given target path. The target may be absolute (/foo) or relative (., .., ../sibling) — relative targets resolve against CurrentLocation. Navigation is driven by Current.

public static Func<string, UniTask<NavigationResult>> UseNavigate(bool replace = false)

Parameters

replace bool

Returns

Func<string, UniTask<NavigationResult>>

A stable delegate navigate(to); the returned Cysharp.Threading.Tasks.UniTask<T> can be awaited or fire-and-forget.