Skip to main content

Definition

Assembly: CloudNimble.BlazorEssentials.dll Namespace: CloudNimble.BlazorEssentials.Navigation Inheritance: System.Object

Syntax

CloudNimble.BlazorEssentials.Navigation.NavigationHistory

Constructors

.ctor

Syntax

public NavigationHistory(Microsoft.JSInterop.IJSRuntime jsRuntime)

Parameters

NameTypeDescription
jsRuntimeMicrosoft.JSInterop.IJSRuntime-

.ctor Inherited

Inherited from object

Syntax

public Object()

Methods

Back

This asynchronous method goes to the previous page in session history.

Syntax

public System.Threading.Tasks.ValueTask Back()

Returns

Type: System.Threading.Tasks.ValueTask

Count

Returns an Integer representing the number of elements in the session history, including the currently loaded page.

Syntax

public System.Threading.Tasks.ValueTask<int> Count()

Returns

Type: System.Threading.Tasks.ValueTask<int>

CurrentState

Returns an T type representing the state at the top of the history stack.

Syntax

public System.Threading.Tasks.ValueTask<T> CurrentState<T>()

Returns

Type: System.Threading.Tasks.ValueTask<T>

Type Parameters

  • T - The type of the state data

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

Forward

This asynchronous method goes to the next page in session history.

Syntax

public System.Threading.Tasks.ValueTask Forward()

Returns

Type: System.Threading.Tasks.ValueTask

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetScrollRestoration

Allows web applications to explicitly get default scroll restoration behavior on history navigation.

Syntax

public System.Threading.Tasks.ValueTask<CloudNimble.BlazorEssentials.Navigation.ScrollRestorationType> GetScrollRestoration()

Returns

Type: System.Threading.Tasks.ValueTask<CloudNimble.BlazorEssentials.Navigation.ScrollRestorationType>

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

Go

Asynchronously loads a page from the session history, identified by its relative location to the current page.

Syntax

public System.Threading.Tasks.ValueTask Go(int index)

Parameters

NameTypeDescription
indexintThe index to move back or forward

Returns

Type: System.Threading.Tasks.ValueTask

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

PushState

Pushes the given data onto the session history stack.

Syntax

public System.Threading.Tasks.ValueTask PushState<T>(T state, string url)

Parameters

NameTypeDescription
stateTThe state of the data
urlstringThe url to navigate

Returns

Type: System.Threading.Tasks.ValueTask

Type Parameters

  • T - The type of the state data

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ReplaceState

Updates the most recent entry on the history stack.

Syntax

public System.Threading.Tasks.ValueTask ReplaceState<T>(T state, string url)

Parameters

NameTypeDescription
stateTThe state of the data
urlstringThe url to navigate

Returns

Type: System.Threading.Tasks.ValueTask

Type Parameters

  • T - The type of the state data

SetScrollRestoration

Allows web applications to explicitly set default scroll restoration behavior on history navigation. This property can be either auto or manual.

Syntax

public System.Threading.Tasks.ValueTask SetScrollRestoration(CloudNimble.BlazorEssentials.Navigation.ScrollRestorationType scrollRestorationType)

Parameters

NameTypeDescription
scrollRestorationTypeCloudNimble.BlazorEssentials.Navigation.ScrollRestorationType-

Returns

Type: System.Threading.Tasks.ValueTask

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?