public class WindowInsetsSides private constructor(private val value: Int)
WindowInsetsSides is used in WindowInsets.only to define which sides of the WindowInsets should apply.
Functions
plus
public operator fun plus(sides: WindowInsetsSides): WindowInsetsSides
Returns a WindowInsetsSides containing sides defied in sides and the sides in this.
toString
override fun toString(): String
Members
Companion
public companion object
Properties
Start
public val Start: WindowInsetsSides
Indicates a WindowInsets start side, which is left or right depending on LayoutDirection. If LayoutDirection.Ltr, Start is the left side. If LayoutDirection.Rtl, Start is the right side.
Use Left or Right if the physical direction is required.
End
public val End: WindowInsetsSides
Indicates a WindowInsets end side, which is left or right depending on LayoutDirection. If LayoutDirection.Ltr, End is the right side. If LayoutDirection.Rtl, End is the left side.
Use Left or Right if the physical direction is required.
Top
public val Top: WindowInsetsSides
Indicates a WindowInsets top side.
Bottom
public val Bottom: WindowInsetsSides
Indicates a WindowInsets bottom side.
Left
public val Left: WindowInsetsSides
Indicates a WindowInsets left side. Most layouts will prefer using Start or End to account for LayoutDirection.
Right
public val Right: WindowInsetsSides
Indicates a WindowInsets right side. Most layouts will prefer using Start or End to account for LayoutDirection.
Horizontal
public val Horizontal: WindowInsetsSides
Indicates a WindowInsets horizontal sides. This is a combination of Left and Right sides, or Start and End sides.
Vertical
public val Vertical: WindowInsetsSides
Indicates a WindowInsets Top and Bottom sides.