awaitAtCenter

suspend fun awaitAtCenter(anchor: View, xOff: Int = 0, yOff: Int = 0, centerAlign: BalloonCenterAlign = BalloonCenterAlign.TOP)

Coroutine alternative for showAtCenter. This method suspends until the popup is displayed. Can be used to show popups sequentially without using relay methods.

Parameters

anchor

A target view which popup will be shown with overlap.

xOff

A horizontal offset from the anchor in pixels.

yOff

A vertical offset from the anchor in pixels.

centerAlign

A rule for deciding the alignment of the balloon.