Table of Contents

Class AutoRedirect

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

AutoRedirect component

public class AutoRedirect : BootstrapModuleComponentBase, IComponent, IHandleAfterRender, IHandleEvent, IAsyncDisposable
Inheritance
AutoRedirect
Implements
Inherited Members
Extension Methods

Constructors

AutoRedirect()

public AutoRedirect()

Properties

Interval

获得/设置 自动锁屏间隔单位 秒 默认 60000 毫秒

[Parameter]
public int Interval { get; set; }

Property Value

int

IsForceLoad

获得/设置 是否强制导航 默认 false

[Parameter]
public bool IsForceLoad { get; set; }

Property Value

bool

OnBeforeRedirectAsync

获得/设置 地址跳转前回调方法 返回 true 时中止跳转

[Parameter]
public Func<Task<bool>>? OnBeforeRedirectAsync { get; set; }

Property Value

Func<Task<bool>>

RedirectUrl

获得/设置 重定向地址

[Parameter]
public string? RedirectUrl { get; set; }

Property Value

string

Methods

InvokeInitAsync()

call JavaScript method

protected override Task InvokeInitAsync()

Returns

Task

Lock()

锁屏操作由 JS 调用

[JSInvokable]
public Task Lock()

Returns

Task