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
GuidThe ID of the JavaScript listener.
browserWindowSize
BrowserWindowSizeThe browser window size.
breakpoint
BreakpointThe breakpoint associated with the browser size.
isImmediate
boolSpecifies 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; }