Breakpoint

Enum representing different screen size breakpoints.

Entries

Link copied to clipboard

Represents a mobile device breakpoint.

Link copied to clipboard

Represents a small tablet device breakpoint.

Link copied to clipboard

Represents a tablet device breakpoint.

Link copied to clipboard

Represents a laptop device breakpoint.

Link copied to clipboard

Represents a desktop device breakpoint.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
fun isBetween(smallBreakpoint: Breakpoint, largeBreakpoint: Breakpoint): Boolean

Checks if the current breakpoint is between two given breakpoints (inclusive).

Link copied to clipboard
infix fun isGreaterThan(breakpoint: Breakpoint): Boolean

Determines if the current breakpoint is greater than the given breakpoint.

Link copied to clipboard
infix fun isSmallerThan(breakpoint: Breakpoint): Boolean

Determines if the current breakpoint is smaller than the given breakpoint.

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.