android-components / mozilla.components.feature.contextmenu / ContextMenuFragment

ContextMenuFragment

class ContextMenuFragment : DialogFragment (source)

DialogFragment implementation to display the actual context menu dialog.

Constructors

Name Summary
<init> ContextMenuFragment()
DialogFragment implementation to display the actual context menu dialog.

Functions

Name Summary
onCancel fun onCancel(dialog: <ERROR CLASS>): Unit
onCreateDialog fun onCreateDialog(savedInstanceState: <ERROR CLASS>?): <ERROR CLASS>

Companion Object Functions

Name Summary
create fun create(tab: SessionState, title: String, ids: List<String>, labels: List<String>): ContextMenuFragment
Create a new ContextMenuFragment.

Extension Functions

Name Summary
consumeFrom fun <S : State, A : Action> Fragment.consumeFrom(store: Store<S, A>, block: (S) -> Unit): Unit
Helper extension method for consuming State from a Store sequentially in order inside a Fragment. The block function will get invoked for every State update.
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.