text: [brv](../../index.md) / [com.drake.brv](../index.md) / [BindingAdapter](index.md) / [onLongClick](./on-long-click.md)
  
  # onLongClick
  
  `fun onLongClick(@IdRes vararg id: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, block: BindingViewHolder.(id: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`) -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)
  
  长按点击事件回调
  
  ### Parameters
  
  `id` - 添加监听长按事件视图的Id, 等效于[addLongClickable](add-long-clickable.md)