android-components / / BrowserMenu


open class BrowserMenu (source)

A popup menu composed of BrowserMenuItem objects.


Name Summary
Orientation enum class Orientation


Name Summary
currentPopup var currentPopup: <ERROR CLASS>?


Name Summary
dismiss fun dismiss(): Unit
invalidate fun invalidate(): Unit
onViewAttachedToWindow open fun onViewAttachedToWindow(v: <ERROR CLASS>?): Unit
onViewDetachedFromWindow open fun onViewDetachedFromWindow(v: <ERROR CLASS>?): Unit
show open fun show(anchor: <ERROR CLASS>, orientation: Orientation = DOWN, endOfMenuAlwaysVisible: Boolean = false, onDismiss: () -> Unit = {}): <ERROR CLASS>

Companion Object Functions

Name Summary
determineMenuOrientation fun determineMenuOrientation(parent: <ERROR CLASS>?): Orientation
Determines the orientation to be used for a menu based on the positioning of the parent in the layout.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.


Name Summary
WebExtensionBrowserMenu class WebExtensionBrowserMenu : BrowserMenu
A BrowserMenu capable of displaying browser and page actions from web extensions.