[android-components](../../index.md) / [mozilla.components.feature.contextmenu](../index.md) / [ContextMenuCandidate](index.md) / [showFor](./show-for.md)

# showFor

`val showFor: (`[`Session`](../../mozilla.components.browser.session/-session/index.md)`, `[`HitResult`](../../mozilla.components.concept.engine/-hit-result/index.md)`) -> `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/feature/contextmenu/src/main/java/mozilla/components/feature/contextmenu/ContextMenuCandidate.kt#L33)

If this lambda returns true for a given [Session](../../mozilla.components.browser.session/-session/index.md) and [HitResult](../../mozilla.components.concept.engine/-hit-result/index.md) then it will be displayed in the
context menu.

### Property

`showFor` - If this lambda returns true for a given [Session](../../mozilla.components.browser.session/-session/index.md) and [HitResult](../../mozilla.components.concept.engine/-hit-result/index.md) then it will be displayed in the
context menu.