INavigationInitialize<TInput> interface

Namespace Runic.Navigation · Runic.Navigation 0.7.0-preview.5

public interface INavigationInitialize<in TInput> : INavigationInputInitialize

Inherits or implements INavigationInputInitialize.

Initializes a new entry created with typed input by NavigationTarget.Create or NavigationTarget.Create.

Type parameters

TInput

The input type.

Methods

InitializeAsync

ValueTask InitializeAsync(NavigationEntryContext entry, TInput input, CancellationToken cancellationToken)

Initializes the entry's content. Runs outside model turns and at most once per entry.

Parameters

entry

The entry being created.

input

The target's input.

cancellationToken

Cancelled when the transition is superseded, cancelled or closed.