PopupMenuItemResImpl

data class PopupMenuItemResImpl(val context: Context, @StringRes val textId: Int, val action: () -> Unit) : PopupMenuItem

Implementation of PopupMenuItem that uses a string resource for the text.

Constructors

Link copied to clipboard
constructor(context: Context, @StringRes textId: Int, action: () -> Unit)

Properties

Link copied to clipboard
open override val action: () -> Unit

The action to perform when the menu item is clicked.

Link copied to clipboard

The Android context used to resolve the string resource.

Link copied to clipboard
open override val text: String

The text of the menu item

Link copied to clipboard
val textId: Int

The string resource ID for the menu item text.