android-components / mozilla.components.browser.menu / BrowserMenu

BrowserMenu

class BrowserMenu (source)

A popup menu composed of BrowserMenuItem objects.

Types

Name Summary
Orientation enum class Orientation

Functions

Name Summary
dismiss fun dismiss(): Unit
invalidate fun invalidate(): Unit
show 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.