SpeedBumpView

open class SpeedBumpView : FrameLayout
kotlin.Any
   ↳ android.view.View
   ↳ android.view.ViewGroup
   ↳ android.widget.FrameLayout
   ↳ androidx.car.moderator.SpeedBumpView

A wrapping view that will monitor all touch events on its children views and prevent the user from interacting if they have performed a preset number of interactions within a preset amount of time.

When the user has performed the maximum number of interactions per the set unit of time, a message explaining that they are no longer able to interact with the view is also displayed.

Summary

Public constructors
<init>(context: Context!)

<init>(context: Context!, attrs: AttributeSet!)

<init>(context: Context!, attrs: AttributeSet!, defStyleAttrs: Int)

<init>(context: Context!, attrs: AttributeSet!, defStyleAttrs: Int, defStyleRes: Int)

Public methods
open Unit
addView(child: View!, index: Int, params: LayoutParams!)

open Unit

open Unit

open Boolean

Public constructors

<init>

SpeedBumpView(context: Context!)

<init>

SpeedBumpView(context: Context!, attrs: AttributeSet!)

<init>

SpeedBumpView(context: Context!, attrs: AttributeSet!, defStyleAttrs: Int)

<init>

SpeedBumpView(context: Context!, attrs: AttributeSet!, defStyleAttrs: Int, defStyleRes: Int)

Public methods

addView

open fun addView(child: View!, index: Int, params: LayoutParams!): Unit

onAttachedToWindow

open fun onAttachedToWindow(): Unit

onDetachedFromWindow

open fun onDetachedFromWindow(): Unit

dispatchTouchEvent

open fun dispatchTouchEvent(ev: MotionEvent!): Boolean