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
javaScriptListenerIdGuidThe ID of the JavaScript listener.
browserWindowSizeBrowserWindowSizeThe browser window size.
breakpointBreakpointThe breakpoint associated with the browser size.
isImmediateboolSpecifies 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
BrowserWindowSize
Gets the browser window size.
public BrowserWindowSize BrowserWindowSize { get; }
Property Value
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
JavaScriptListenerId
Gets the ID of the JavaScript listener.
public Guid JavaScriptListenerId { get; }