{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

WindowInsetsSides.Companion

public static class WindowInsetsSides.Companion


Summary

Public methods

static final @NonNull WindowInsetsSides

Indicates a WindowInsets bottom side.

static final @NonNull WindowInsetsSides

Indicates a WindowInsets end side, which is left or right depending on LayoutDirection.

static final @NonNull WindowInsetsSides

Indicates a WindowInsets horizontal sides.

static final @NonNull WindowInsetsSides

Indicates a WindowInsets left side.

static final @NonNull WindowInsetsSides

Indicates a WindowInsets right side.

static final @NonNull WindowInsetsSides

Indicates a WindowInsets start side, which is left or right depending on LayoutDirection.

static final @NonNull WindowInsetsSides

Indicates a WindowInsets top side.

static final @NonNull WindowInsetsSides

Indicates a WindowInsets and Bottom sides.

Public methods

getBottom

public static final @NonNull WindowInsetsSides getBottom()

Indicates a WindowInsets bottom side.

getEnd

public static final @NonNull WindowInsetsSides getEnd()

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.

getHorizontal

public static final @NonNull WindowInsetsSides getHorizontal()

Indicates a WindowInsets horizontal sides. This is a combination of Left and Right sides, or Start and End sides.

getLeft

public static final @NonNull WindowInsetsSides getLeft()

Indicates a WindowInsets left side. Most layouts will prefer using Start or End to account for LayoutDirection.

getRight

public static final @NonNull WindowInsetsSides getRight()

Indicates a WindowInsets right side. Most layouts will prefer using Start or End to account for LayoutDirection.

getStart

public static final @NonNull WindowInsetsSides getStart()

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.

getTop

public static final @NonNull WindowInsetsSides getTop()

Indicates a WindowInsets top side.

getVertical

public static final @NonNull WindowInsetsSides getVertical()

Indicates a WindowInsets and Bottom sides.