BcBreakpointListener
Description
The BcBreakpointListener component informs the application about the available space in the browser DOM. It helps adapt the layout or content dynamically based on the screen size.
Sample
Available Breakpoints
ExtraSmall
<= 600px
Breakpoints for screens smaller than 600px.
Small
<= 800px
Breakpoints for screens smaller than 800px.
Medium
<= 1280px
Breakpoints for screens smaller than 1280px.
Large
<= 1920px
Breakpoints for screens smaller than 1920px.
ExtraLarge
<= 2560px
Breakpoints for screens smaller than 2560px.
ExtraExtraLarge
>= 2560px
Breakpoints for screens larger than 2560px.
Component Parameters
RefreshRate
TimeSpan
Defines how frequently the breakpoint listener updates and triggers events.
BreakpointChanged
Action < cssBreakpoint >
An event triggered when the breakpoint changes, allowing dynamic content updates.
Method & Function Descriptions
Awaits and returns the initial breakpoint information.
Returns the current breakpoint. Before initialization, it defaults to 'cssBreakpoint.Small'.