GraphicOverlay

class GraphicOverlay(context: Context, attrs: AttributeSet) : View

A view which renders custom graphics overlaid on top of an associated preview (i.e., the camera preview).

Supports scaling and mirroring of the graphics relative the camera's preview properties. The idea is that detection items are expressed in terms of a preview size, but need to be scaled up to the full view size, and also mirrored in the case of the front-facing camera.

Associated Graphic items should use .translateX and .translateY to convert to view coordinate from the preview's coordinate.

Constructors

Link copied to clipboard
fun GraphicOverlay(context: Context, attrs: AttributeSet)

Types

Link copied to clipboard
abstract class Graphic

Base class for a custom graphics object to be rendered within the graphic overlay. Subclass this and implement the Graphic.draw method to define the graphics element. Add instances to the overlay using GraphicOverlay.add.

Functions

Link copied to clipboard
fun add(graphic: GraphicOverlay.Graphic)

Adds a graphic to the overlay.

Link copied to clipboard
open fun addChildrenForAccessibility(p0: ArrayList<View>)
Link copied to clipboard
open fun addExtraDataToAccessibilityNodeInfo(    p0: AccessibilityNodeInfo,     p1: String,     p2: Bundle?)
Link copied to clipboard
open fun addFocusables(p0: ArrayList<View>, p1: Int)
open fun addFocusables(    p0: ArrayList<View>,     p1: Int,     p2: Int)
Link copied to clipboard
open fun addKeyboardNavigationClusters(p0: MutableCollection<View>, p1: Int)
Link copied to clipboard
open fun addOnAttachStateChangeListener(p0: View.OnAttachStateChangeListener)
Link copied to clipboard
open fun addOnLayoutChangeListener(p0: View.OnLayoutChangeListener)
Link copied to clipboard
open fun addOnUnhandledKeyEventListener(p0: View.OnUnhandledKeyEventListener)
Link copied to clipboard
open fun addTouchables(p0: ArrayList<View>)
Link copied to clipboard
open fun animate(): ViewPropertyAnimator
Link copied to clipboard
open fun announceForAccessibility(p0: CharSequence)
Link copied to clipboard
open fun autofill(p0: SparseArray<AutofillValue>)
open fun autofill(p0: AutofillValue)
Link copied to clipboard
open fun bringToFront()
Link copied to clipboard
open fun buildDrawingCache()
open fun buildDrawingCache(p0: Boolean)
Link copied to clipboard
open fun buildLayer()
Link copied to clipboard
open fun callOnClick(): Boolean
Link copied to clipboard
fun cancelDragAndDrop()
Link copied to clipboard
open fun cancelLongPress()
Link copied to clipboard
fun cancelPendingInputEvents()
Link copied to clipboard
open fun canResolveLayoutDirection(): Boolean
Link copied to clipboard
open fun canResolveTextAlignment(): Boolean
Link copied to clipboard
open fun canResolveTextDirection(): Boolean
Link copied to clipboard
open fun canScrollHorizontally(p0: Int): Boolean
Link copied to clipboard
open fun canScrollVertically(p0: Int): Boolean
Link copied to clipboard
open fun checkInputConnectionProxy(p0: View): Boolean
Link copied to clipboard
fun clear()

Removes all graphics from the overlay.

Link copied to clipboard
open fun clearAnimation()
Link copied to clipboard
open fun clearFocus()
Link copied to clipboard
open fun clearViewTranslationCallback()
Link copied to clipboard
open fun computeScroll()
Link copied to clipboard
open fun computeSystemWindowInsets(p0: WindowInsets, p1: Rect): WindowInsets
Link copied to clipboard
open fun createAccessibilityNodeInfo(): AccessibilityNodeInfo
Link copied to clipboard
open fun createContextMenu(p0: ContextMenu)
Link copied to clipboard
open fun destroyDrawingCache()
Link copied to clipboard
open fun dispatchApplyWindowInsets(p0: WindowInsets): WindowInsets
Link copied to clipboard
open fun dispatchCapturedPointerEvent(p0: MotionEvent): Boolean
Link copied to clipboard
open fun dispatchConfigurationChanged(p0: Configuration)
Link copied to clipboard
open fun dispatchCreateViewTranslationRequest(    p0: MutableMap<AutofillId, LongArray>,     p1: IntArray,     p2: TranslationCapability,     p3: MutableList<ViewTranslationRequest>)
Link copied to clipboard
open fun dispatchDisplayHint(p0: Int)
Link copied to clipboard
open fun dispatchDragEvent(p0: DragEvent): Boolean
Link copied to clipboard
open fun dispatchDrawableHotspotChanged(p0: Float, p1: Float)
Link copied to clipboard
open fun dispatchFinishTemporaryDetach()
Link copied to clipboard
open fun dispatchGenericMotionEvent(p0: MotionEvent): Boolean
Link copied to clipboard
open fun dispatchKeyEvent(p0: KeyEvent): Boolean
Link copied to clipboard
open fun dispatchKeyEventPreIme(p0: KeyEvent): Boolean
Link copied to clipboard
open fun dispatchKeyShortcutEvent(p0: KeyEvent): Boolean
Link copied to clipboard
open fun dispatchNestedFling(    p0: Float,     p1: Float,     p2: Boolean): Boolean
Link copied to clipboard
open fun dispatchNestedPreFling(p0: Float, p1: Float): Boolean
open fun dispatchNestedPrePerformAccessibilityAction(p0: Int, p1: Bundle?): Boolean
Link copied to clipboard
open fun dispatchNestedPreScroll(    p0: Int,     p1: Int,     p2: IntArray?,     p3: IntArray?): Boolean
Link copied to clipboard
open fun dispatchNestedScroll(    p0: Int,     p1: Int,     p2: Int,     p3: Int,     p4: IntArray?): Boolean
Link copied to clipboard
open fun dispatchPointerCaptureChanged(p0: Boolean)
Link copied to clipboard
open fun dispatchPopulateAccessibilityEvent(p0: AccessibilityEvent): Boolean
Link copied to clipboard
open fun dispatchProvideAutofillStructure(p0: ViewStructure, p1: Int)
Link copied to clipboard
open fun dispatchProvideStructure(p0: ViewStructure)
Link copied to clipboard
open fun dispatchScrollCaptureSearch(    p0: Rect,     p1: Point,     p2: Consumer<ScrollCaptureTarget>)
Link copied to clipboard
open fun dispatchStartTemporaryDetach()
Link copied to clipboard
open fun dispatchSystemUiVisibilityChanged(p0: Int)
Link copied to clipboard
open fun dispatchTouchEvent(p0: MotionEvent): Boolean
Link copied to clipboard
open fun dispatchTrackballEvent(p0: MotionEvent): Boolean
Link copied to clipboard
open fun dispatchUnhandledMove(p0: View, p1: Int): Boolean
Link copied to clipboard
open fun dispatchWindowFocusChanged(p0: Boolean)
Link copied to clipboard
open fun dispatchWindowInsetsAnimationEnd(p0: WindowInsetsAnimation)
Link copied to clipboard
open fun dispatchWindowInsetsAnimationPrepare(p0: WindowInsetsAnimation)
Link copied to clipboard
Link copied to clipboard
open fun dispatchWindowSystemUiVisiblityChanged(p0: Int)
Link copied to clipboard
open fun dispatchWindowVisibilityChanged(p0: Int)
Link copied to clipboard
open fun draw(p0: Canvas)
Link copied to clipboard
open fun drawableHotspotChanged(p0: Float, p1: Float)
Link copied to clipboard
open fun findFocus(): View
Link copied to clipboard
fun findOnBackInvokedDispatcher(): OnBackInvokedDispatcher?
Link copied to clipboard
fun <T : View> findViewById(p0: Int): T
Link copied to clipboard
open fun findViewsWithText(    p0: ArrayList<View>,     p1: CharSequence,     p2: Int)
Link copied to clipboard
fun <T : View> findViewWithTag(p0: Any): T
Link copied to clipboard
open fun focusSearch(p0: Int): View
Link copied to clipboard
open fun forceHasOverlappingRendering(p0: Boolean)
Link copied to clipboard
open fun forceLayout()
Link copied to clipboard
open fun gatherTransparentRegion(p0: Region?): Boolean
Link copied to clipboard
open fun generateDisplayHash(    p0: String,     p1: Rect?,     p2: Executor,     p3: DisplayHashResultCallback)
Link copied to clipboard
open fun getAccessibilityClassName(): CharSequence
Link copied to clipboard
open fun getAccessibilityDelegate(): View.AccessibilityDelegate
Link copied to clipboard
open fun getAccessibilityLiveRegion(): Int
Link copied to clipboard
open fun getAccessibilityNodeProvider(): AccessibilityNodeProvider
Link copied to clipboard
open fun getAccessibilityPaneTitle(): CharSequence?
Link copied to clipboard
open fun getAccessibilityTraversalAfter(): Int
Link copied to clipboard
open fun getAccessibilityTraversalBefore(): Int
Link copied to clipboard
open fun getAlpha(): Float
Link copied to clipboard
open fun getAnimation(): Animation
Link copied to clipboard
open fun getAnimationMatrix(): Matrix?
Link copied to clipboard
open fun getApplicationWindowToken(): IBinder
Link copied to clipboard
open fun getAttributeResolutionStack(p0: Int): IntArray
Link copied to clipboard
open fun getAttributeSourceResourceMap(): MutableMap<Int, Int>
Link copied to clipboard
open fun getAutofillHints(): Array<String>?
Link copied to clipboard
fun getAutofillId(): AutofillId
Link copied to clipboard
open fun getAutofillType(): Int
Link copied to clipboard
open fun getAutofillValue(): AutofillValue?
Link copied to clipboard
open fun getBackground(): Drawable
Link copied to clipboard
open fun getBackgroundTintBlendMode(): BlendMode?
Link copied to clipboard
open fun getBackgroundTintList(): ColorStateList?
Link copied to clipboard
open fun getBackgroundTintMode(): PorterDuff.Mode?
Link copied to clipboard
open fun getBaseline(): Int
Link copied to clipboard
fun getBottom(): Int
Link copied to clipboard
open fun getCameraDistance(): Float
Link copied to clipboard
open fun getClipBounds(): Rect
open fun getClipBounds(p0: Rect): Boolean
Link copied to clipboard
fun getClipToOutline(): Boolean
Link copied to clipboard
fun getContentCaptureSession(): ContentCaptureSession?
Link copied to clipboard
open fun getContentDescription(): CharSequence
Link copied to clipboard
fun getContext(): Context
Link copied to clipboard
fun getDefaultFocusHighlightEnabled(): Boolean
Link copied to clipboard
open fun getDisplay(): Display
Link copied to clipboard
fun getDrawableState(): IntArray
Link copied to clipboard
open fun getDrawingCache(): Bitmap
open fun getDrawingCache(p0: Boolean): Bitmap
Link copied to clipboard
open fun getDrawingCacheBackgroundColor(): Int
Link copied to clipboard
open fun getDrawingCacheQuality(): Int
Link copied to clipboard
open fun getDrawingRect(p0: Rect)
Link copied to clipboard
open fun getDrawingTime(): Long
Link copied to clipboard
open fun getElevation(): Float
Link copied to clipboard
open fun getExplicitStyle(): Int
Link copied to clipboard
open fun getFilterTouchesWhenObscured(): Boolean
Link copied to clipboard
open fun getFitsSystemWindows(): Boolean
Link copied to clipboard
open fun getFocusable(): Int
Link copied to clipboard
open fun getFocusables(p0: Int): ArrayList<View>
Link copied to clipboard
open fun getFocusedRect(p0: Rect)
Link copied to clipboard
open fun getForeground(): Drawable
Link copied to clipboard
open fun getForegroundGravity(): Int
Link copied to clipboard
open fun getForegroundTintBlendMode(): BlendMode?
Link copied to clipboard
open fun getForegroundTintList(): ColorStateList?
Link copied to clipboard
open fun getForegroundTintMode(): PorterDuff.Mode?
Link copied to clipboard
fun getGlobalVisibleRect(p0: Rect): Boolean
open fun getGlobalVisibleRect(p0: Rect, p1: Point): Boolean
Link copied to clipboard
open fun getHandler(): Handler
Link copied to clipboard
fun getHasOverlappingRendering(): Boolean
Link copied to clipboard
fun getHeight(): Int
Link copied to clipboard
open fun getHitRect(p0: Rect)
Link copied to clipboard
open fun getHorizontalFadingEdgeLength(): Int
Link copied to clipboard
open fun getHorizontalScrollbarThumbDrawable(): Drawable?
Link copied to clipboard
open fun getHorizontalScrollbarTrackDrawable(): Drawable?
Link copied to clipboard
open fun getId(): Int
Link copied to clipboard
open fun getImportantForAccessibility(): Int
Link copied to clipboard
open fun getImportantForAutofill(): Int
Link copied to clipboard
open fun getImportantForContentCapture(): Int
Link copied to clipboard
open fun getKeepScreenOn(): Boolean
Link copied to clipboard
open fun getKeyDispatcherState(): KeyEvent.DispatcherState
Link copied to clipboard
open fun getLabelFor(): Int
Link copied to clipboard
open fun getLayerType(): Int
Link copied to clipboard
open fun getLayoutDirection(): Int
Link copied to clipboard
open fun getLayoutParams(): ViewGroup.LayoutParams
Link copied to clipboard
fun getLeft(): Int
Link copied to clipboard
fun getLocalVisibleRect(p0: Rect): Boolean
Link copied to clipboard
open fun getLocationInSurface(p0: IntArray)
Link copied to clipboard
open fun getLocationInWindow(p0: IntArray)
Link copied to clipboard
open fun getLocationOnScreen(p0: IntArray)
Link copied to clipboard
open fun getMatrix(): Matrix
Link copied to clipboard
fun getMeasuredHeight(): Int
Link copied to clipboard
fun getMeasuredHeightAndState(): Int
Link copied to clipboard
fun getMeasuredState(): Int
Link copied to clipboard
fun getMeasuredWidth(): Int
Link copied to clipboard
fun getMeasuredWidthAndState(): Int
Link copied to clipboard
open fun getMinimumHeight(): Int
Link copied to clipboard
open fun getMinimumWidth(): Int
Link copied to clipboard
open fun getNextClusterForwardId(): Int
Link copied to clipboard
open fun getNextFocusDownId(): Int
Link copied to clipboard
open fun getNextFocusForwardId(): Int
Link copied to clipboard
open fun getNextFocusLeftId(): Int
Link copied to clipboard
open fun getNextFocusRightId(): Int
Link copied to clipboard
open fun getNextFocusUpId(): Int
Link copied to clipboard
open fun getOnFocusChangeListener(): View.OnFocusChangeListener
Link copied to clipboard
open fun getOutlineAmbientShadowColor(): Int
Link copied to clipboard
open fun getOutlineProvider(): ViewOutlineProvider
Link copied to clipboard
open fun getOutlineSpotShadowColor(): Int
Link copied to clipboard
open fun getOverlay(): ViewOverlay
Link copied to clipboard
open fun getOverScrollMode(): Int
Link copied to clipboard
open fun getPaddingBottom(): Int
Link copied to clipboard
open fun getPaddingEnd(): Int
Link copied to clipboard
open fun getPaddingLeft(): Int
Link copied to clipboard
open fun getPaddingRight(): Int
Link copied to clipboard
open fun getPaddingStart(): Int
Link copied to clipboard
open fun getPaddingTop(): Int
Link copied to clipboard
fun getParent(): ViewParent
Link copied to clipboard
open fun getParentForAccessibility(): ViewParent
Link copied to clipboard
open fun getPivotX(): Float
Link copied to clipboard
open fun getPivotY(): Float
Link copied to clipboard
open fun getPointerIcon(): PointerIcon
Link copied to clipboard
fun getPreferKeepClearRects(): MutableList<Rect>
Link copied to clipboard
open fun getReceiveContentMimeTypes(): Array<String>?
Link copied to clipboard
open fun getResources(): Resources
Link copied to clipboard
fun getRevealOnFocusHint(): Boolean
Link copied to clipboard
fun getRight(): Int
Link copied to clipboard
open fun getRootSurfaceControl(): AttachedSurfaceControl?
Link copied to clipboard
open fun getRootView(): View
Link copied to clipboard
open fun getRootWindowInsets(): WindowInsets
Link copied to clipboard
open fun getRotation(): Float
Link copied to clipboard
open fun getRotationX(): Float
Link copied to clipboard
open fun getRotationY(): Float
Link copied to clipboard
open fun getScaleX(): Float
Link copied to clipboard
open fun getScaleY(): Float
Link copied to clipboard
open fun getScrollBarDefaultDelayBeforeFade(): Int
Link copied to clipboard
open fun getScrollBarFadeDuration(): Int
Link copied to clipboard
open fun getScrollBarSize(): Int
Link copied to clipboard
open fun getScrollBarStyle(): Int
Link copied to clipboard
open fun getScrollCaptureHint(): Int
Link copied to clipboard
open fun getScrollIndicators(): Int
Link copied to clipboard
fun getScrollX(): Int
Link copied to clipboard
fun getScrollY(): Int
Link copied to clipboard
open fun getSolidColor(): Int
Link copied to clipboard
open fun getSourceLayoutResId(): Int
Link copied to clipboard
fun getStateDescription(): CharSequence?
Link copied to clipboard
open fun getStateListAnimator(): StateListAnimator
Link copied to clipboard
open fun getSystemGestureExclusionRects(): MutableList<Rect>
Link copied to clipboard
open fun getSystemUiVisibility(): Int
Link copied to clipboard
open fun getTag(): Any
open fun getTag(p0: Int): Any
Link copied to clipboard
open fun getTextAlignment(): Int
Link copied to clipboard
open fun getTextDirection(): Int
Link copied to clipboard
open fun getTooltipText(): CharSequence?
Link copied to clipboard
fun getTop(): Int
Link copied to clipboard
open fun getTouchables(): ArrayList<View>
Link copied to clipboard
open fun getTouchDelegate(): TouchDelegate
Link copied to clipboard
open fun getTransitionAlpha(): Float
Link copied to clipboard
open fun getTransitionName(): String
Link copied to clipboard
open fun getTranslationX(): Float
Link copied to clipboard
open fun getTranslationY(): Float
Link copied to clipboard
open fun getTranslationZ(): Float
Link copied to clipboard
open fun getUniqueDrawingId(): Long
Link copied to clipboard
open fun getVerticalFadingEdgeLength(): Int
Link copied to clipboard
open fun getVerticalScrollbarPosition(): Int
Link copied to clipboard
open fun getVerticalScrollbarThumbDrawable(): Drawable?
Link copied to clipboard
open fun getVerticalScrollbarTrackDrawable(): Drawable?
Link copied to clipboard
open fun getVerticalScrollbarWidth(): Int
Link copied to clipboard
open fun getViewTranslationResponse(): ViewTranslationResponse?
Link copied to clipboard
open fun getViewTreeObserver(): ViewTreeObserver
Link copied to clipboard
open fun getVisibility(): Int
Link copied to clipboard
fun getWidth(): Int
Link copied to clipboard
open fun getWindowId(): WindowId
Link copied to clipboard
open fun getWindowInsetsController(): WindowInsetsController?
Link copied to clipboard
open fun getWindowSystemUiVisibility(): Int
Link copied to clipboard
open fun getWindowToken(): IBinder
Link copied to clipboard
open fun getWindowVisibility(): Int
Link copied to clipboard
open fun getWindowVisibleDisplayFrame(p0: Rect)
Link copied to clipboard
open fun getX(): Float
Link copied to clipboard
open fun getY(): Float
Link copied to clipboard
open fun getZ(): Float
Link copied to clipboard
open fun hasExplicitFocusable(): Boolean
Link copied to clipboard
open fun hasFocus(): Boolean
Link copied to clipboard
open fun hasFocusable(): Boolean
Link copied to clipboard
open fun hasNestedScrollingParent(): Boolean
Link copied to clipboard
open fun hasOnClickListeners(): Boolean
Link copied to clipboard
open fun hasOnLongClickListeners(): Boolean
Link copied to clipboard
open fun hasOverlappingRendering(): Boolean
Link copied to clipboard
open fun hasPointerCapture(): Boolean
Link copied to clipboard
open fun hasTransientState(): Boolean
Link copied to clipboard
open fun hasWindowFocus(): Boolean
Link copied to clipboard
open fun invalidate()
open fun invalidate(p0: Rect)
open fun invalidate(    p0: Int,     p1: Int,     p2: Int,     p3: Int)
Link copied to clipboard
open override fun invalidateDrawable(p0: Drawable)
Link copied to clipboard
open fun invalidateOutline()
Link copied to clipboard
open fun isAccessibilityFocused(): Boolean
Link copied to clipboard
open fun isAccessibilityHeading(): Boolean
Link copied to clipboard
open fun isActivated(): Boolean
Link copied to clipboard
open fun isAttachedToWindow(): Boolean
Link copied to clipboard
open fun isAutoHandwritingEnabled(): Boolean
Link copied to clipboard
open fun isClickable(): Boolean
Link copied to clipboard
open fun isContextClickable(): Boolean
Link copied to clipboard
open fun isDirty(): Boolean
Link copied to clipboard
open fun isDrawingCacheEnabled(): Boolean
Link copied to clipboard
open fun isDuplicateParentStateEnabled(): Boolean
Link copied to clipboard
open fun isEnabled(): Boolean
Link copied to clipboard
fun isFocusable(): Boolean
Link copied to clipboard
fun isFocusableInTouchMode(): Boolean
Link copied to clipboard
open fun isFocused(): Boolean
Link copied to clipboard
fun isFocusedByDefault(): Boolean
Link copied to clipboard
open fun isForceDarkAllowed(): Boolean
Link copied to clipboard
open fun isHapticFeedbackEnabled(): Boolean
Link copied to clipboard
open fun isHardwareAccelerated(): Boolean
Link copied to clipboard
open fun isHorizontalFadingEdgeEnabled(): Boolean
Link copied to clipboard
open fun isHorizontalScrollBarEnabled(): Boolean
Link copied to clipboard
open fun isHovered(): Boolean
Link copied to clipboard
open fun isImportantForAccessibility(): Boolean
Link copied to clipboard
fun isImportantForAutofill(): Boolean
Link copied to clipboard
fun isImportantForContentCapture(): Boolean
Link copied to clipboard
open fun isInEditMode(): Boolean
Link copied to clipboard
open fun isInLayout(): Boolean
Link copied to clipboard
open fun isInTouchMode(): Boolean
Link copied to clipboard
fun isKeyboardNavigationCluster(): Boolean
Link copied to clipboard
open fun isLaidOut(): Boolean
Link copied to clipboard
open fun isLayoutDirectionResolved(): Boolean
Link copied to clipboard
open fun isLayoutRequested(): Boolean
Link copied to clipboard
open fun isLongClickable(): Boolean
Link copied to clipboard
open fun isNestedScrollingEnabled(): Boolean
Link copied to clipboard
open fun isOpaque(): Boolean
Link copied to clipboard
open fun isPaddingRelative(): Boolean
Link copied to clipboard
open fun isPivotSet(): Boolean
Link copied to clipboard
fun isPreferKeepClear(): Boolean
Link copied to clipboard
open fun isPressed(): Boolean
Link copied to clipboard
open fun isSaveEnabled(): Boolean
Link copied to clipboard
open fun isSaveFromParentEnabled(): Boolean
Link copied to clipboard
open fun isScreenReaderFocusable(): Boolean
Link copied to clipboard
open fun isScrollbarFadingEnabled(): Boolean
Link copied to clipboard
open fun isScrollContainer(): Boolean
Link copied to clipboard
open fun isSelected(): Boolean
Link copied to clipboard
fun isShowingLayoutBounds(): Boolean
Link copied to clipboard
open fun isShown(): Boolean
Link copied to clipboard
open fun isSoundEffectsEnabled(): Boolean
Link copied to clipboard
fun isTemporarilyDetached(): Boolean
Link copied to clipboard
open fun isTextAlignmentResolved(): Boolean
Link copied to clipboard
open fun isTextDirectionResolved(): Boolean
Link copied to clipboard
open fun isVerticalFadingEdgeEnabled(): Boolean
Link copied to clipboard
open fun isVerticalScrollBarEnabled(): Boolean
Link copied to clipboard
open fun isVisibleToUserForAutofill(p0: Int): Boolean
Link copied to clipboard
open fun jumpDrawablesToCurrentState()
Link copied to clipboard
open fun keyboardNavigationClusterSearch(p0: View, p1: Int): View
Link copied to clipboard
open fun layout(    p0: Int,     p1: Int,     p2: Int,     p3: Int)
Link copied to clipboard
fun measure(p0: Int, p1: Int)
Link copied to clipboard
open fun offsetLeftAndRight(p0: Int)
Link copied to clipboard
open fun offsetTopAndBottom(p0: Int)
Link copied to clipboard
open fun onApplyWindowInsets(p0: WindowInsets): WindowInsets
Link copied to clipboard
open fun onCancelPendingInputEvents()
Link copied to clipboard
open fun onCapturedPointerEvent(p0: MotionEvent): Boolean
Link copied to clipboard
open fun onCheckIsTextEditor(): Boolean
Link copied to clipboard
open fun onCreateInputConnection(p0: EditorInfo): InputConnection
Link copied to clipboard
open fun onCreateViewTranslationRequest(p0: IntArray, p1: Consumer<ViewTranslationRequest>)
Link copied to clipboard
open fun onCreateVirtualViewTranslationRequests(    p0: LongArray,     p1: IntArray,     p2: Consumer<ViewTranslationRequest>)
Link copied to clipboard
open fun onDragEvent(p0: DragEvent): Boolean
Link copied to clipboard
open fun onDrawForeground(p0: Canvas)
Link copied to clipboard
open fun onFilterTouchEventForSecurity(p0: MotionEvent): Boolean
Link copied to clipboard
open fun onFinishTemporaryDetach()
Link copied to clipboard
open fun onGenericMotionEvent(p0: MotionEvent): Boolean
Link copied to clipboard
open fun onHoverChanged(p0: Boolean)
Link copied to clipboard
open fun onHoverEvent(p0: MotionEvent): Boolean
Link copied to clipboard
open fun onInitializeAccessibilityEvent(p0: AccessibilityEvent)
Link copied to clipboard
open fun onInitializeAccessibilityNodeInfo(p0: AccessibilityNodeInfo)
Link copied to clipboard
open override fun onKeyDown(p0: Int, p1: KeyEvent): Boolean
Link copied to clipboard
open override fun onKeyLongPress(p0: Int, p1: KeyEvent): Boolean
Link copied to clipboard
open override fun onKeyMultiple(    p0: Int,     p1: Int,     p2: KeyEvent): Boolean
Link copied to clipboard
open fun onKeyPreIme(p0: Int, p1: KeyEvent): Boolean
Link copied to clipboard
open fun onKeyShortcut(p0: Int, p1: KeyEvent): Boolean
Link copied to clipboard
open override fun onKeyUp(p0: Int, p1: KeyEvent): Boolean
Link copied to clipboard
open fun onPointerCaptureChange(p0: Boolean)
Link copied to clipboard
open fun onPopulateAccessibilityEvent(p0: AccessibilityEvent)
Link copied to clipboard
open fun onProvideAutofillStructure(p0: ViewStructure, p1: Int)
Link copied to clipboard
open fun onProvideAutofillVirtualStructure(p0: ViewStructure, p1: Int)
Link copied to clipboard
open fun onProvideContentCaptureStructure(p0: ViewStructure, p1: Int)
Link copied to clipboard
open fun onProvideStructure(p0: ViewStructure)
Link copied to clipboard
open fun onProvideVirtualStructure(p0: ViewStructure)
Link copied to clipboard
open fun onReceiveContent(p0: ContentInfo): ContentInfo?
Link copied to clipboard
open fun onResolvePointerIcon(p0: MotionEvent, p1: Int): PointerIcon
Link copied to clipboard
open fun onRtlPropertiesChanged(p0: Int)
Link copied to clipboard
open fun onScreenStateChanged(p0: Int)
Link copied to clipboard
open fun onScrollCaptureSearch(    p0: Rect,     p1: Point,     p2: Consumer<ScrollCaptureTarget>)
Link copied to clipboard
open fun onStartTemporaryDetach()
Link copied to clipboard
open fun onTouchEvent(p0: MotionEvent): Boolean
Link copied to clipboard
open fun onTrackballEvent(p0: MotionEvent): Boolean
Link copied to clipboard
open fun onViewTranslationResponse(p0: ViewTranslationResponse)
Link copied to clipboard
Link copied to clipboard
open fun onVisibilityAggregated(p0: Boolean)
Link copied to clipboard
open fun onWindowFocusChanged(p0: Boolean)
Link copied to clipboard
open fun onWindowSystemUiVisibilityChanged(p0: Int)
Link copied to clipboard
open fun performAccessibilityAction(p0: Int, p1: Bundle?): Boolean
Link copied to clipboard
open fun performClick(): Boolean
Link copied to clipboard
open fun performContextClick(): Boolean
open fun performContextClick(p0: Float, p1: Float): Boolean
Link copied to clipboard
open fun performHapticFeedback(p0: Int): Boolean
open fun performHapticFeedback(p0: Int, p1: Int): Boolean
Link copied to clipboard
open fun performLongClick(): Boolean
open fun performLongClick(p0: Float, p1: Float): Boolean
Link copied to clipboard
open fun performReceiveContent(p0: ContentInfo): ContentInfo?
Link copied to clipboard
open fun playSoundEffect(p0: Int)
Link copied to clipboard
open fun post(p0: Runnable): Boolean
Link copied to clipboard
open fun postDelayed(p0: Runnable, p1: Long): Boolean
Link copied to clipboard
open fun postInvalidate()
open fun postInvalidate(    p0: Int,     p1: Int,     p2: Int,     p3: Int)
Link copied to clipboard
open fun postInvalidateDelayed(p0: Long)
open fun postInvalidateDelayed(    p0: Long,     p1: Int,     p2: Int,     p3: Int,     p4: Int)
Link copied to clipboard
open fun postInvalidateOnAnimation()
open fun postInvalidateOnAnimation(    p0: Int,     p1: Int,     p2: Int,     p3: Int)
Link copied to clipboard
open fun postOnAnimation(p0: Runnable)
Link copied to clipboard
open fun postOnAnimationDelayed(p0: Runnable, p1: Long)
Link copied to clipboard
open fun refreshDrawableState()
Link copied to clipboard
open fun releasePointerCapture()
Link copied to clipboard
open fun removeCallbacks(p0: Runnable): Boolean
Link copied to clipboard
Link copied to clipboard
open fun removeOnLayoutChangeListener(p0: View.OnLayoutChangeListener)
Link copied to clipboard
Link copied to clipboard
open fun requestApplyInsets()
Link copied to clipboard
open fun requestFitSystemWindows()
Link copied to clipboard
fun requestFocus(): Boolean
fun requestFocus(p0: Int): Boolean
open fun requestFocus(p0: Int, p1: Rect): Boolean
Link copied to clipboard
fun requestFocusFromTouch(): Boolean
Link copied to clipboard
open fun requestLayout()
Link copied to clipboard
open fun requestPointerCapture()
Link copied to clipboard
open fun requestRectangleOnScreen(p0: Rect): Boolean
open fun requestRectangleOnScreen(p0: Rect, p1: Boolean): Boolean
Link copied to clipboard
fun requestUnbufferedDispatch(p0: MotionEvent)
fun requestUnbufferedDispatch(p0: Int)
Link copied to clipboard
fun <T : View> requireViewById(p0: Int): T
Link copied to clipboard
open fun resetPivot()
Link copied to clipboard
open fun restoreDefaultFocus(): Boolean
Link copied to clipboard
open fun restoreHierarchyState(p0: SparseArray<Parcelable>)
Link copied to clipboard
fun saveAttributeDataForStyleable(    p0: Context,     p1: IntArray,     p2: AttributeSet?,     p3: TypedArray,     p4: Int,     p5: Int)
Link copied to clipboard
open fun saveHierarchyState(p0: SparseArray<Parcelable>)
Link copied to clipboard
open override fun scheduleDrawable(    p0: Drawable,     p1: Runnable,     p2: Long)
Link copied to clipboard
open fun scrollBy(p0: Int, p1: Int)
Link copied to clipboard
open fun scrollTo(p0: Int, p1: Int)
Link copied to clipboard
open override fun sendAccessibilityEvent(p0: Int)
Link copied to clipboard
open override fun sendAccessibilityEventUnchecked(p0: AccessibilityEvent)
Link copied to clipboard
open fun setAccessibilityDelegate(p0: View.AccessibilityDelegate?)
Link copied to clipboard
open fun setAccessibilityHeading(p0: Boolean)
Link copied to clipboard
open fun setAccessibilityLiveRegion(p0: Int)
Link copied to clipboard
open fun setAccessibilityPaneTitle(p0: CharSequence?)
Link copied to clipboard
open fun setAccessibilityTraversalAfter(p0: Int)
Link copied to clipboard
open fun setAccessibilityTraversalBefore(p0: Int)
Link copied to clipboard
open fun setActivated(p0: Boolean)
Link copied to clipboard
open fun setAllowClickWhenDisabled(p0: Boolean)
Link copied to clipboard
open fun setAlpha(p0: Float)
Link copied to clipboard
open fun setAnimation(p0: Animation)
Link copied to clipboard
open fun setAnimationMatrix(p0: Matrix?)
Link copied to clipboard
open fun setAutofillHints(vararg p0: String)
Link copied to clipboard
open fun setAutofillId(p0: AutofillId?)
Link copied to clipboard
open fun setAutoHandwritingEnabled(p0: Boolean)
Link copied to clipboard
open fun setBackground(p0: Drawable)
Link copied to clipboard
open fun setBackgroundColor(p0: Int)
Link copied to clipboard
open fun setBackgroundDrawable(p0: Drawable)
Link copied to clipboard
open fun setBackgroundResource(p0: Int)
Link copied to clipboard
open fun setBackgroundTintBlendMode(p0: BlendMode?)
Link copied to clipboard
open fun setBackgroundTintList(p0: ColorStateList?)
Link copied to clipboard
open fun setBackgroundTintMode(p0: PorterDuff.Mode?)
Link copied to clipboard
fun setBottom(p0: Int)
Link copied to clipboard
open fun setCameraDistance(p0: Float)
Link copied to clipboard
fun setCameraInfo(cameraSource: CameraSource)

Sets the camera attributes for size and facing direction, which informs how to transform image coordinates later.

Link copied to clipboard
open fun setClickable(p0: Boolean)
Link copied to clipboard
open fun setClipBounds(p0: Rect)
Link copied to clipboard
open fun setClipToOutline(p0: Boolean)
Link copied to clipboard
open fun setContentCaptureSession(p0: ContentCaptureSession?)
Link copied to clipboard
open fun setContentDescription(p0: CharSequence)
Link copied to clipboard
open fun setContextClickable(p0: Boolean)
Link copied to clipboard
open fun setDefaultFocusHighlightEnabled(p0: Boolean)
Link copied to clipboard
open fun setDrawingCacheBackgroundColor(p0: Int)
Link copied to clipboard
open fun setDrawingCacheEnabled(p0: Boolean)
Link copied to clipboard
open fun setDrawingCacheQuality(p0: Int)
Link copied to clipboard
open fun setDuplicateParentStateEnabled(p0: Boolean)
Link copied to clipboard
open fun setElevation(p0: Float)
Link copied to clipboard
open fun setEnabled(p0: Boolean)
Link copied to clipboard
open fun setFadingEdgeLength(p0: Int)
Link copied to clipboard
open fun setFilterTouchesWhenObscured(p0: Boolean)
Link copied to clipboard
open fun setFitsSystemWindows(p0: Boolean)
Link copied to clipboard
open fun setFocusable(p0: Boolean)
open fun setFocusable(p0: Int)
Link copied to clipboard
open fun setFocusableInTouchMode(p0: Boolean)
Link copied to clipboard
open fun setFocusedByDefault(p0: Boolean)
Link copied to clipboard
open fun setForceDarkAllowed(p0: Boolean)
Link copied to clipboard
open fun setForeground(p0: Drawable)
Link copied to clipboard
open fun setForegroundGravity(p0: Int)
Link copied to clipboard
open fun setForegroundTintBlendMode(p0: BlendMode?)
Link copied to clipboard
open fun setForegroundTintList(p0: ColorStateList?)
Link copied to clipboard
open fun setForegroundTintMode(p0: PorterDuff.Mode?)
Link copied to clipboard
open fun setHapticFeedbackEnabled(p0: Boolean)
Link copied to clipboard
open fun setHasTransientState(p0: Boolean)
Link copied to clipboard
open fun setHorizontalFadingEdgeEnabled(p0: Boolean)
Link copied to clipboard
open fun setHorizontalScrollBarEnabled(p0: Boolean)
Link copied to clipboard
open fun setHorizontalScrollbarThumbDrawable(p0: Drawable?)
Link copied to clipboard
open fun setHorizontalScrollbarTrackDrawable(p0: Drawable?)
Link copied to clipboard
open fun setHovered(p0: Boolean)
Link copied to clipboard
open fun setId(p0: Int)
Link copied to clipboard
open fun setImportantForAccessibility(p0: Int)
Link copied to clipboard
open fun setImportantForAutofill(p0: Int)
Link copied to clipboard
open fun setImportantForContentCapture(p0: Int)
Link copied to clipboard
open fun setKeepScreenOn(p0: Boolean)
Link copied to clipboard
open fun setKeyboardNavigationCluster(p0: Boolean)
Link copied to clipboard
open fun setLabelFor(p0: Int)
Link copied to clipboard
open fun setLayerPaint(p0: Paint?)
Link copied to clipboard
open fun setLayerType(p0: Int, p1: Paint?)
Link copied to clipboard
open fun setLayoutDirection(p0: Int)
Link copied to clipboard
open fun setLayoutParams(p0: ViewGroup.LayoutParams)
Link copied to clipboard
fun setLeft(p0: Int)
Link copied to clipboard
fun setLeftTopRightBottom(    p0: Int,     p1: Int,     p2: Int,     p3: Int)
Link copied to clipboard
open fun setLongClickable(p0: Boolean)
Link copied to clipboard
open fun setMinimumHeight(p0: Int)
Link copied to clipboard
open fun setMinimumWidth(p0: Int)
Link copied to clipboard
open fun setNestedScrollingEnabled(p0: Boolean)
Link copied to clipboard
open fun setNextClusterForwardId(p0: Int)
Link copied to clipboard
open fun setNextFocusDownId(p0: Int)
Link copied to clipboard
open fun setNextFocusForwardId(p0: Int)
Link copied to clipboard
open fun setNextFocusLeftId(p0: Int)
Link copied to clipboard
open fun setNextFocusRightId(p0: Int)
Link copied to clipboard
open fun setNextFocusUpId(p0: Int)
Link copied to clipboard
open fun setOnApplyWindowInsetsListener(p0: View.OnApplyWindowInsetsListener)
Link copied to clipboard
open fun setOnCapturedPointerListener(p0: View.OnCapturedPointerListener)
Link copied to clipboard
open fun setOnClickListener(p0: View.OnClickListener?)
Link copied to clipboard
open fun setOnContextClickListener(p0: View.OnContextClickListener?)
Link copied to clipboard
open fun setOnCreateContextMenuListener(p0: View.OnCreateContextMenuListener)
Link copied to clipboard
open fun setOnDragListener(p0: View.OnDragListener)
Link copied to clipboard
open fun setOnFocusChangeListener(p0: View.OnFocusChangeListener)
Link copied to clipboard
open fun setOnGenericMotionListener(p0: View.OnGenericMotionListener)
Link copied to clipboard
open fun setOnHoverListener(p0: View.OnHoverListener)
Link copied to clipboard
open fun setOnKeyListener(p0: View.OnKeyListener)
Link copied to clipboard
open fun setOnLongClickListener(p0: View.OnLongClickListener?)
Link copied to clipboard
open fun setOnReceiveContentListener(p0: Array<String>?, p1: OnReceiveContentListener?)
Link copied to clipboard
open fun setOnScrollChangeListener(p0: View.OnScrollChangeListener)
Link copied to clipboard
Link copied to clipboard
open fun setOnTouchListener(p0: View.OnTouchListener)
Link copied to clipboard
open fun setOutlineAmbientShadowColor(p0: Int)
Link copied to clipboard
open fun setOutlineProvider(p0: ViewOutlineProvider)
Link copied to clipboard
open fun setOutlineSpotShadowColor(p0: Int)
Link copied to clipboard
open fun setOverScrollMode(p0: Int)
Link copied to clipboard
open fun setPadding(    p0: Int,     p1: Int,     p2: Int,     p3: Int)
Link copied to clipboard
open fun setPaddingRelative(    p0: Int,     p1: Int,     p2: Int,     p3: Int)
Link copied to clipboard
open fun setPivotX(p0: Float)
Link copied to clipboard
open fun setPivotY(p0: Float)
Link copied to clipboard
open fun setPointerIcon(p0: PointerIcon)
Link copied to clipboard
fun setPreferKeepClear(p0: Boolean)
Link copied to clipboard
fun setPreferKeepClearRects(p0: MutableList<Rect>)
Link copied to clipboard
open fun setPressed(p0: Boolean)
Link copied to clipboard
open fun setRenderEffect(p0: RenderEffect?)
Link copied to clipboard
fun setRevealOnFocusHint(p0: Boolean)
Link copied to clipboard
fun setRight(p0: Int)
Link copied to clipboard
open fun setRotation(p0: Float)
Link copied to clipboard
open fun setRotationX(p0: Float)
Link copied to clipboard
open fun setRotationY(p0: Float)
Link copied to clipboard
open fun setSaveEnabled(p0: Boolean)
Link copied to clipboard
open fun setSaveFromParentEnabled(p0: Boolean)
Link copied to clipboard
open fun setScaleX(p0: Float)
Link copied to clipboard
open fun setScaleY(p0: Float)
Link copied to clipboard
open fun setScreenReaderFocusable(p0: Boolean)
Link copied to clipboard
open fun setScrollBarDefaultDelayBeforeFade(p0: Int)
Link copied to clipboard
open fun setScrollBarFadeDuration(p0: Int)
Link copied to clipboard
open fun setScrollbarFadingEnabled(p0: Boolean)
Link copied to clipboard
open fun setScrollBarSize(p0: Int)
Link copied to clipboard
open fun setScrollBarStyle(p0: Int)
Link copied to clipboard
fun setScrollCaptureCallback(p0: ScrollCaptureCallback?)
Link copied to clipboard
open fun setScrollCaptureHint(p0: Int)
Link copied to clipboard
open fun setScrollContainer(p0: Boolean)
Link copied to clipboard
open fun setScrollIndicators(p0: Int)
open fun setScrollIndicators(p0: Int, p1: Int)
Link copied to clipboard
open fun setScrollX(p0: Int)
Link copied to clipboard
open fun setScrollY(p0: Int)
Link copied to clipboard
open fun setSelected(p0: Boolean)
Link copied to clipboard
open fun setSoundEffectsEnabled(p0: Boolean)
Link copied to clipboard
open fun setStateDescription(p0: CharSequence?)
Link copied to clipboard
open fun setStateListAnimator(p0: StateListAnimator)
Link copied to clipboard
open fun setSystemGestureExclusionRects(p0: MutableList<Rect>)
Link copied to clipboard
open fun setSystemUiVisibility(p0: Int)
Link copied to clipboard
open fun setTag(p0: Any)
open fun setTag(p0: Int, p1: Any)
Link copied to clipboard
open fun setTextAlignment(p0: Int)
Link copied to clipboard
open fun setTextDirection(p0: Int)
Link copied to clipboard
open fun setTooltipText(p0: CharSequence?)
Link copied to clipboard
fun setTop(p0: Int)
Link copied to clipboard
open fun setTouchDelegate(p0: TouchDelegate)
Link copied to clipboard
open fun setTransitionAlpha(p0: Float)
Link copied to clipboard
fun setTransitionName(p0: String)
Link copied to clipboard
open fun setTransitionVisibility(p0: Int)
Link copied to clipboard
open fun setTranslationX(p0: Float)
Link copied to clipboard
open fun setTranslationY(p0: Float)
Link copied to clipboard
open fun setTranslationZ(p0: Float)
Link copied to clipboard
open fun setVerticalFadingEdgeEnabled(p0: Boolean)
Link copied to clipboard
open fun setVerticalScrollBarEnabled(p0: Boolean)
Link copied to clipboard
open fun setVerticalScrollbarPosition(p0: Int)
Link copied to clipboard
open fun setVerticalScrollbarThumbDrawable(p0: Drawable?)
Link copied to clipboard
open fun setVerticalScrollbarTrackDrawable(p0: Drawable?)
Link copied to clipboard
open fun setViewTranslationCallback(p0: ViewTranslationCallback)
Link copied to clipboard
open fun setVisibility(p0: Int)
Link copied to clipboard
open fun setWillNotCacheDrawing(p0: Boolean)
Link copied to clipboard
open fun setWillNotDraw(p0: Boolean)
Link copied to clipboard
open fun setWindowInsetsAnimationCallback(p0: WindowInsetsAnimation.Callback?)
Link copied to clipboard
open fun setX(p0: Float)
Link copied to clipboard
open fun setY(p0: Float)
Link copied to clipboard
open fun setZ(p0: Float)
Link copied to clipboard
open fun showContextMenu(): Boolean
open fun showContextMenu(p0: Float, p1: Float): Boolean
Link copied to clipboard
open fun startActionMode(p0: ActionMode.Callback): ActionMode
open fun startActionMode(p0: ActionMode.Callback, p1: Int): ActionMode
Link copied to clipboard
open fun startAnimation(p0: Animation)
Link copied to clipboard
fun startDrag(    p0: ClipData,     p1: View.DragShadowBuilder,     p2: Any,     p3: Int): Boolean
Link copied to clipboard
fun startDragAndDrop(    p0: ClipData,     p1: View.DragShadowBuilder,     p2: Any,     p3: Int): Boolean
Link copied to clipboard
open fun startNestedScroll(p0: Int): Boolean
Link copied to clipboard
open fun stopNestedScroll()
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open fun transformMatrixToGlobal(p0: Matrix)
Link copied to clipboard
open fun transformMatrixToLocal(p0: Matrix)
Link copied to clipboard
fun translateRect(rect: Rect): RectF

Adjusts the rect's coordinate from the preview's coordinate system to the view coordinate system.

Link copied to clipboard
fun translateX(x: Float): Float
Link copied to clipboard
fun translateY(y: Float): Float
Link copied to clipboard
open fun unscheduleDrawable(p0: Drawable)
open override fun unscheduleDrawable(p0: Drawable, p1: Runnable)
Link copied to clipboard
fun updateDragShadow(p0: View.DragShadowBuilder)
Link copied to clipboard
open fun willNotCacheDrawing(): Boolean
Link copied to clipboard
open fun willNotDraw(): Boolean