Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

PopupPositionProvider

@Immutable interface PopupPositionProvider
androidx.ui.core.PopupPositionProvider

Calculates the position of a Popup on screen.

Summary

Public methods
abstract IntOffset
calculatePosition(parentLayoutBounds: IntBounds, layoutDirection: LayoutDirection, popupSize: IntSize)

Calculates the position of a Popup on screen.

Public methods

calculatePosition

abstract fun calculatePosition(
    parentLayoutBounds: IntBounds,
    layoutDirection: LayoutDirection,
    popupSize: IntSize
): IntOffset

Calculates the position of a Popup on screen.

Parameters
parentLayoutBounds: IntBounds The bounds of the parent wrapper layout on screen.
layoutDirection: LayoutDirection The layout direction of the parent wrapper layout.
popupSize: IntSize The size of the popup to be positioned.