Skip to content

Commit

Permalink
[feature] Allow to get the popup window variable (#154)
Browse files Browse the repository at this point in the history
Added a method to expose the PopupWindow variable, could be useful to get information about it such as isShowing, etc.
  • Loading branch information
ruialmeida51 authored Sep 16, 2021
1 parent d0381ef commit 776b727
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,14 @@ class PopupTooltip(
fun touchDelegateTouchAreaIncreaseAmount(increaseAmount: Int) =
apply { setupTouchDelegate(anchorView, increaseAmount, anchorView.context) }


/**
* Returns our tooltip object as a popup window. Might be useful to check if it's showing or other checks.
*
* @return the [PopupWindow] object that we create to show the PopupTooltip
*/
fun getTooltipAsPopupWindow() = tooltip

/**
* Displays the tooltip
*/
Expand Down

0 comments on commit 776b727

Please sign in to comment.