Table of Contents

Class BrowserViewportEventArgs

Namespace
MudBlazor
Assembly
MudBlazor.dll

Provides data for the browser viewport event.

public class BrowserViewportEventArgs : EventArgs
Inheritance
BrowserViewportEventArgs
Inherited Members
Extension Methods

Constructors

BrowserViewportEventArgs(Guid, BrowserWindowSize, Breakpoint, bool)

Initializes a new instance of the BrowserViewportEventArgs class.

public BrowserViewportEventArgs(Guid javaScriptListenerId, BrowserWindowSize browserWindowSize, Breakpoint breakpoint, bool isImmediate = false)

Parameters

javaScriptListenerId Guid

The ID of the JavaScript listener.

browserWindowSize BrowserWindowSize

The browser window size.

breakpoint Breakpoint

The breakpoint associated with the browser size.

isImmediate bool

Specifies whether this is the first event that was fired.

Properties

Breakpoint

Gets the breakpoint associated with the browser size.

public Breakpoint Breakpoint { get; }

Property Value

Breakpoint

BrowserWindowSize

Gets the browser window size.

public BrowserWindowSize BrowserWindowSize { get; }

Property Value

BrowserWindowSize

IsImmediate

Gets a value indicating whether this is the first event that was fired. This is true when you set fireImmediately to true in the SubscribeAsync(IBrowserViewportObserver, bool), SubscribeAsync(Guid, Action<BrowserViewportEventArgs>, ResizeOptions?, bool), SubscribeAsync(Guid, Func<BrowserViewportEventArgs, Task>, ResizeOptions?, bool) method.

public bool IsImmediate { get; }

Property Value

bool

JavaScriptListenerId

Gets the ID of the JavaScript listener.

public Guid JavaScriptListenerId { get; }

Property Value

Guid