Google is committed to advancing racial equity for Black communities. See how.

PopupPositionProvider

@Immutable interface PopupPositionProvider
androidx.ui.core.PopupPositionProvider

Calculates the position of a Popup on screen.

Summary

Public methods
abstract IntOffset
calculatePosition(parentLayoutPosition: IntOffset, parentLayoutSize: IntSize, layoutDirection: LayoutDirection, popupSize: IntSize)

Calculates the position of a Popup on screen.

Public methods

calculatePosition

abstract fun calculatePosition(
    parentLayoutPosition: IntOffset,
    parentLayoutSize: IntSize,
    layoutDirection: LayoutDirection,
    popupSize: IntSize
): IntOffset

Calculates the position of a Popup on screen.

Parameters
parentLayoutPosition: IntOffset The position of the parent wrapper layout on screen.
parentLayoutSize: IntSize The size of the parent wrapper layout.
layoutDirection: LayoutDirection The layout direction of the parent wrapper layout.
popupSize: IntSize The size of the popup to be positioned.