# ViewCompat

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/view/ViewCompat.java+class:androidx.core.view.ViewCompat) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

*** ** * ** ***


```
class ViewCompat
```

<br />

*** ** * ** ***

Helper for accessing features in `https://developer.android.com/reference/android/view/View.html`.

## Summary

| ### Nested types |
|---|
| `interface https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat.OnUnhandledKeyEventListenerCompat` Interface definition for a callback to be invoked when a hardware key event hasn't been handled by the view hierarchy. |

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_ASSERTIVE() = 2` Live region mode specifying that accessibility services should interrupt ongoing speech to immediately announce changes to this view. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_NONE() = 0` Live region mode specifying that accessibility services should not automatically announce changes to this view. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_POLITE() = 1` Live region mode specifying that accessibility services should announce changes to this view. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_AUTO() = 0` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_ACCESSIBILITY_AUTO` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO() = 2` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_ACCESSIBILITY_NO` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS() = 4` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_YES() = 1` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_ACCESSIBILITY_YES` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_AUTO() = 0` Automatically determine whether a view is important for content capture. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_NO() = 2` The view is not important for content capture, but its children (if any) will be traversed. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS() = 8` The view is not important for content capture, and its children (if any) will not be traversed. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_YES() = 1` The view is important for content capture, and its children (if any) will be traversed. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS() = 4` The view is important for content capture, but its children (if any) will not be traversed. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#LAYER_TYPE_HARDWARE() = 2` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_HARDWARE` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#LAYER_TYPE_NONE() = 0` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#LAYER_TYPE_SOFTWARE() = 1` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_SOFTWARE` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#LAYOUT_DIRECTION_INHERIT() = 2` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#LAYOUT_DIRECTION_INHERIT` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#LAYOUT_DIRECTION_LOCALE() = 3` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#LAYOUT_DIRECTION_LOCALE` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#LAYOUT_DIRECTION_LTR() = 0` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#LAYOUT_DIRECTION_LTR` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#LAYOUT_DIRECTION_RTL() = 1` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#LAYOUT_DIRECTION_RTL` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#MEASURED_HEIGHT_STATE_SHIFT() = 16` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#MEASURED_HEIGHT_STATE_SHIFT` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#MEASURED_SIZE_MASK() = 16777215` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#MEASURED_SIZE_MASK` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#MEASURED_STATE_MASK() = -16777216` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#MEASURED_STATE_MASK` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#MEASURED_STATE_TOO_SMALL() = 16777216` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#MEASURED_STATE_TOO_SMALL` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#OVER_SCROLL_ALWAYS() = 0` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#OVER_SCROLL_ALWAYS` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#OVER_SCROLL_IF_CONTENT_SCROLLS() = 1` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#OVER_SCROLL_IF_CONTENT_SCROLLS` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#OVER_SCROLL_NEVER() = 2` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#OVER_SCROLL_NEVER` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#SCROLL_AXIS_HORIZONTAL() = 1` Indicates scrolling along the horizontal axis. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#SCROLL_AXIS_NONE() = 0` Indicates no axis of view scrolling. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#SCROLL_AXIS_VERTICAL() = 2` Indicates scrolling along the vertical axis. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#SCROLL_INDICATOR_BOTTOM() = 2` Scroll indicator direction for the bottom edge of the view. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#SCROLL_INDICATOR_END() = 32` Scroll indicator direction for the ending edge of the view. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#SCROLL_INDICATOR_LEFT() = 4` Scroll indicator direction for the left edge of the view. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#SCROLL_INDICATOR_RIGHT() = 8` Scroll indicator direction for the right edge of the view. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#SCROLL_INDICATOR_START() = 16` Scroll indicator direction for the starting edge of the view. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#SCROLL_INDICATOR_TOP() = 1` Scroll indicator direction for the top edge of the view. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#TYPE_NON_TOUCH() = 1` Indicates that the input type for the gesture is caused by something which is not a user touching a screen. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#TYPE_TOUCH() = 0` Indicates that the input type for the gesture is from a user touching the screen. |

| ### Protected constructors |
|---|
| `[ViewCompat](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#ViewCompat())()` **This function is deprecated.** This is a utility class and it shouldn't be instantiated. <br /> |

| ### Public functions |
|---|---|
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#addAccessibilityAction(android.view.View,java.lang.CharSequence,androidx.core.view.accessibility.AccessibilityViewCommand)( view: https://developer.android.com/reference/android/view/View.html, label: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html, command: https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityViewCommand )` Adds an accessibility action that can be performed on a node associated with a view. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#addKeyboardNavigationClusters(android.view.View,java.util.Collection<android.view.View>,int)( view: https://developer.android.com/reference/android/view/View.html, views: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-collection/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-collection/index.html<https://developer.android.com/reference/android/view/View.html!>, direction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` Adds any keyboard navigation cluster roots that are descendants of `view` ( including `view` if it is a cluster root itself) to `views`. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#addOnUnhandledKeyEventListener(android.view.View,androidx.core.view.ViewCompat.OnUnhandledKeyEventListenerCompat)( view: https://developer.android.com/reference/android/view/View.html, listener: https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat.OnUnhandledKeyEventListenerCompat )` Adds a listener which will receive unhandled `https://developer.android.com/reference/android/view/KeyEvent.html`s. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#addOverlayView(android.view.ViewGroup,android.view.View)(overlayHost: https://developer.android.com/reference/android/view/ViewGroup.html, overlay: https://developer.android.com/reference/android/view/View.html)` Convenience method to add `overlay` to `overlayHost`'s `https://developer.android.com/reference/android/view/View.html#getOverlay()` and assign the `https://developer.android.com/reference/kotlin/androidx/core/viewtree/ViewTree#setViewTreeDisjointParent(android.view.View,android.view.ViewParent)` in the overlay hierarchy. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/view/ViewPropertyAnimatorCompat` | `[animate](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#animate(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#animate()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.canScrollHorizontally(direction)") [canScrollHorizontally](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#canScrollHorizontally(android.view.View,int))(view: https://developer.android.com/reference/android/view/View.html!, direction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#canScrollHorizontally(int)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.canScrollVertically(direction)") [canScrollVertically](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#canScrollVertically(android.view.View,int))(view: https://developer.android.com/reference/android/view/View.html!, direction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#canScrollVertically(int)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#cancelDragAndDrop(android.view.View)(v: https://developer.android.com/reference/android/view/View.html)` Cancel the drag and drop operation. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[combineMeasuredStates](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#combineMeasuredStates(int,int))(curState: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, newState: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#combineMeasuredStates(int, int)` directly. <br /> |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsCompat` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#computeSystemWindowInsets(android.view.View,androidx.core.view.WindowInsetsCompat,android.graphics.Rect)( view: https://developer.android.com/reference/android/view/View.html, insets: https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsCompat, outLocalInsets: https://developer.android.com/reference/android/graphics/Rect.html )` Compute insets that should be consumed by this view and the ones that should propagate to those under it. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsCompat` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchApplyWindowInsets(android.view.View,androidx.core.view.WindowInsetsCompat)(view: https://developer.android.com/reference/android/view/View.html, insets: https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsCompat)` Request to apply the given window insets to this view or another view in its subtree. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchFinishTemporaryDetach(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Notify a view that its temporary detach has ended; the view is now reattached. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchNestedFling(android.view.View,float,float,boolean)( view: https://developer.android.com/reference/android/view/View.html, velocityX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, velocityY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, consumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` Dispatch a fling to a nested scrolling parent. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchNestedPreFling(android.view.View,float,float)(view: https://developer.android.com/reference/android/view/View.html, velocityX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, velocityY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Dispatch a fling to a nested scrolling parent before it is processed by this view. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchNestedPreScroll(android.view.View,int,int,int[],int[])( view: https://developer.android.com/reference/android/view/View.html, dx: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, dy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, consumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>?, offsetInWindow: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>? )` Dispatch one step of a nested scroll in progress before this view consumes any portion of it. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchNestedPreScroll(android.view.View,int,int,int[],int[],int)( view: https://developer.android.com/reference/android/view/View.html, dx: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, dy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, consumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>?, offsetInWindow: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>?, type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` Dispatch one step of a nested scroll in progress before this view consumes any portion of it. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchNestedScroll(android.view.View,int,int,int,int,int[])( view: https://developer.android.com/reference/android/view/View.html, dxConsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, dyConsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, dxUnconsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, dyUnconsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, offsetInWindow: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>? )` Dispatch one step of a nested scroll in progress. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchNestedScroll(android.view.View,int,int,int,int,int[],int)( view: https://developer.android.com/reference/android/view/View.html, dxConsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, dyConsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, dxUnconsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, dyUnconsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, offsetInWindow: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>?, type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` Dispatch one step of a nested scroll in progress. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchNestedScroll(android.view.View,int,int,int,int,int[],int,int[])( view: https://developer.android.com/reference/android/view/View.html, dxConsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, dyConsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, dxUnconsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, dyUnconsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, offsetInWindow: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>?, type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, consumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html> )` Dispatch one step of a nested scroll in progress. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchStartTemporaryDetach(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Notify a view that it is being temporarily detached. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#enableAccessibleClickableSpanSupport(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Allow accessibility services to find and activate clickable spans in the application. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[generateViewId](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#generateViewId())()` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#generateViewId()` directly. <br /> |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/view/AccessibilityDelegateCompat?` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getAccessibilityDelegate(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Get the current accessibility delegate. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getAccessibilityLiveRegion()") [getAccessibilityLiveRegion](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getAccessibilityLiveRegion(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#getAccessibilityLiveRegion()` directly. <br /> |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeProviderCompat?` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getAccessibilityNodeProvider(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Gets the provider for managing a virtual view hierarchy rooted at this View and reported to `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`s that explore the window content. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?` | `@https://developer.android.com/reference/kotlin/androidx/annotation/UiThread https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getAccessibilityPaneTitle(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Get the title of the pane for purposes of accessibility. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getAlpha()") [getAlpha](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getAlpha(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#getAlpha()` directly. <br /> |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/view/autofill/AutofillIdCompat?` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getAutofillId(android.view.View)(v: https://developer.android.com/reference/android/view/View.html)` Gets the unique, logical identifier of this view in the activity, for autofill purposes. |
| `java-static https://developer.android.com/reference/android/content/res/ColorStateList.html?` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getBackgroundTintList(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Return the tint applied to the background drawable, if specified. |
| `java-static https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html?` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getBackgroundTintMode(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Return the blending mode used to apply the tint to the background drawable, if specified. |
| `java-static https://developer.android.com/reference/android/graphics/Rect.html?` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getClipBounds()") [getClipBounds](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getClipBounds(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#getClipBounds()` directly. <br /> |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/view/contentcapture/ContentCaptureSessionCompat?` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getContentCaptureSession(android.view.View)(v: https://developer.android.com/reference/android/view/View.html)` Gets the session used to notify content capture events. |
| `java-static https://developer.android.com/reference/android/view/Display.html?` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getDisplay()") [getDisplay](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getDisplay(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#getDisplay()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getElevation(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` The base elevation of this view relative to its parent, in pixels. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getFitsSystemWindows()") [getFitsSystemWindows](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getFitsSystemWindows(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#getFitsSystemWindows()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getImportantForAccessibility()") [getImportantForAccessibility](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getImportantForAccessibility(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#getImportantForAccessibility()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getImportantForAutofill(android.view.View)(v: https://developer.android.com/reference/android/view/View.html)` Gets the mode for determining whether this view is important for autofill. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getImportantForContentCapture(android.view.View)(v: https://developer.android.com/reference/android/view/View.html)` Gets the mode for determining whether this view is important for content capture. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getLabelFor()") [getLabelFor](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getLabelFor(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#getLabelFor()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getLayerType()") [getLayerType](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getLayerType(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#getLayerType()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getLayoutDirection()") [getLayoutDirection](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getLayoutDirection(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#getLayoutDirection()` directly. <br /> |
| `java-static https://developer.android.com/reference/android/graphics/Matrix.html?` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getMatrix()") [getMatrix](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMatrix(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#getMatrix()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getMeasuredHeightAndState()") [getMeasuredHeightAndState](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMeasuredHeightAndState(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#getMeasuredHeightAndState()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getMeasuredState()") [getMeasuredState](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMeasuredState(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#getMeasuredState()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getMeasuredWidthAndState()") [getMeasuredWidthAndState](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMeasuredWidthAndState(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#getMeasuredWidth()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getMinimumHeight()") [getMinimumHeight](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMinimumHeight(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#getMinimumHeight()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getMinimumWidth()") [getMinimumWidth](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMinimumWidth(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#getMinimumWidth()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getNextClusterForwardId(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Gets the ID of the next keyboard navigation cluster root. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>?` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getOnReceiveContentMimeTypes(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Returns the MIME types accepted by the listener configured on the given view via `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setOnReceiveContentListener(android.view.View,java.lang.String[],androidx.core.view.OnReceiveContentListener)`. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getOverScrollMode()") [getOverScrollMode](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getOverScrollMode(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#getOverScrollMode()` directly. <br /> |
| `java-static @https://developer.android.com/reference/kotlin/androidx/annotation/Px https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getPaddingEnd()") [getPaddingEnd](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getPaddingEnd(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#getPaddingEnd()` directly. <br /> |
| `java-static @https://developer.android.com/reference/kotlin/androidx/annotation/Px https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getPaddingStart()") [getPaddingStart](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getPaddingStart(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#getPaddingStart()` directly. <br /> |
| `java-static https://developer.android.com/reference/android/view/ViewParent.html?` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getParentForAccessibility()") [getParentForAccessibility](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getParentForAccessibility(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#getParentForAccessibility()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getPivotX()") [getPivotX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getPivotX(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#getPivotX()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getPivotY()") [getPivotY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getPivotY(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#getPivotY()` directly. <br /> |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsCompat?` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getRootWindowInsets(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Provide original `https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsCompat` that are dispatched to the view hierarchy. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getRotation()") [getRotation](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getRotation(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#getRotation()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getRotationX()") [getRotationX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getRotationX(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#getRotationX()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getRotationY()") [getRotationY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getRotationY(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#getRotationY()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getScaleX()") [getScaleX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getScaleX(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#getScaleX()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getScaleY()") [getScaleY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getScaleY(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#getScaleY()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getScrollIndicators(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Returns a bitmask representing the enabled scroll indicators. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?` | `@https://developer.android.com/reference/kotlin/androidx/annotation/UiThread https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getStateDescription(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Returns the `https://developer.android.com/reference/android/view/View.html`'s state description. |
| `java-static (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/graphics/Rect.html!>` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getSystemGestureExclusionRects(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Retrieve the list of areas within this view's post-layout coordinate space where the system should not intercept touch or other pointing device gestures. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getTransitionName(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Returns the name of the View to be used to identify Views in Transitions. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getTranslationX()") [getTranslationX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getTranslationX(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#getTranslationX()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getTranslationY()") [getTranslationY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getTranslationY(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#getTranslationY()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getTranslationZ(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` The depth location of this view relative to its `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getElevation(android.view.View)`. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsControllerCompat?` | `[getWindowInsetsController](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getWindowInsetsController(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Prefer `https://developer.android.com/reference/kotlin/androidx/core/view/WindowCompat#getInsetsController(android.view.Window,android.view.View)` to explicitly specify the window (such as when the view is in a dialog). <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getWindowSystemUiVisibility()") [getWindowSystemUiVisibility](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getWindowSystemUiVisibility(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** SystemUiVisibility flags are deprecated. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getX()") [getX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getX(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#getX()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.getY()") [getY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getY(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#getY()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getZ(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` The visual z position of this view, in pixels. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#hasAccessibilityDelegate(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Checks whether provided View has an accessibility delegate attached to it. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#hasExplicitFocusable(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Returns true if this view is focusable or if it contains a reachable View for which `https://developer.android.com/reference/android/view/View.html#hasExplicitFocusable()` returns `true`. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#hasNestedScrollingParent(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Returns true if this view has a nested scrolling parent. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#hasNestedScrollingParent(android.view.View,int)(view: https://developer.android.com/reference/android/view/View.html, type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns true if this view has a nested scrolling parent. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.hasOnClickListeners()") [hasOnClickListeners](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#hasOnClickListeners(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#hasOnClickListeners()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.hasOverlappingRendering()") [hasOverlappingRendering](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#hasOverlappingRendering(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#hasOverlappingRendering()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.hasTransientState()") [hasTransientState](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#hasTransientState(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#hasTransientState()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/UiThread https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isAccessibilityHeading(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Gets whether this view is a heading for accessibility purposes. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.isAttachedToWindow()") [isAttachedToWindow](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isAttachedToWindow(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#isAttachedToWindow()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isFocusedByDefault(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Returns whether `view` should receive focus when the focus is restored for the view hierarchy containing it. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isImportantForAccessibility(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Computes whether this view should be exposed for accessibility. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isImportantForAutofill(android.view.View)(v: https://developer.android.com/reference/android/view/View.html)` Hints the Android System whether the `https://developer.android.com/reference/android/app/assist/AssistStructure.ViewNode.html` associated with this view is considered important for autofill purposes. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isImportantForContentCapture(android.view.View)(v: https://developer.android.com/reference/android/view/View.html)` Hints the Android System whether this view is considered important for content capture, based on the value explicitly set by setImportantForContentCapture and heuristics when it's `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_AUTO()`. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.isInLayout()") [isInLayout](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isInLayout(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#isInLayout()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isKeyboardNavigationCluster(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Returns whether `view` is a root of a keyboard navigation cluster. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.isLaidOut()") [isLaidOut](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isLaidOut(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#isLaidOut()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.isLayoutDirectionResolved()") [isLayoutDirectionResolved](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isLayoutDirectionResolved(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#isLayoutDirectionResolved()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isNestedScrollingEnabled(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Returns true if nested scrolling is enabled for this view. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.isOpaque()") [isOpaque](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isOpaque(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#isOpaque()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.isPaddingRelative()") [isPaddingRelative](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isPaddingRelative(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#isPaddingRelative()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/UiThread https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isScreenReaderFocusable(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Returns whether the view should be treated as a focusable unit by screen reader accessibility tools. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.jumpDrawablesToCurrentState()") [jumpDrawablesToCurrentState](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#jumpDrawablesToCurrentState(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#jumpDrawablesToCurrentState()` directly. <br /> |
| `java-static https://developer.android.com/reference/android/view/View.html?` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#keyboardNavigationClusterSearch(android.view.View,android.view.View,int)( view: https://developer.android.com/reference/android/view/View.html, currentCluster: https://developer.android.com/reference/android/view/View.html?, direction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` Find the nearest keyboard navigation cluster in the specified direction. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#offsetLeftAndRight(android.view.View,int)(view: https://developer.android.com/reference/android/view/View.html, offset: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Offset this view's horizontal location by the specified amount of pixels. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#offsetTopAndBottom(android.view.View,int)(view: https://developer.android.com/reference/android/view/View.html, offset: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Offset this view's vertical location by the specified number of pixels. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsCompat` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#onApplyWindowInsets(android.view.View,androidx.core.view.WindowInsetsCompat)(view: https://developer.android.com/reference/android/view/View.html, insets: https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsCompat)` Called when the view should apply `https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsCompat` according to its internal policy. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "v.onInitializeAccessibilityEvent(event)") [onInitializeAccessibilityEvent](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#onInitializeAccessibilityEvent(android.view.View,android.view.accessibility.AccessibilityEvent))(v: https://developer.android.com/reference/android/view/View.html!, event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html!)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#onInitializeAccessibilityEvent(android.view.accessibility.AccessibilityEvent)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "v.onInitializeAccessibilityNodeInfo(info.unwrap())") [onInitializeAccessibilityNodeInfo](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#onInitializeAccessibilityNodeInfo(android.view.View,androidx.core.view.accessibility.AccessibilityNodeInfoCompat))( v: https://developer.android.com/reference/android/view/View.html, info: https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat )` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#onInitializeAccessibilityNodeInfo(android.view.accessibility.AccessibilityNodeInfo)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "v.onPopulateAccessibilityEvent(event)") [onPopulateAccessibilityEvent](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#onPopulateAccessibilityEvent(android.view.View,android.view.accessibility.AccessibilityEvent))(v: https://developer.android.com/reference/android/view/View.html!, event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html!)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#onPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.performAccessibilityAction(action, arguments)") [performAccessibilityAction](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#performAccessibilityAction(android.view.View,int,android.os.Bundle))(view: https://developer.android.com/reference/android/view/View.html, action: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, arguments: https://developer.android.com/reference/android/os/Bundle.html?)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#performAccessibilityAction(int, android.os.Bundle)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#performHapticFeedback(android.view.View,int)(view: https://developer.android.com/reference/android/view/View.html, feedbackConstant: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Perform a haptic feedback to the user for the view. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#performHapticFeedback(android.view.View,int,int)(view: https://developer.android.com/reference/android/view/View.html, feedbackConstant: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Perform a haptic feedback to the user for the view. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/view/ContentInfoCompat?` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#performReceiveContent(android.view.View,androidx.core.view.ContentInfoCompat)(view: https://developer.android.com/reference/android/view/View.html, payload: https://developer.android.com/reference/kotlin/androidx/core/view/ContentInfoCompat)` Receives the given content. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.postInvalidateOnAnimation()") [postInvalidateOnAnimation](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#postInvalidateOnAnimation(android.view.View))(view: https://developer.android.com/reference/android/view/View.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#postInvalidateOnAnimation()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.postInvalidateOnAnimation(left, top, right, bottom)") [postInvalidateOnAnimation](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#postInvalidateOnAnimation(android.view.View,int,int,int,int))( view: https://developer.android.com/reference/android/view/View.html, left: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, top: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, right: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, bottom: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#postInvalidateOnAnimation(int, int, int, int)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.postOnAnimation(action)") [postOnAnimation](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#postOnAnimation(android.view.View,java.lang.Runnable))(view: https://developer.android.com/reference/android/view/View.html, action: https://developer.android.com/reference/java/lang/Runnable.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#postOnAnimation(java.lang.Runnable)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.postOnAnimationDelayed(action, delayMillis)") [postOnAnimationDelayed](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#postOnAnimationDelayed(android.view.View,java.lang.Runnable,long))(view: https://developer.android.com/reference/android/view/View.html, action: https://developer.android.com/reference/java/lang/Runnable.html, delayMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#postOnAnimationDelayed(java.lang.Runnable, long)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#removeAccessibilityAction(android.view.View,int)(view: https://developer.android.com/reference/android/view/View.html, actionId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Removes an accessibility action that can be performed on a node associated with a view. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#removeOnUnhandledKeyEventListener(android.view.View,androidx.core.view.ViewCompat.OnUnhandledKeyEventListenerCompat)( view: https://developer.android.com/reference/android/view/View.html, listener: https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat.OnUnhandledKeyEventListenerCompat )` Removes a listener which will receive unhandled `https://developer.android.com/reference/android/view/KeyEvent.html`s. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#replaceAccessibilityAction(android.view.View,androidx.core.view.accessibility.AccessibilityNodeInfoCompat.AccessibilityActionCompat,java.lang.CharSequence,androidx.core.view.accessibility.AccessibilityViewCommand)( view: https://developer.android.com/reference/android/view/View.html, replacedAction: https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat, label: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?, command: https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityViewCommand? )` Replaces an action. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#requestApplyInsets(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Ask that a new dispatch of `View.onApplyWindowInsets(WindowInsets)` be performed. |
| `java-static T` | `<T : https://developer.android.com/reference/android/view/View.html?> https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#requireViewById(android.view.View,int)(view: https://developer.android.com/reference/android/view/View.html, id: @https://developer.android.com/reference/kotlin/androidx/annotation/IdRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Finds the first descendant view with the given ID, the view itself if the ID matches `https://developer.android.com/reference/android/view/View.html#getId()`, or throws an IllegalArgumentException if the ID is invalid or there is no matching view in the hierarchy. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[resolveSizeAndState](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#resolveSizeAndState(int,int,int))(size: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, measureSpec: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, childMeasuredState: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#resolveSizeAndState(int, int, int)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#restoreDefaultFocus(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Gives focus to the default-focus view in the view hierarchy rooted at `view`. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#saveAttributeDataForStyleable(android.view.View,android.content.Context,int[],android.util.AttributeSet,android.content.res.TypedArray,int,int)( view: https://developer.android.com/reference/android/view/View.html, context: https://developer.android.com/reference/android/content/Context.html, styleable: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>, attrs: https://developer.android.com/reference/android/util/AttributeSet.html?, t: https://developer.android.com/reference/android/content/res/TypedArray.html, defStyleAttr: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, defStyleRes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` Stores debugging information about attributes. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setAccessibilityDelegate(android.view.View,androidx.core.view.AccessibilityDelegateCompat)(v: https://developer.android.com/reference/android/view/View.html, delegate: https://developer.android.com/reference/kotlin/androidx/core/view/AccessibilityDelegateCompat?)` Sets a delegate for implementing accessibility support via composition (as opposed to inheritance). |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/UiThread https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setAccessibilityHeading(android.view.View,boolean)(view: https://developer.android.com/reference/android/view/View.html, isHeading: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Set if view is a heading for a section of content for accessibility purposes. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setAccessibilityLiveRegion(mode)") [setAccessibilityLiveRegion](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setAccessibilityLiveRegion(android.view.View,int))(view: https://developer.android.com/reference/android/view/View.html, mode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#setAccessibilityLiveRegion(int)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/UiThread https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setAccessibilityPaneTitle(android.view.View,java.lang.CharSequence)( view: https://developer.android.com/reference/android/view/View.html, accessibilityPaneTitle: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html? )` Visually distinct portion of a window with window-like semantics are considered panes for accessibility purposes. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setActivated(activated)") [setActivated](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setActivated(android.view.View,boolean))(view: https://developer.android.com/reference/android/view/View.html!, activated: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#setActivated(boolean)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setAlpha(value)") [setAlpha](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setAlpha(android.view.View,float))(view: https://developer.android.com/reference/android/view/View.html!, value: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0, to = 1.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#setAlpha(float)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setAutofillHints(android.view.View,java.lang.String...)(view: https://developer.android.com/reference/android/view/View.html, autofillHints: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>?)` Sets the hints that help an `https://developer.android.com/reference/android/service/autofill/AutofillService.html` determine how to autofill the view with the user's data. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setAutofillId(android.view.View,androidx.core.view.autofill.AutofillIdCompat)(v: https://developer.android.com/reference/android/view/View.html, id: https://developer.android.com/reference/kotlin/androidx/core/view/autofill/AutofillIdCompat?)` Sets the unique, logical identifier of this view in the activity, for autofill purposes. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setBackground(background)") [setBackground](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setBackground(android.view.View,android.graphics.drawable.Drawable))(view: https://developer.android.com/reference/android/view/View.html, background: https://developer.android.com/reference/android/graphics/drawable/Drawable.html?)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#setBackground(android.graphics.drawable.Drawable)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setBackgroundTintList(android.view.View,android.content.res.ColorStateList)(view: https://developer.android.com/reference/android/view/View.html, tintList: https://developer.android.com/reference/android/content/res/ColorStateList.html?)` Applies a tint to the background drawable. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setBackgroundTintMode(android.view.View,android.graphics.PorterDuff.Mode)(view: https://developer.android.com/reference/android/view/View.html, mode: https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html?)` Specifies the blending mode used to apply the tint specified by `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setBackgroundTintList(android.view.View,android.content.res.ColorStateList)` to the background drawable. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setChildrenDrawingOrderEnabled](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setChildrenDrawingOrderEnabled(android.view.ViewGroup,boolean))(viewGroup: https://developer.android.com/reference/android/view/ViewGroup.html!, enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/ViewGroup.html#setChildrenDrawingOrderEnabled(boolean)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setClipBounds(clipBounds)") [setClipBounds](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setClipBounds(android.view.View,android.graphics.Rect))(view: https://developer.android.com/reference/android/view/View.html, clipBounds: https://developer.android.com/reference/android/graphics/Rect.html?)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#setClipBounds(android.graphics.Rect)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setContentCaptureSession(android.view.View,androidx.core.view.contentcapture.ContentCaptureSessionCompat)( v: https://developer.android.com/reference/android/view/View.html, contentCaptureSession: https://developer.android.com/reference/kotlin/androidx/core/view/contentcapture/ContentCaptureSessionCompat? )` Sets the (optional) `https://developer.android.com/reference/android/view/contentcapture/ContentCaptureSession.html` associated with this view. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setElevation(android.view.View,float)(view: https://developer.android.com/reference/android/view/View.html, elevation: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setFitsSystemWindows(fitSystemWindows)") [setFitsSystemWindows](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setFitsSystemWindows(android.view.View,boolean))(view: https://developer.android.com/reference/android/view/View.html!, fitSystemWindows: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#setFitsSystemWindows(boolean)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setFocusedByDefault(android.view.View,boolean)(view: https://developer.android.com/reference/android/view/View.html, isFocusedByDefault: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Sets whether `view` should receive focus when the focus is restored for the view hierarchy containing it. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setHasTransientState(hasTransientState)") [setHasTransientState](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setHasTransientState(android.view.View,boolean))(view: https://developer.android.com/reference/android/view/View.html, hasTransientState: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#setHasTransientState(boolean)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setImportantForAccessibility(mode)") @https://developer.android.com/reference/kotlin/androidx/annotation/UiThread [setImportantForAccessibility](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setImportantForAccessibility(android.view.View,int))(view: https://developer.android.com/reference/android/view/View.html, mode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#setImportantForAccessibility(int)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setImportantForAutofill(android.view.View,int)(v: https://developer.android.com/reference/android/view/View.html, mode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Sets the mode for determining whether this view is considered important for autofill. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setImportantForContentCapture(android.view.View,int)(v: https://developer.android.com/reference/android/view/View.html, mode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Sets the mode for determining whether this view is considered important for content capture. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setKeyboardNavigationCluster(android.view.View,boolean)(view: https://developer.android.com/reference/android/view/View.html, isCluster: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Set whether `view` is a root of a keyboard navigation cluster. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setLabelFor(labeledId)") [setLabelFor](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setLabelFor(android.view.View,int))(view: https://developer.android.com/reference/android/view/View.html, labeledId: @https://developer.android.com/reference/kotlin/androidx/annotation/IdRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#setLabelFor(int)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setLayerPaint(paint)") [setLayerPaint](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setLayerPaint(android.view.View,android.graphics.Paint))(view: https://developer.android.com/reference/android/view/View.html, paint: https://developer.android.com/reference/android/graphics/Paint.html?)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#setLayerPaint(android.graphics.Paint)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setLayerType(layerType, paint)") [setLayerType](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setLayerType(android.view.View,int,android.graphics.Paint))(view: https://developer.android.com/reference/android/view/View.html!, layerType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, paint: https://developer.android.com/reference/android/graphics/Paint.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#setLayerType(int, android.graphics.Paint)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setLayoutDirection(layoutDirection)") [setLayoutDirection](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setLayoutDirection(android.view.View,int))(view: https://developer.android.com/reference/android/view/View.html, layoutDirection: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#setLayoutDirection(int)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setNestedScrollingEnabled(android.view.View,boolean)(view: https://developer.android.com/reference/android/view/View.html, enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Enable or disable nested scrolling for this view. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setNextClusterForwardId(android.view.View,int)(view: https://developer.android.com/reference/android/view/View.html, nextClusterForwardId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Sets the ID of the next keyboard navigation cluster root view. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setOnApplyWindowInsetsListener(android.view.View,androidx.core.view.OnApplyWindowInsetsListener)( view: https://developer.android.com/reference/android/view/View.html, listener: https://developer.android.com/reference/kotlin/androidx/core/view/OnApplyWindowInsetsListener? )` Set an `https://developer.android.com/reference/kotlin/androidx/core/view/OnApplyWindowInsetsListener` to take over the policy for applying window insets to this view. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setOnReceiveContentListener(android.view.View,java.lang.String[],androidx.core.view.OnReceiveContentListener)( view: https://developer.android.com/reference/android/view/View.html, mimeTypes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>?, listener: https://developer.android.com/reference/kotlin/androidx/core/view/OnReceiveContentListener? )` Sets the listener to be used to handle insertion of content into the given view. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setOverScrollMode(overScrollMode)") [setOverScrollMode](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setOverScrollMode(android.view.View,int))(view: https://developer.android.com/reference/android/view/View.html!, overScrollMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#setOverScrollMode(int)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setPaddingRelative(start, top, end, bottom)") [setPaddingRelative](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setPaddingRelative(android.view.View,int,int,int,int))( view: https://developer.android.com/reference/android/view/View.html, start: @https://developer.android.com/reference/kotlin/androidx/annotation/Px https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, top: @https://developer.android.com/reference/kotlin/androidx/annotation/Px https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: @https://developer.android.com/reference/kotlin/androidx/annotation/Px https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, bottom: @https://developer.android.com/reference/kotlin/androidx/annotation/Px https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/View.html#setPaddingRelative(int, int, int, int)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setPivotX(value)") [setPivotX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setPivotX(android.view.View,float))(view: https://developer.android.com/reference/android/view/View.html!, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#setPivotX(float)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setPivotY(value)") [setPivotY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setPivotY(android.view.View,float))(view: https://developer.android.com/reference/android/view/View.html!, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#setPivotX(float)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setPointerIcon(android.view.View,androidx.core.view.PointerIconCompat)(view: https://developer.android.com/reference/android/view/View.html, pointerIcon: https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat?)` Set the pointer icon for the current view. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setRotation(value)") [setRotation](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setRotation(android.view.View,float))(view: https://developer.android.com/reference/android/view/View.html!, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#setRotation(float)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setRotationX(value)") [setRotationX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setRotationX(android.view.View,float))(view: https://developer.android.com/reference/android/view/View.html!, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#setRotationX(float)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setRotationY(value)") [setRotationY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setRotationY(android.view.View,float))(view: https://developer.android.com/reference/android/view/View.html!, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#setRotationY(float)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setSaveFromParentEnabled(enabled)") [setSaveFromParentEnabled](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setSaveFromParentEnabled(android.view.View,boolean))(view: https://developer.android.com/reference/android/view/View.html!, enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#setSaveFromParentEnabled(boolean)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setScaleX(value)") [setScaleX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScaleX(android.view.View,float))(view: https://developer.android.com/reference/android/view/View.html!, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#setScaleX(float)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setScaleY(value)") [setScaleY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScaleY(android.view.View,float))(view: https://developer.android.com/reference/android/view/View.html!, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#setScaleY(float)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/UiThread https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScreenReaderFocusable(android.view.View,boolean)(view: https://developer.android.com/reference/android/view/View.html, screenReaderFocusable: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Sets whether this View should be a focusable element for screen readers and include non-focusable Views from its subtree when providing feedback. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScrollIndicators(android.view.View,int)(view: https://developer.android.com/reference/android/view/View.html, indicators: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Sets the state of all scroll indicators. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScrollIndicators(android.view.View,int,int)(view: https://developer.android.com/reference/android/view/View.html, indicators: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, mask: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Sets the state of the scroll indicators specified by the mask. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/UiThread https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setStateDescription(android.view.View,java.lang.CharSequence)(view: https://developer.android.com/reference/android/view/View.html, stateDescription: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?)` Sets the state description of this node. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setSystemGestureExclusionRects(android.view.View,java.util.List<android.graphics.Rect>)(view: https://developer.android.com/reference/android/view/View.html, rects: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/graphics/Rect.html!>)` Sets a list of areas within this view's post-layout coordinate space where the system should not intercept touch or other pointing device gestures. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setTooltipText(android.view.View,java.lang.CharSequence)(view: https://developer.android.com/reference/android/view/View.html, tooltipText: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?)` Sets the tooltip for the view. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setTransitionName(android.view.View,java.lang.String)(view: https://developer.android.com/reference/android/view/View.html, transitionName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)` Sets the name of the View to be used to identify Views in Transitions. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setTranslationX(value)") [setTranslationX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setTranslationX(android.view.View,float))(view: https://developer.android.com/reference/android/view/View.html!, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#setTranslationX(float)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setTranslationY(value)") [setTranslationY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setTranslationY(android.view.View,float))(view: https://developer.android.com/reference/android/view/View.html!, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#setTranslationY(float)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setTranslationZ(android.view.View,float)(view: https://developer.android.com/reference/android/view/View.html, translationZ: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Sets the depth location of this view relative to its `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getElevation(android.view.View)`. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setWindowInsetsAnimationCallback(android.view.View,androidx.core.view.WindowInsetsAnimationCompat.Callback)( view: https://developer.android.com/reference/android/view/View.html, callback: https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsAnimationCompat.Callback? )` Sets a `https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsAnimationCompat.Callback` to be notified about animations of windows that cause insets. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setX(value)") [setX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setX(android.view.View,float))(view: https://developer.android.com/reference/android/view/View.html!, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#setX(float)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "view.setY(value)") [setY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setY(android.view.View,float))(view: https://developer.android.com/reference/android/view/View.html!, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/View.html#setY(float)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setZ(android.view.View,float)(view: https://developer.android.com/reference/android/view/View.html, z: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Sets the visual z position of this view, in pixels. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#startDragAndDrop(android.view.View,android.content.ClipData,android.view.View.DragShadowBuilder,java.lang.Object,int)( v: https://developer.android.com/reference/android/view/View.html, data: https://developer.android.com/reference/android/content/ClipData.html?, shadowBuilder: https://developer.android.com/reference/android/view/View.DragShadowBuilder.html, myLocalState: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` Start the drag and drop operation. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#startNestedScroll(android.view.View,int)(view: https://developer.android.com/reference/android/view/View.html, axes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Begin a nestable scroll operation along the given axes. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#startNestedScroll(android.view.View,int,int)(view: https://developer.android.com/reference/android/view/View.html, axes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Begin a nestable scroll operation along the given axes. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#stopNestedScroll(android.view.View)(view: https://developer.android.com/reference/android/view/View.html)` Stop a nested scroll in progress. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#stopNestedScroll(android.view.View,int)(view: https://developer.android.com/reference/android/view/View.html, type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Stop a nested scroll in progress. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#transformMatrixToGlobal(android.view.View,android.graphics.Matrix)(view: https://developer.android.com/reference/android/view/View.html, matrix: https://developer.android.com/reference/android/graphics/Matrix.html)` Modifies the input matrix such that it maps on-screen coordinates to view-local coordinates for the provided view. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#updateDragShadow(android.view.View,android.view.View.DragShadowBuilder)(v: https://developer.android.com/reference/android/view/View.html, shadowBuilder: https://developer.android.com/reference/android/view/View.DragShadowBuilder.html)` Update the drag shadow while drag and drop is in progress. |

## Constants

### ACCESSIBILITY_LIVE_REGION_ASSERTIVE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val ACCESSIBILITY_LIVE_REGION_ASSERTIVE = 2: Int
```

Live region mode specifying that accessibility services should interrupt ongoing speech to immediately announce changes to this view.

Use with `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setAccessibilityLiveRegion(android.view.View,int)`.

### ACCESSIBILITY_LIVE_REGION_NONE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val ACCESSIBILITY_LIVE_REGION_NONE = 0: Int
```

Live region mode specifying that accessibility services should not automatically announce changes to this view. This is the default live region mode for most views.

Use with `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setAccessibilityLiveRegion(android.view.View,int)`.

### ACCESSIBILITY_LIVE_REGION_POLITE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val ACCESSIBILITY_LIVE_REGION_POLITE = 1: Int
```

Live region mode specifying that accessibility services should announce changes to this view.

Use with `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setAccessibilityLiveRegion(android.view.View,int)`.

### IMPORTANT_FOR_ACCESSIBILITY_AUTO

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
const val IMPORTANT_FOR_ACCESSIBILITY_AUTO = 0: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_ACCESSIBILITY_AUTO` directly.

Automatically determine whether a view is important for accessibility.

### IMPORTANT_FOR_ACCESSIBILITY_NO

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
const val IMPORTANT_FOR_ACCESSIBILITY_NO = 2: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_ACCESSIBILITY_NO` directly.

The view is not important for accessibility.

### IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
const val IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS = 4: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS` directly.

The view is not important for accessibility, nor are any of its descendant views.

### IMPORTANT_FOR_ACCESSIBILITY_YES

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
const val IMPORTANT_FOR_ACCESSIBILITY_YES = 1: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_ACCESSIBILITY_YES` directly.

The view is important for accessibility.

### IMPORTANT_FOR_CONTENT_CAPTURE_AUTO

Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0)

```
const val IMPORTANT_FOR_CONTENT_CAPTURE_AUTO = 0: Int
```

Automatically determine whether a view is important for content capture.

### IMPORTANT_FOR_CONTENT_CAPTURE_NO

Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0)

```
const val IMPORTANT_FOR_CONTENT_CAPTURE_NO = 2: Int
```

The view is not important for content capture, but its children (if any) will be traversed.

### IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS

Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0)

```
const val IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS = 8: Int
```

The view is not important for content capture, and its children (if any) will not be traversed.

### IMPORTANT_FOR_CONTENT_CAPTURE_YES

Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0)

```
const val IMPORTANT_FOR_CONTENT_CAPTURE_YES = 1: Int
```

The view is important for content capture, and its children (if any) will be traversed.

### IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS

Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0)

```
const val IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS = 4: Int
```

The view is important for content capture, but its children (if any) will not be traversed.

### LAYER_TYPE_HARDWARE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val LAYER_TYPE_HARDWARE = 2: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_HARDWARE` directly.

Indicates that the view has a hardware layer. A hardware layer is backed by a hardware specific texture (generally Frame Buffer Objects or FBO on OpenGL hardware) and causes the view to be rendered using Android's hardware rendering pipeline, but only if hardware acceleration is turned on for the view hierarchy. When hardware acceleration is turned off, hardware layers behave exactly as `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_SOFTWARE`.

A hardware layer is useful to apply a specific color filter and/or blending mode and/or translucency to a view and all its children.

A hardware layer can be used to cache a complex view tree into a texture and reduce the complexity of drawing operations. For instance, when animating a complex view tree with a translation, a hardware layer can be used to render the view tree only once.

A hardware layer can also be used to increase the rendering quality when rotation transformations are applied on a view. It can also be used to prevent potential clipping issues when applying 3D transforms on a view.

### LAYER_TYPE_NONE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val LAYER_TYPE_NONE = 0: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE` directly.

Indicates that the view does not have a layer.

### LAYER_TYPE_SOFTWARE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val LAYER_TYPE_SOFTWARE = 1: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_SOFTWARE` directly.

Indicates that the view has a software layer. A software layer is backed by a bitmap and causes the view to be rendered using Android's software rendering pipeline, even if hardware acceleration is enabled.

Software layers have various usages:

When the application is not using hardware acceleration, a software layer is useful to apply a specific color filter and/or blending mode and/or translucency to a view and all its children.

When the application is using hardware acceleration, a software layer is useful to render drawing primitives not supported by the hardware accelerated pipeline. It can also be used to cache a complex view tree into a texture and reduce the complexity of drawing operations. For instance, when animating a complex view tree with a translation, a software layer can be used to render the view tree only once.

Software layers should be avoided when the affected view tree updates often. Every update will require to re-render the software layer, which can potentially be slow (particularly when hardware acceleration is turned on since the layer will have to be uploaded into a hardware texture after every update.)

### LAYOUT_DIRECTION_INHERIT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
const val LAYOUT_DIRECTION_INHERIT = 2: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#LAYOUT_DIRECTION_INHERIT` directly.

Horizontal layout direction of this view is inherited from its parent. Use with `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setLayoutDirection(android.view.View,int)`.

### LAYOUT_DIRECTION_LOCALE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
const val LAYOUT_DIRECTION_LOCALE = 3: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#LAYOUT_DIRECTION_LOCALE` directly.

Horizontal layout direction of this view is from deduced from the default language script for the locale. Use with `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setLayoutDirection(android.view.View,int)`.

### LAYOUT_DIRECTION_LTR

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
const val LAYOUT_DIRECTION_LTR = 0: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#LAYOUT_DIRECTION_LTR` directly.

Horizontal layout direction of this view is from Left to Right.

### LAYOUT_DIRECTION_RTL

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
const val LAYOUT_DIRECTION_RTL = 1: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#LAYOUT_DIRECTION_RTL` directly.

Horizontal layout direction of this view is from Right to Left.

### MEASURED_HEIGHT_STATE_SHIFT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val MEASURED_HEIGHT_STATE_SHIFT = 16: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#MEASURED_HEIGHT_STATE_SHIFT` directly.

Bit shift of `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#MEASURED_STATE_MASK()` to get to the height bits for functions that combine both width and height into a single int, such as `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMeasuredState(android.view.View)` and the childState argument of `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#resolveSizeAndState(int,int,int)`.

### MEASURED_SIZE_MASK

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val MEASURED_SIZE_MASK = 16777215: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#MEASURED_SIZE_MASK` directly.

Bits of `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMeasuredWidthAndState(android.view.View)` and `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMeasuredWidthAndState(android.view.View)` that provide the actual measured size.

### MEASURED_STATE_MASK

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val MEASURED_STATE_MASK = -16777216: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#MEASURED_STATE_MASK` directly.

Bits of `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMeasuredWidthAndState(android.view.View)` and `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMeasuredWidthAndState(android.view.View)` that provide the additional state bits.

### MEASURED_STATE_TOO_SMALL

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val MEASURED_STATE_TOO_SMALL = 16777216: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#MEASURED_STATE_TOO_SMALL` directly.

Bit of `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMeasuredWidthAndState(android.view.View)` and `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMeasuredWidthAndState(android.view.View)` that indicates the measured size is smaller that the space the view would like to have.

### OVER_SCROLL_ALWAYS

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val OVER_SCROLL_ALWAYS = 0: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#OVER_SCROLL_ALWAYS` directly. This constant will be removed in a future release.

Always allow a user to over-scroll this view, provided it is a view that can scroll.

### OVER_SCROLL_IF_CONTENT_SCROLLS

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val OVER_SCROLL_IF_CONTENT_SCROLLS = 1: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#OVER_SCROLL_IF_CONTENT_SCROLLS` directly. This constant will be removed in a future release.

Allow a user to over-scroll this view only if the content is large enough to meaningfully scroll, provided it is a view that can scroll.

### OVER_SCROLL_NEVER

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val OVER_SCROLL_NEVER = 2: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#OVER_SCROLL_NEVER` directly. This constant will be removed in a future release.

Never allow a user to over-scroll this view.

### SCROLL_AXIS_HORIZONTAL

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val SCROLL_AXIS_HORIZONTAL = 1: Int
```

Indicates scrolling along the horizontal axis.

### SCROLL_AXIS_NONE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val SCROLL_AXIS_NONE = 0: Int
```

Indicates no axis of view scrolling.

### SCROLL_AXIS_VERTICAL

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val SCROLL_AXIS_VERTICAL = 2: Int
```

Indicates scrolling along the vertical axis.

### SCROLL_INDICATOR_BOTTOM

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val SCROLL_INDICATOR_BOTTOM = 2: Int
```

Scroll indicator direction for the bottom edge of the view.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScrollIndicators(android.view.View,int)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScrollIndicators(android.view.View,int,int)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getScrollIndicators(android.view.View)` |   |

### SCROLL_INDICATOR_END

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val SCROLL_INDICATOR_END = 32: Int
```

Scroll indicator direction for the ending edge of the view.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScrollIndicators(android.view.View,int)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScrollIndicators(android.view.View,int,int)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getScrollIndicators(android.view.View)` |   |

### SCROLL_INDICATOR_LEFT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val SCROLL_INDICATOR_LEFT = 4: Int
```

Scroll indicator direction for the left edge of the view.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScrollIndicators(android.view.View,int)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScrollIndicators(android.view.View,int,int)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getScrollIndicators(android.view.View)` |   |

### SCROLL_INDICATOR_RIGHT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val SCROLL_INDICATOR_RIGHT = 8: Int
```

Scroll indicator direction for the right edge of the view.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScrollIndicators(android.view.View,int)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScrollIndicators(android.view.View,int,int)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getScrollIndicators(android.view.View)` |   |

### SCROLL_INDICATOR_START

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val SCROLL_INDICATOR_START = 16: Int
```

Scroll indicator direction for the starting edge of the view.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScrollIndicators(android.view.View,int)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScrollIndicators(android.view.View,int,int)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getScrollIndicators(android.view.View)` |   |

### SCROLL_INDICATOR_TOP

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val SCROLL_INDICATOR_TOP = 1: Int
```

Scroll indicator direction for the top edge of the view.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScrollIndicators(android.view.View,int)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScrollIndicators(android.view.View,int,int)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getScrollIndicators(android.view.View)` |   |

### TYPE_NON_TOUCH

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val TYPE_NON_TOUCH = 1: Int
```

Indicates that the input type for the gesture is caused by something which is not a user touching a screen. This is usually from a fling which is settling.

### TYPE_TOUCH

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
const val TYPE_TOUCH = 0: Int
```

Indicates that the input type for the gesture is from a user touching the screen.

## Protected constructors

### ViewCompat

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
protected [ViewCompat](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#ViewCompat())()
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This is a utility class and it shouldn't be instantiated.

## Public functions

### addAccessibilityAction

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun addAccessibilityAction(
    view: View,
    label: CharSequence,
    command: AccessibilityViewCommand
): Int
```

Adds an accessibility action that can be performed on a node associated with a view. A view can only have 32 actions created with this API.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view. |
| `label: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` | The user facing description of the action. If an action with the same label already exists, it will be replaced. |
| `command: https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityViewCommand` | The command performed when the service requests the action. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The id associated with the action, or `https://developer.android.com/reference/android/view/View.html#NO_ID` if the action could not be created. This id can be used to remove the action. Compatibility: - API \<21: No-op |

### addKeyboardNavigationClusters

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun addKeyboardNavigationClusters(
    view: View,
    views: (Mutable)Collection<View!>,
    direction: Int
): Unit
```

Adds any keyboard navigation cluster roots that are descendants of `view` ( including `view` if it is a cluster root itself) to `views`. Does nothing on API \<26.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view on which to make the change. |
| `views: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-collection/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-collection/index.html<https://developer.android.com/reference/android/view/View.html!>` | collection of keyboard navigation cluster roots found so far. |
| `direction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | direction to look. |

### addOnUnhandledKeyEventListener

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun addOnUnhandledKeyEventListener(
    view: View,
    listener: ViewCompat.OnUnhandledKeyEventListenerCompat
): Unit
```

Adds a listener which will receive unhandled `https://developer.android.com/reference/android/view/KeyEvent.html`s. This must be called on the UI thread.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view on which to add the listener. |
| `listener: https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat.OnUnhandledKeyEventListenerCompat` | a receiver of unhandled `https://developer.android.com/reference/android/view/KeyEvent.html`s. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#removeOnUnhandledKeyEventListener(android.view.View,androidx.core.view.ViewCompat.OnUnhandledKeyEventListenerCompat)` |   |

### addOverlayView

Added in [1.16.0](https://developer.android.com/jetpack/androidx/releases/core#1.16.0)

```
java-static fun addOverlayView(overlayHost: ViewGroup, overlay: View): Unit
```

Convenience method to add `overlay` to `overlayHost`'s `https://developer.android.com/reference/android/view/View.html#getOverlay()` and assign the `https://developer.android.com/reference/kotlin/androidx/core/viewtree/ViewTree#setViewTreeDisjointParent(android.view.View,android.view.ViewParent)` in the overlay hierarchy.

| Parameters |
|---|---|
| `overlayHost: https://developer.android.com/reference/android/view/ViewGroup.html` | The view to add an overlay to |
| `overlay: https://developer.android.com/reference/android/view/View.html` | The view to overlay onto `overlayHost` |

| See also |
|---|---|
| `https://developer.android.com/reference/android/view/ViewGroupOverlay.html#add(android.view.View)` |   |

### animate

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
java-static fun [animate](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#animate(android.view.View))(view: View): ViewPropertyAnimatorCompat
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#animate()` directly.

This method returns a ViewPropertyAnimator object, which can be used to animate specific properties on this View.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewPropertyAnimatorCompat` | ViewPropertyAnimator The ViewPropertyAnimator associated with this View. |

### canScrollHorizontally

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.canScrollHorizontally(direction)")
java-static fun [canScrollHorizontally](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#canScrollHorizontally(android.view.View,int))(view: View!, direction: Int): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#canScrollHorizontally(int)` directly.

Check if this view can be scrolled horizontally in a certain direction.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | The View against which to invoke the method. |
| `direction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Negative to check scrolling left, positive to check scrolling right. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if this view can be scrolled in the specified direction, false otherwise. |

### canScrollVertically

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.canScrollVertically(direction)")
java-static fun [canScrollVertically](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#canScrollVertically(android.view.View,int))(view: View!, direction: Int): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#canScrollVertically(int)` directly.

Check if this view can be scrolled vertically in a certain direction.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | The View against which to invoke the method. |
| `direction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Negative to check scrolling up, positive to check scrolling down. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if this view can be scrolled in the specified direction, false otherwise. |

### cancelDragAndDrop

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun cancelDragAndDrop(v: View): Unit
```

Cancel the drag and drop operation.

### combineMeasuredStates

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun [combineMeasuredStates](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#combineMeasuredStates(int,int))(curState: Int, newState: Int): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#combineMeasuredStates(int, int)` directly.

Merge two states as returned by `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMeasuredState(android.view.View)`.

| Parameters |
|---|---|
| `curState: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The current state as returned from a view or the result of combining multiple views. |
| `newState: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The new view state to combine. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Returns a new integer reflecting the combination of the two states. |

### computeSystemWindowInsets

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/core#1.3.0)

```
java-static fun computeSystemWindowInsets(
    view: View,
    insets: WindowInsetsCompat,
    outLocalInsets: Rect
): WindowInsetsCompat
```

Compute insets that should be consumed by this view and the ones that should propagate to those under it.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which insets need to be computed. |
| `insets: https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsCompat` | Insets currently being processed by this View, likely received as a parameter to `https://developer.android.com/reference/android/view/View.html#onApplyWindowInsets(android.view.WindowInsets)`. |
| `outLocalInsets: https://developer.android.com/reference/android/graphics/Rect.html` | A Rect that will receive the insets that should be consumed by this view |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsCompat` | Insets that should be passed along to views under this one |

### dispatchApplyWindowInsets

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun dispatchApplyWindowInsets(view: View, insets: WindowInsetsCompat): WindowInsetsCompat
```

Request to apply the given window insets to this view or another view in its subtree.

This method should be called by clients wishing to apply insets corresponding to areas obscured by window decorations or overlays. This can include the status and navigation bars, action bars, input methods and more. New inset categories may be added in the future. The method returns the insets provided minus any that were applied by this view or its children.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to dispatch the request. |
| `insets: https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsCompat` | Insets to apply |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsCompat` | The provided insets minus the insets that were consumed |

### dispatchFinishTemporaryDetach

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun dispatchFinishTemporaryDetach(view: View): Unit
```

Notify a view that its temporary detach has ended; the view is now reattached.

### dispatchNestedFling

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun dispatchNestedFling(
    view: View,
    velocityX: Float,
    velocityY: Float,
    consumed: Boolean
): Boolean
```

Dispatch a fling to a nested scrolling parent.

This method should be used to indicate that a nested scrolling child has detected suitable conditions for a fling. Generally this means that a touch scroll has ended with a `https://developer.android.com/reference/android/view/VelocityTracker.html` in the direction of scrolling that meets or exceeds the `https://developer.android.com/reference/android/view/ViewConfiguration.html#getScaledMinimumFlingVelocity()` along a scrollable axis.

If a nested scrolling child view would normally fling but it is at the edge of its own content, it can use this method to delegate the fling to its nested scrolling parent instead. The parent may optionally consume the fling or observe a child fling.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to dispatch the fling. |
| `velocityX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | Horizontal fling velocity in pixels per second |
| `velocityY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | Vertical fling velocity in pixels per second |
| `consumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if the child consumed the fling, false otherwise |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if the nested scrolling parent consumed or otherwise reacted to the fling |

### dispatchNestedPreFling

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun dispatchNestedPreFling(view: View, velocityX: Float, velocityY: Float): Boolean
```

Dispatch a fling to a nested scrolling parent before it is processed by this view.

Nested pre-fling events are to nested fling events what touch intercept is to touch and what nested pre-scroll is to nested scroll. `dispatchNestedPreFling` offsets an opportunity for the parent view in a nested fling to fully consume the fling before the child view consumes it. If this method returns `true`, a nested parent view consumed the fling and this view should not scroll as a result.

For a better user experience, only one view in a nested scrolling chain should consume the fling at a time. If a parent view consumed the fling this method will return false. Custom view implementations should account for this in two ways:

- If a custom view is paged and needs to settle to a fixed page-point, do not call `dispatchNestedPreFling`; consume the fling and settle to a valid position regardless.
- If a nested parent does consume the fling, this view should not scroll at all, even to settle back to a valid idle position.

Views should also not offer fling velocities to nested parent views along an axis where scrolling is not currently supported; a `https://developer.android.com/reference/android/widget/ScrollView.html` should not offer a horizontal fling velocity to its parents since scrolling along that axis is not permitted and carrying velocity along that motion does not make sense.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to dispatch the fling. |
| `velocityX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | Horizontal fling velocity in pixels per second |
| `velocityY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | Vertical fling velocity in pixels per second |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if a nested scrolling parent consumed the fling |

### dispatchNestedPreScroll

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun dispatchNestedPreScroll(
    view: View,
    dx: Int,
    dy: Int,
    consumed: IntArray<Int>?,
    offsetInWindow: IntArray<Int>?
): Boolean
```

Dispatch one step of a nested scroll in progress before this view consumes any portion of it.

This version of the method just calls `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchNestedPreScroll(android.view.View,int,int,int[],int[],int)` using the touch input type.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to dispatch the scroll. |
| `dx: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Horizontal scroll distance in pixels |
| `dy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Vertical scroll distance in pixels |
| `consumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>?` | Output. If not null, consumed\[0\] will contain the consumed component of dx and consumed\[1\] the consumed dy. |
| `offsetInWindow: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>?` | Optional. If not null, on return this will contain the offset in local view coordinates of this view from before this operation to after it completes. View implementations may use this to adjust expected input coordinate tracking. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if the parent consumed some or all of the scroll delta |

### dispatchNestedPreScroll

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun dispatchNestedPreScroll(
    view: View,
    dx: Int,
    dy: Int,
    consumed: IntArray<Int>?,
    offsetInWindow: IntArray<Int>?,
    type: Int
): Boolean
```

Dispatch one step of a nested scroll in progress before this view consumes any portion of it.

Nested pre-scroll events are to nested scroll events what touch intercept is to touch. `dispatchNestedPreScroll` offers an opportunity for the parent view in a nested scrolling operation to consume some or all of the scroll operation before the child view consumes it.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to dispatch the scroll. |
| `dx: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Horizontal scroll distance in pixels |
| `dy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Vertical scroll distance in pixels |
| `consumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>?` | Output. If not null, consumed\[0\] will contain the consumed component of dx and consumed\[1\] the consumed dy. |
| `offsetInWindow: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>?` | Optional. If not null, on return this will contain the offset in local view coordinates of this view from before this operation to after it completes. View implementations may use this to adjust expected input coordinate tracking. |
| `type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the type of input which cause this scroll event |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if the parent consumed some or all of the scroll delta |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchNestedScroll(android.view.View,int,int,int,int,int[])` |   |

### dispatchNestedScroll

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun dispatchNestedScroll(
    view: View,
    dxConsumed: Int,
    dyConsumed: Int,
    dxUnconsumed: Int,
    dyUnconsumed: Int,
    offsetInWindow: IntArray<Int>?
): Boolean
```

Dispatch one step of a nested scroll in progress.

This version of the method just calls `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchNestedScroll(android.view.View,int,int,int,int,int[],int)` using the touch input type.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to dispatch the scroll. |
| `dxConsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Horizontal distance in pixels consumed by this view during this scroll step |
| `dyConsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Vertical distance in pixels consumed by this view during this scroll step |
| `dxUnconsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Horizontal scroll distance in pixels not consumed by this view |
| `dyUnconsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Horizontal scroll distance in pixels not consumed by this view |
| `offsetInWindow: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>?` | Optional. If not null, on return this will contain the offset in local view coordinates of this view from before this operation to after it completes. View implementations may use this to adjust expected input coordinate tracking. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if the event was dispatched, false if it could not be dispatched. |

### dispatchNestedScroll

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun dispatchNestedScroll(
    view: View,
    dxConsumed: Int,
    dyConsumed: Int,
    dxUnconsumed: Int,
    dyUnconsumed: Int,
    offsetInWindow: IntArray<Int>?,
    type: Int
): Boolean
```

Dispatch one step of a nested scroll in progress.

Implementations of views that support nested scrolling should call this to report info about a scroll in progress to the current nested scrolling parent. If a nested scroll is not currently in progress or nested scrolling is not `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isNestedScrollingEnabled(android.view.View)` for this view this method does nothing.

Compatible View implementations should also call `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchNestedPreScroll(android.view.View,int,int,int[],int[])` before consuming a component of the scroll event themselves.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to dispatch the scroll. |
| `dxConsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Horizontal distance in pixels consumed by this view during this scroll step |
| `dyConsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Vertical distance in pixels consumed by this view during this scroll step |
| `dxUnconsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Horizontal scroll distance in pixels not consumed by this view |
| `dyUnconsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Horizontal scroll distance in pixels not consumed by this view |
| `offsetInWindow: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>?` | Optional. If not null, on return this will contain the offset in local view coordinates of this view from before this operation to after it completes. View implementations may use this to adjust expected input coordinate tracking. |
| `type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the type of input which cause this scroll event |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if the event was dispatched, and therefore the scroll distance was consumed |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchNestedPreScroll(android.view.View,int,int,int[],int[])` |   |

### dispatchNestedScroll

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun dispatchNestedScroll(
    view: View,
    dxConsumed: Int,
    dyConsumed: Int,
    dxUnconsumed: Int,
    dyUnconsumed: Int,
    offsetInWindow: IntArray<Int>?,
    type: Int,
    consumed: IntArray<Int>
): Unit
```

Dispatch one step of a nested scroll in progress.

Implementations of views that support nested scrolling should call this to report info about a scroll in progress to the current nested scrolling parent. If a nested scroll is not currently in progress or nested scrolling is not `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isNestedScrollingEnabled(android.view.View)` for this view this method does nothing.

Compatible View implementations should also call `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchNestedPreScroll(android.view.View,int,int,int[],int[],int)` before consuming a component of the scroll event themselves.

A non-null `consumed` int array of length 2 may be passed in to enable nested scrolling parents to report how much of the scroll distance was consumed. The original caller (where the input event was received to start the scroll) should initialize the values to be 0, in order to tell how much was actually consumed up the hierarchy of scrolling parents.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to dispatch the scroll. |
| `dxConsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Horizontal distance in pixels consumed by this view during this scroll step |
| `dyConsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Vertical distance in pixels consumed by this view during this scroll step |
| `dxUnconsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Horizontal scroll distance in pixels not consumed by this view |
| `dyUnconsumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Horizontal scroll distance in pixels not consumed by this view |
| `offsetInWindow: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>?` | Optional. If not null, on return this will contain the offset in local view coordinates of this view from before this operation to after it completes. View implementations may use this to adjust expected input coordinate tracking. |
| `type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the type of input which cause this scroll event |
| `consumed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>` | Output, If not null, `consumed[0]` will contain the consumed component of dx and `consumed[1]` the consumed dy. |

### dispatchStartTemporaryDetach

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun dispatchStartTemporaryDetach(view: View): Unit
```

Notify a view that it is being temporarily detached.

### enableAccessibleClickableSpanSupport

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun enableAccessibleClickableSpanSupport(view: View): Unit
```

Allow accessibility services to find and activate clickable spans in the application.

`https://developer.android.com/reference/android/text/style/ClickableSpan.html` is automatically supported from API 26. For compatibility back to API 19, this should be enabled.

`https://developer.android.com/reference/android/text/style/URLSpan.html`, a subclass of ClickableSpans, is automatically supported and does not need this enabled.

Do not put ClickableSpans in `https://developer.android.com/reference/android/view/View.html#setContentDescription(java.lang.CharSequence)` or `https://developer.android.com/reference/android/view/View.html#setStateDescription(java.lang.CharSequence)`. These links are only visible to accessibility services in `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getText()`, which should be modifiable using helper methods on UI elements. For example, use `https://developer.android.com/reference/android/widget/TextView.html#setText(java.lang.CharSequence)` to modify the text of TextViews.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view Compatibility: - API \<19: No-op |

### generateViewId

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
java-static fun [generateViewId](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#generateViewId())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#generateViewId()` directly.

Generate a value suitable for use in `https://developer.android.com/reference/android/view/View.html#setId(int)`. This value will not collide with ID values generated at build time by aapt for R.id.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | a generated ID value |

### getAccessibilityDelegate

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun getAccessibilityDelegate(view: View): AccessibilityDelegateCompat?
```

Get the current accessibility delegate.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view whose delegate is of interest |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/AccessibilityDelegateCompat?` | A compat wrapper for the current delegate. If no delegate is attached, you may still get an object that is being used to provide backward compatibility. Returns `null` if there is no delegate attached. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setAccessibilityDelegate(android.view.View,androidx.core.view.AccessibilityDelegateCompat)` |   |

### getAccessibilityLiveRegion

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.getAccessibilityLiveRegion()")
java-static fun [getAccessibilityLiveRegion](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getAccessibilityLiveRegion(android.view.View))(view: View): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#getAccessibilityLiveRegion()` directly.

Gets the live region mode for the specified View.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view from which to obtain the live region mode |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The live region mode for the view. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setAccessibilityLiveRegion(android.view.View,int)` |   |

### getAccessibilityNodeProvider

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun getAccessibilityNodeProvider(view: View): AccessibilityNodeProviderCompat?
```

Gets the provider for managing a virtual view hierarchy rooted at this View and reported to `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`s that explore the window content.

If this method returns an instance, this instance is responsible for managing `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat`s describing the virtual sub-tree rooted at this View including the one representing the View itself. Similarly the returned instance is responsible for performing accessibility actions on any virtual view or the root view itself.

If an `https://developer.android.com/reference/kotlin/androidx/core/view/AccessibilityDelegateCompat` has been specified via calling `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setAccessibilityDelegate(android.view.View,androidx.core.view.AccessibilityDelegateCompat)` its `https://developer.android.com/reference/kotlin/androidx/core/view/AccessibilityDelegateCompat#getAccessibilityNodeProvider(android.view.View)` is responsible for handling this call.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view whose property to get. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeProviderCompat?` | The provider. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeProviderCompat` |   |

### getAccessibilityPaneTitle

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@UiThread
java-static fun getAccessibilityPaneTitle(view: View): CharSequence?
```

Get the title of the pane for purposes of accessibility.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view queried for it's pane title. Compatibility: - API \<19: Always returns `null` |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?` | The current pane title. {@see #setAccessibilityPaneTitle}. |

### getAlpha

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.getAlpha()")
java-static fun [getAlpha](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getAlpha(android.view.View))(view: View!): Float
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#getAlpha()` directly.

The opacity of the view. This is a value from 0 to 1, where 0 means the view is completely transparent and 1 means the view is completely opaque.

By default this is 1.0f.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The opacity of the view. |

### getAutofillId

Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0)

```
java-static fun getAutofillId(v: View): AutofillIdCompat?
```

Gets the unique, logical identifier of this view in the activity, for autofill purposes.

The autofill id is created on demand, unless it is explicitly set by setAutofillId.

See setAutofillId for more info. Compatibility behavior:

- SDK 26 and above, this method matches platform behavior.
- SDK 25 and below, this method always return null.

| Parameters |
|---|---|
| `v: https://developer.android.com/reference/android/view/View.html` | The View against which to invoke the method. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/autofill/AutofillIdCompat?` | The View's autofill id. |

### getBackgroundTintList

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun getBackgroundTintList(view: View): ColorStateList?
```

Return the tint applied to the background drawable, if specified.

Only returns meaningful info when running on API v21 or newer, or if `view` implements the `TintableBackgroundView` interface.

### getBackgroundTintMode

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun getBackgroundTintMode(view: View): PorterDuff.Mode?
```

Return the blending mode used to apply the tint to the background drawable, if specified.

Only returns meaningful info when running on API v21 or newer, or if `view` implements the `TintableBackgroundView` interface.

### getClipBounds

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.getClipBounds()")
java-static fun [getClipBounds](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getClipBounds(android.view.View))(view: View): Rect?
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#getClipBounds()` directly.

Returns a copy of the current `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setClipBounds(android.view.View,android.graphics.Rect)`.

Prior to API 18 this will return null.

| Returns |
|---|---|
| `https://developer.android.com/reference/android/graphics/Rect.html?` | A copy of the current clip bounds if clip bounds are set, otherwise null. |

### getContentCaptureSession

Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0)

```
java-static fun getContentCaptureSession(v: View): ContentCaptureSessionCompat?
```

Gets the session used to notify content capture events. Compatibility behavior:

- SDK 29 and above, this method matches platform behavior.
- SDK 28 and below, this method always return null.

| Parameters |
|---|---|
| `v: https://developer.android.com/reference/android/view/View.html` | The View against which to invoke the method. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/contentcapture/ContentCaptureSessionCompat?` | session explicitly set by setContentCaptureSession, inherited by ancestors, default session or `null` if content capture is disabled for this view. |

### getDisplay

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.getDisplay()")
java-static fun [getDisplay](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getDisplay(android.view.View))(view: View): Display?
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#getDisplay()` directly.

Gets the logical display to which the view's window has been attached.

Compatibility:

- API \<17: Returns the default display when the view is attached. Otherwise, null.

| Returns |
|---|---|
| `https://developer.android.com/reference/android/view/Display.html?` | The logical display, or null if the view is not currently attached to a window. |

### getElevation

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun getElevation(view: View): Float
```

The base elevation of this view relative to its parent, in pixels.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to get the elevation. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The base depth position of the view, in pixels. |

### getFitsSystemWindows

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.getFitsSystemWindows()")
java-static fun [getFitsSystemWindows](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getFitsSystemWindows(android.view.View))(view: View): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#getFitsSystemWindows()` directly.

Returns true if this view should adapt to fit system window insets. This method will always return false before API 16 (Jellybean).

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to get the state. |

### getImportantForAccessibility

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.getImportantForAccessibility()")
java-static fun [getImportantForAccessibility](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getImportantForAccessibility(android.view.View))(view: View): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#getImportantForAccessibility()` directly.

Gets the mode for determining whether this View is important for accessibility which is if it fires accessibility events and if it is reported to accessibility services that query the screen.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view whose property to get. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The mode for determining whether a View is important for accessibility. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_YES()` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO()` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS()` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_AUTO()` |   |

### getImportantForAutofill

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun getImportantForAutofill(v: View): Int
```

Gets the mode for determining whether this view is important for autofill.

See `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setImportantForAutofill(android.view.View,int)` and `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isImportantForAutofill(android.view.View)` for more info about this mode.

This method is only supported on API \>= 26. On API 25 and below, it will always return `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_AUTO`.

Value is one of the following:

- `View.IMPORTANT_FOR_AUTOFILL_AUTO`
- `View.IMPORTANT_FOR_AUTOFILL_YES`
- `View.IMPORTANT_FOR_AUTOFILL_NO`
- `View.IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS`
- `View.IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS`

<br />

| Parameters |
|---|---|
| `v: https://developer.android.com/reference/android/view/View.html` | The View against which to invoke the method. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_AUTO` by default, or value passed to `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setImportantForAutofill(android.view.View,int)`. `https://developer.android.com/reference/android/R.attr.html#importantForAutofill` |

### getImportantForContentCapture

Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0)

```
java-static fun getImportantForContentCapture(v: View): Int
```

Gets the mode for determining whether this view is important for content capture.

See setImportantForContentCapture and isImportantForContentCapture for more info about this mode. Compatibility behavior:

- SDK 30 and above, this method matches platform behavior.
- SDK 29 and below, this method always return `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_AUTO()`.

ref android.R.styleable#View_importantForContentCapture

| Parameters |
|---|---|
| `v: https://developer.android.com/reference/android/view/View.html` | The View against which to invoke the method. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_AUTO()` by default, or value passed to setImportantForContentCapture. |

### getLabelFor

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.getLabelFor()")
java-static fun [getLabelFor](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getLabelFor(android.view.View))(view: View): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#getLabelFor()` directly.

Gets the id of a view for which a given view serves as a label for accessibility purposes.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view on which to invoke the corresponding method. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The labeled view id. |

### getLayerType

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.getLayerType()")
java-static fun [getLayerType](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getLayerType(android.view.View))(view: View!): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#getLayerType()` directly.

Indicates what type of layer is currently associated with this view. By default a view does not have a layer, and the layer type is `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE`. Refer to the documentation of `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setLayerType(android.view.View,int,android.graphics.Paint)` for more information on the different types of layers.

Value is one of the following:

- `View.LAYER_TYPE_NONE`
- `View.LAYER_TYPE_SOFTWARE`
- `View.LAYER_TYPE_HARDWARE`

<br />

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | The view to fetch the layer type from |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE`, `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_SOFTWARE` or `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_HARDWARE` |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setLayerType(android.view.View,int,android.graphics.Paint)` |   |
| `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE` |   |
| `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_SOFTWARE` |   |
| `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_HARDWARE` |   |

### getLayoutDirection

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.getLayoutDirection()")
java-static fun [getLayoutDirection](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getLayoutDirection(android.view.View))(view: View): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#getLayoutDirection()` directly.

Returns the resolved layout direction for this view.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | View to get layout direction for |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#LAYOUT_DIRECTION_RTL()` if the layout direction is RTL or returns `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#LAYOUT_DIRECTION_LTR()` if the layout direction is not RTL. For compatibility, this will return `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#LAYOUT_DIRECTION_LTR()` if API version is lower than Jellybean MR1 (API 17) |

### getMatrix

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.getMatrix()")
java-static fun [getMatrix](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMatrix(android.view.View))(view: View!): Matrix?
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#getMatrix()` directly.

The transform matrix of this view, which is calculated based on the current rotation, scale, and pivot properties.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | The view whose Matrix will be returned |

| Returns |
|---|---|
| `https://developer.android.com/reference/android/graphics/Matrix.html?` | The current transform matrix for the view |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getRotation(android.view.View)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getScaleX(android.view.View)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getScaleY(android.view.View)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getPivotX(android.view.View)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getPivotY(android.view.View)` |   |

### getMeasuredHeightAndState

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.getMeasuredHeightAndState()")
java-static fun [getMeasuredHeightAndState](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMeasuredHeightAndState(android.view.View))(view: View!): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#getMeasuredHeightAndState()` directly.

Return the full height measurement information for this view as computed by the most recent call to `https://developer.android.com/reference/android/view/View.html#measure(int, int)`. This result is a bit mask as defined by `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#MEASURED_SIZE_MASK()` and `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#MEASURED_STATE_TOO_SMALL()`. This should be used during measurement and layout calculations only. Use `https://developer.android.com/reference/android/view/View.html#getHeight()` to see how wide a view is after layout.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The measured width of this view as a bit mask. |

### getMeasuredState

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.getMeasuredState()")
java-static fun [getMeasuredState](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMeasuredState(android.view.View))(view: View!): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#getMeasuredState()` directly.

Return only the state bits of `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMeasuredWidthAndState(android.view.View)` and `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMeasuredHeightAndState(android.view.View)`, combined into one integer. The width component is in the regular bits `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#MEASURED_STATE_MASK()` and the height component is at the shifted bits `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#MEASURED_HEIGHT_STATE_SHIFT()`\>\>`https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#MEASURED_STATE_MASK()`.

### getMeasuredWidthAndState

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.getMeasuredWidthAndState()")
java-static fun [getMeasuredWidthAndState](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMeasuredWidthAndState(android.view.View))(view: View!): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#getMeasuredWidth()` directly.

Return the full width measurement information for this view as computed by the most recent call to `https://developer.android.com/reference/android/view/View.html#measure(int, int)`. This result is a bit mask as defined by `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#MEASURED_SIZE_MASK()` and `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#MEASURED_STATE_TOO_SMALL()`. This should be used during measurement and layout calculations only. Use `https://developer.android.com/reference/android/view/View.html#getWidth()` to see how wide a view is after layout.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The measured width of this view as a bit mask. |

### getMinimumHeight

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.getMinimumHeight()")
java-static fun [getMinimumHeight](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMinimumHeight(android.view.View))(view: View): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#getMinimumHeight()` directly.

Returns the minimum height of the view.

Prior to API 16, this method may return 0 on some platforms.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the minimum height the view will try to be. |

### getMinimumWidth

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.getMinimumWidth()")
java-static fun [getMinimumWidth](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getMinimumWidth(android.view.View))(view: View): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#getMinimumWidth()` directly.

Returns the minimum width of the view.

Prior to API 16, this method may return 0 on some platforms.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the minimum width the view will try to be. |

### getNextClusterForwardId

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun getNextClusterForwardId(view: View): Int
```

Gets the ID of the next keyboard navigation cluster root.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the next keyboard navigation cluster ID, or `https://developer.android.com/reference/android/view/View.html#NO_ID` if the framework should decide automatically or API \<26. |

### getOnReceiveContentMimeTypes

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
java-static fun getOnReceiveContentMimeTypes(view: View): Array<String!>?
```

Returns the MIME types accepted by the listener configured on the given view via `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setOnReceiveContentListener(android.view.View,java.lang.String[],androidx.core.view.OnReceiveContentListener)`. By default returns null.

Different features (e.g. pasting from the clipboard, inserting stickers from the soft keyboard, etc) may optionally use this metadata to conditionally alter their behavior. For example, a soft keyboard may choose to hide its UI for inserting GIFs for a particular input field if the MIME types returned here for that field don't include "image/gif" or "image/\*".

Note: Comparisons of MIME types should be performed using utilities such as `https://developer.android.com/reference/android/content/ClipDescription.html#compareMimeTypes(java.lang.String, java.lang.String)` rather than simple string equality, in order to correctly handle patterns such as "text/\*", "image/\*", etc. Note that MIME type matching in the Android framework is case-sensitive, unlike formal RFC MIME types. As a result, you should always write your MIME types with lowercase letters, or use `https://developer.android.com/reference/android/content/Intent.html#normalizeMimeType(java.lang.String)` to ensure that it is converted to lowercase.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The target view. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>?` | The MIME types accepted by the `https://developer.android.com/reference/kotlin/androidx/core/view/OnReceiveContentListener` for the given view (may include patterns such as "image/\*"). |

### getOverScrollMode

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.getOverScrollMode()")
java-static fun [getOverScrollMode](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getOverScrollMode(android.view.View))(view: View!): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#getOverScrollMode()` directly. This method will be removed in a future release.

Returns the over-scroll mode for this view. The result will be one of `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#OVER_SCROLL_ALWAYS()` (default), `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#OVER_SCROLL_IF_CONTENT_SCROLLS()` (allow over-scrolling only if the view content is larger than the container), or `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#OVER_SCROLL_NEVER()`.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | The View against which to invoke the method. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | This view's over-scroll mode. |

### getPaddingEnd

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.getPaddingEnd()")
java-static fun [getPaddingEnd](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getPaddingEnd(android.view.View))(view: View): @Px Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#getPaddingEnd()` directly.

Returns the end padding of the specified view depending on its resolved layout direction. If there are inset and enabled scrollbars, this value may include the space required to display the scrollbars as well.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view to get padding for |

| Returns |
|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/annotation/Px https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the end padding in pixels |

### getPaddingStart

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.getPaddingStart()")
java-static fun [getPaddingStart](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getPaddingStart(android.view.View))(view: View): @Px Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#getPaddingStart()` directly.

Returns the start padding of the specified view depending on its resolved layout direction. If there are inset and enabled scrollbars, this value may include the space required to display the scrollbars as well.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view to get padding for |

| Returns |
|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/annotation/Px https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the start padding in pixels |

### getParentForAccessibility

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.getParentForAccessibility()")
java-static fun [getParentForAccessibility](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getParentForAccessibility(android.view.View))(view: View): ViewParent?
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#getParentForAccessibility()` directly.

Gets the parent for accessibility purposes. Note that the parent for accessibility is not necessary the immediate parent. It is the first predecessor that is important for accessibility.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | View to retrieve parent for |

| Returns |
|---|---|
| `https://developer.android.com/reference/android/view/ViewParent.html?` | The parent for use in accessibility inspection |

### getPivotX

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.getPivotX()")
java-static fun [getPivotX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getPivotX(android.view.View))(view: View!): Float
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#getPivotX()` directly.

The x location of the point around which the view is `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setRotation(android.view.View,float)` and `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScaleX(android.view.View,float)`.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view for which to get the pivot. |

### getPivotY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.getPivotY()")
java-static fun [getPivotY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getPivotY(android.view.View))(view: View!): Float
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#getPivotY()` directly.

The y location of the point around which the view is `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setRotation(android.view.View,float)` and `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScaleY(android.view.View,float)`.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view for which to get the pivot. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y location of the pivot point. |

### getRootWindowInsets

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/core#1.3.0)

```
java-static fun getRootWindowInsets(view: View): WindowInsetsCompat?
```

Provide original `https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsCompat` that are dispatched to the view hierarchy. The insets are only available if the view is attached.

On devices running API 20 and below, this method always returns null.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsCompat?` | WindowInsetsCompat from the top of the view hierarchy or null if View is detached |

### getRotation

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.getRotation()")
java-static fun [getRotation](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getRotation(android.view.View))(view: View!): Float
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#getRotation()` directly.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view for which to get the rotation. |

### getRotationX

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.getRotationX()")
java-static fun [getRotationX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getRotationX(android.view.View))(view: View!): Float
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#getRotationX()` directly.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view for which to get the rotation. |

### getRotationY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.getRotationY()")
java-static fun [getRotationY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getRotationY(android.view.View))(view: View!): Float
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#getRotationY()` directly.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view for which to get the rotation. |

### getScaleX

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.getScaleX()")
java-static fun [getScaleX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getScaleX(android.view.View))(view: View!): Float
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#getScaleX()` directly.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view for which to get the scale. |

### getScaleY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.getScaleY()")
java-static fun [getScaleY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getScaleY(android.view.View))(view: View!): Float
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#getScaleY()` directly.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view for which to get the scale. |

### getScrollIndicators

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun getScrollIndicators(view: View): Int
```

Returns a bitmask representing the enabled scroll indicators.

For example, if the top and left scroll indicators are enabled and all other indicators are disabled, the return value will be `ViewCompat.SCROLL_INDICATOR_TOP | ViewCompat.SCROLL_INDICATOR_LEFT`.

To check whether the bottom scroll indicator is enabled, use the value of `(ViewCompat.getScrollIndicators(view) & ViewCompat.SCROLL_INDICATOR_BOTTOM) != 0`.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to get the state. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | a bitmask representing the enabled scroll indicators |

### getStateDescription

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
@UiThread
java-static fun getStateDescription(view: View): CharSequence?
```

Returns the `https://developer.android.com/reference/android/view/View.html`'s state description.

**Note:** Do not override this method, as it will have no effect on the state description presented to accessibility services. You must call `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setStateDescription(android.view.View,java.lang.CharSequence)` to modify the state description.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to get the description |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?` | the state description |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setStateDescription(android.view.View,java.lang.CharSequence)` |   |

### getSystemGestureExclusionRects

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/core#1.2.0)

```
java-static fun getSystemGestureExclusionRects(view: View): (Mutable)List<Rect!>
```

Retrieve the list of areas within this view's post-layout coordinate space where the system should not intercept touch or other pointing device gestures.

On devices running API 28 and below, this method always returns an empty list.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to get the exclusion rects. |

| See also |
|---|---|
| `https://developer.android.com/reference/android/view/View.html#getSystemGestureExclusionRects()` |   |

### getTransitionName

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun getTransitionName(view: View): String?
```

Returns the name of the View to be used to identify Views in Transitions. Names should be unique in the View hierarchy.

This returns null if the View has not been given a name.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The View against which to invoke the method. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | The name used of the View to be used to identify Views in Transitions or null if no name has been given. |

### getTranslationX

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.getTranslationX()")
java-static fun [getTranslationX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getTranslationX(android.view.View))(view: View!): Float
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#getTranslationX()` directly.

The horizontal location of this view relative to its `https://developer.android.com/reference/android/view/View.html#getLeft()` position. This position is post-layout, in addition to wherever the object's layout placed it.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The horizontal position of this view relative to its left position, in pixels. |

### getTranslationY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.getTranslationY()")
java-static fun [getTranslationY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getTranslationY(android.view.View))(view: View!): Float
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#getTranslationY()` directly.

The vertical location of this view relative to its `https://developer.android.com/reference/android/view/View.html#getTop()` position. This position is post-layout, in addition to wherever the object's layout placed it.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The vertical position of this view relative to its top position, in pixels. |

### getTranslationZ

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun getTranslationZ(view: View): Float
```

The depth location of this view relative to its `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getElevation(android.view.View)`.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to get the translation. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The depth of this view relative to its elevation. |

### getWindowInsetsController

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/core#1.8.0)

```
java-static fun [getWindowInsetsController](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getWindowInsetsController(android.view.View))(view: View): WindowInsetsControllerCompat?
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Prefer `https://developer.android.com/reference/kotlin/androidx/core/view/WindowCompat#getInsetsController(android.view.Window,android.view.View)` to explicitly specify the window (such as when the view is in a dialog).

Retrieves a `https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsControllerCompat` of the window this view is attached to.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsControllerCompat?` | A `https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsControllerCompat` or `null` if the view is neither attached to a window nor a view tree with a decor. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/WindowCompat#getInsetsController(android.view.Window,android.view.View)` |   |

### getWindowSystemUiVisibility

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.7.0](https://developer.android.com/jetpack/androidx/releases/core#1.7.0)

```
@ReplaceWith(expression = "view.getWindowSystemUiVisibility()")
java-static fun [getWindowSystemUiVisibility](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getWindowSystemUiVisibility(android.view.View))(view: View): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> SystemUiVisibility flags are deprecated. Use `https://developer.android.com/reference/android/view/WindowInsetsController.html` instead.

Returns the current system UI visibility that is currently set for the entire window.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to get the visibility. |

### getX

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.getX()")
java-static fun [getX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getX(android.view.View))(view: View!): Float
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#getX()` directly.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view for which to get the X. |

### getY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.getY()")
java-static fun [getY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getY(android.view.View))(view: View!): Float
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#getY()` directly.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view for which to get the Y. |

### getZ

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun getZ(view: View): Float
```

The visual z position of this view, in pixels. This is equivalent to the `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setTranslationZ(android.view.View,float)` property plus the current `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getElevation(android.view.View)` property.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to get the position. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The visual z position of this view, in pixels. |

### hasAccessibilityDelegate

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun hasAccessibilityDelegate(view: View): Boolean
```

Checks whether provided View has an accessibility delegate attached to it.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The View instance to check |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | True if the View has an accessibility delegate |

### hasExplicitFocusable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun hasExplicitFocusable(view: View): Boolean
```

Returns true if this view is focusable or if it contains a reachable View for which `https://developer.android.com/reference/android/view/View.html#hasExplicitFocusable()` returns `true`. A "reachable hasExplicitFocusable()" is a view whose parents do not block descendants focus. Only `https://developer.android.com/reference/android/view/View.html#VISIBLE` views for which `https://developer.android.com/reference/android/view/View.html#getFocusable()` would return `https://developer.android.com/reference/android/view/View.html#FOCUSABLE` are considered focusable.

This method preserves the pre-`https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#O` behavior of `https://developer.android.com/reference/android/view/View.html#hasFocusable()` in that only views explicitly set focusable will cause this method to return true. A view set to `https://developer.android.com/reference/android/view/View.html#FOCUSABLE_AUTO` that resolves to focusable will not.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view on which to make the change. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if the view is focusable or if the view contains a focusable view, `false` otherwise |

### hasNestedScrollingParent

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun hasNestedScrollingParent(view: View): Boolean
```

Returns true if this view has a nested scrolling parent.

This version of the method just calls `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#hasNestedScrollingParent(android.view.View,int)` using the touch input type.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to check the parent. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | whether this view has a nested scrolling parent |

### hasNestedScrollingParent

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun hasNestedScrollingParent(view: View, type: Int): Boolean
```

Returns true if this view has a nested scrolling parent.

The presence of a nested scrolling parent indicates that this view has initiated a nested scroll and it was accepted by an ancestor view further up the view hierarchy.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to check the parent. |
| `type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the type of input which cause this scroll event |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | whether this view has a nested scrolling parent |

### hasOnClickListeners

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.hasOnClickListeners()")
java-static fun [hasOnClickListeners](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#hasOnClickListeners(android.view.View))(view: View): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#hasOnClickListeners()` directly.

Returns whether the provided view has an attached `https://developer.android.com/reference/android/view/View.OnClickListener.html`.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if there is a listener, false if there is none. |

### hasOverlappingRendering

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.hasOverlappingRendering()")
java-static fun [hasOverlappingRendering](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#hasOverlappingRendering(android.view.View))(view: View): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#hasOverlappingRendering()` directly.

Returns whether this View has content which overlaps.

This function, intended to be overridden by specific View types, is an optimization when alpha is set on a view. If rendering overlaps in a view with alpha \<1, that view is drawn to an offscreen buffer and then composited into place, which can be expensive. If the view has no overlapping rendering, the view can draw each primitive with the appropriate alpha value directly. An example of overlapping rendering is a TextView with a background image, such as a Button. An example of non-overlapping rendering is a TextView with no background, or an ImageView with only the foreground image. The default implementation returns true; subclasses should override if they have cases which can be optimized.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to get the state. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if the content in this view might overlap, false otherwise. |

### hasTransientState

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.hasTransientState()")
java-static fun [hasTransientState](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#hasTransientState(android.view.View))(view: View): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#hasTransientState()` directly.

Indicates whether the view is currently tracking transient state that the app should not need to concern itself with saving and restoring, but that the framework should take special note to preserve when possible.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | View to check for transient state |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if the view has transient state |

### isAccessibilityHeading

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@UiThread
java-static fun isAccessibilityHeading(view: View): Boolean
```

Gets whether this view is a heading for accessibility purposes.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view checked if it is a heading. Compatibility: - API \<28: Always returns `false` |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if the view is a heading, `false` otherwise. |

### isAttachedToWindow

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.isAttachedToWindow()")
java-static fun [isAttachedToWindow](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isAttachedToWindow(android.view.View))(view: View): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#isAttachedToWindow()` directly.

Returns true if the provided view is currently attached to a window.

### isFocusedByDefault

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun isFocusedByDefault(view: View): Boolean
```

Returns whether `view` should receive focus when the focus is restored for the view hierarchy containing it. Returns `false` on API \<26.

Focus gets restored for a view hierarchy when the root of the hierarchy gets added to a window or serves as a target of cluster navigation.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to check the state. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if `view` is the default-focus view, `false` otherwise. |

### isImportantForAccessibility

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun isImportantForAccessibility(view: View): Boolean
```

Computes whether this view should be exposed for accessibility. In general, views that are interactive or provide information are exposed while views that serve only as containers are hidden.

If an ancestor of this view has importance `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS()`, this method returns `false`.

Otherwise, the value is computed according to the view's `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getImportantForAccessibility(android.view.View)` value:

1. `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO()` or `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS()`, return `false
   `
2. `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_YES()`, return `true`
3. `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_AUTO()`, return `true` if view satisfies any of the following:
   - Is actionable, e.g. `https://developer.android.com/reference/android/view/View.html#isClickable()`, `https://developer.android.com/reference/android/view/View.html#isLongClickable()`, or `https://developer.android.com/reference/android/view/View.html#isFocusable()`
   - Has an `https://developer.android.com/reference/kotlin/androidx/core/view/AccessibilityDelegateCompat`
   - Has an interaction listener, e.g. `https://developer.android.com/reference/android/view/View.OnTouchListener.html`, `https://developer.android.com/reference/android/view/View.OnKeyListener.html`, etc.
   - Is an accessibility live region, e.g. `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getAccessibilityLiveRegion(android.view.View)` is not `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_NONE()`.

*Note:* Prior to API 21, this method will always return `true`.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to check the state. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the view is exposed for accessibility. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setImportantForAccessibility(android.view.View,int)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getImportantForAccessibility(android.view.View)` |   |

### isImportantForAutofill

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun isImportantForAutofill(v: View): Boolean
```

Hints the Android System whether the `https://developer.android.com/reference/android/app/assist/AssistStructure.ViewNode.html` associated with this view is considered important for autofill purposes.

Generally speaking, a view is important for autofill if:

1. The view can be autofilled by an `https://developer.android.com/reference/android/service/autofill/AutofillService.html`.
2. The view contents can help an `https://developer.android.com/reference/android/service/autofill/AutofillService.html` determine how other views can be autofilled.

For example, view containers should typically return `false` for performance reasons (since the important info is provided by their children), but if its properties have relevant information (for example, a resource id called `credentials`, it should return `true`. On the other hand, views representing labels or editable fields should typically return `true`, but in some cases they could return `false` (for example, if they're part of a "Captcha" mechanism).

The value returned by this method depends on the value returned by `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getImportantForAutofill(android.view.View)`:

1. if it returns `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_YES` or `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS`, then it returns `true`
2. if it returns `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO` or `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS`, then it returns `false`
3. if it returns `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_AUTO`, then it uses some simple heuristics that can return `true` in some cases (like a container with a resource id), but `false` in most.
4. otherwise, it returns `false`.

When a view is considered important for autofill:

- The view might automatically trigger an autofill request when focused on.
- The contents of the view are included in the `https://developer.android.com/reference/android/view/ViewStructure.html` used in an autofill request.

On the other hand, when a view is considered not important for autofill:

- The view never automatically triggers autofill requests, but it can trigger a manual request through `https://developer.android.com/reference/android/view/autofill/AutofillManager.html#requestAutofill(android.view.View)`.
- The contents of the view are not included in the `https://developer.android.com/reference/android/view/ViewStructure.html` used in an autofill request, unless the request has the `https://developer.android.com/reference/android/view/View.html#AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS` flag.

This method is only supported on API \>= 26. On API 25 and below, it will always return `true`.

| Parameters |
|---|---|
| `v: https://developer.android.com/reference/android/view/View.html` | The View against which to invoke the method. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | whether the view is considered important for autofill. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setImportantForAutofill(android.view.View,int)` |   |
| `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_AUTO` |   |
| `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_YES` |   |
| `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO` |   |
| `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS` |   |
| `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS` |   |
| `https://developer.android.com/reference/android/view/autofill/AutofillManager.html#requestAutofill(android.view.View)` |   |

### isImportantForContentCapture

Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0)

```
java-static fun isImportantForContentCapture(v: View): Boolean
```

Hints the Android System whether this view is considered important for content capture, based on the value explicitly set by setImportantForContentCapture and heuristics when it's `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_AUTO()`.

See ContentCaptureManager for more info about content capture. Compatibility behavior:

- SDK 30 and above, this method matches platform behavior.
- SDK 29 and below, this method always return false.

| Parameters |
|---|---|
| `v: https://developer.android.com/reference/android/view/View.html` | The View against which to invoke the method. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | whether the view is considered important for content capture. |

| See also |
|---|---|
| `setImportantForContentCapture(int)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_AUTO()` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_YES()` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_NO()` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS()` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS()` |   |

### isInLayout

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.isInLayout()")
java-static fun [isInLayout](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isInLayout(android.view.View))(view: View): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#isInLayout()` directly.

Returns whether the view hierarchy is currently undergoing a layout pass. This information is useful to avoid situations such as calling `https://developer.android.com/reference/android/view/View.html#requestLayout()` during a layout pass.

Compatibility:

- API \<18: Always returns `false`

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | whether the view hierarchy is currently undergoing a layout pass |

### isKeyboardNavigationCluster

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun isKeyboardNavigationCluster(view: View): Boolean
```

Returns whether `view` is a root of a keyboard navigation cluster. Always returns `false` on API \<26.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to check the cluster. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if this view is a root of a cluster, or `false` otherwise. |

### isLaidOut

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.isLaidOut()")
java-static fun [isLaidOut](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isLaidOut(android.view.View))(view: View): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#isLaidOut()` directly.

Returns true if `view` has been through at least one layout since it was last attached to or detached from a window.

### isLayoutDirectionResolved

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.isLayoutDirectionResolved()")
java-static fun [isLayoutDirectionResolved](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isLayoutDirectionResolved(android.view.View))(view: View): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#isLayoutDirectionResolved()` directly.

Returns whether layout direction has been resolved.

Compatibility:

- API \<19: Always returns `false`

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if layout direction has been resolved. |

### isNestedScrollingEnabled

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun isNestedScrollingEnabled(view: View): Boolean
```

Returns true if nested scrolling is enabled for this view.

If nested scrolling is enabled and this View class implementation supports it, this view will act as a nested scrolling child view when applicable, forwarding data about the scroll operation in progress to a compatible and cooperating nested scrolling parent.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if nested scrolling is enabled |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setNestedScrollingEnabled(android.view.View,boolean)` |   |

### isOpaque

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.isOpaque()")
java-static fun [isOpaque](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isOpaque(android.view.View))(view: View!): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#isOpaque()` directly. This method will be removed in a future release.

Indicates whether this View is opaque. An opaque View guarantees that it will draw all the pixels overlapping its bounds using a fully opaque color.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view for which to check the state. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | True if this View is guaranteed to be fully opaque, false otherwise. |

### isPaddingRelative

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.isPaddingRelative()")
java-static fun [isPaddingRelative](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isPaddingRelative(android.view.View))(view: View): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#isPaddingRelative()` directly.

Return if the padding as been set through relative values `View.setPaddingRelative(int, int, int, int)` or thru

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to get the state. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if the padding is relative or false if it is not. |

### isScreenReaderFocusable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@UiThread
java-static fun isScreenReaderFocusable(view: View): Boolean
```

Returns whether the view should be treated as a focusable unit by screen reader accessibility tools.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view to check for screen reader focusability. Compatibility: - API \<19: Always returns `false` |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the view should be treated as a focusable unit by screen reader. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScreenReaderFocusable(android.view.View,boolean)` |   |

### jumpDrawablesToCurrentState

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.jumpDrawablesToCurrentState()")
java-static fun [jumpDrawablesToCurrentState](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#jumpDrawablesToCurrentState(android.view.View))(view: View!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#jumpDrawablesToCurrentState()` directly.

On API 11 devices and above, call `Drawable.jumpToCurrentState()` on all Drawable objects associated with this view.

On API 21 and above, also calls `StateListAnimator#jumpToCurrentState()` if there is a StateListAnimator attached to this view.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view for which to jump the drawable state. |

### keyboardNavigationClusterSearch

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun keyboardNavigationClusterSearch(
    view: View,
    currentCluster: View?,
    direction: Int
): View?
```

Find the nearest keyboard navigation cluster in the specified direction. This does not actually give focus to that cluster.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view on which to do the search. |
| `currentCluster: https://developer.android.com/reference/android/view/View.html?` | The starting point of the search. `null` means the current cluster is not found yet. |
| `direction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Direction to look. Value is one of the following: - `View.FOCUS_LEFT` - `View.FOCUS_UP` - `View.FOCUS_RIGHT` - `View.FOCUS_DOWN` - `View.FOCUS_FORWARD` - `View.FOCUS_BACKWARD` <br /> |

| Returns |
|---|---|
| `https://developer.android.com/reference/android/view/View.html?` | the nearest keyboard navigation cluster in the specified direction, or `null` if one can't be found or if API \<26. |

### offsetLeftAndRight

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun offsetLeftAndRight(view: View, offset: Int): Unit
```

Offset this view's horizontal location by the specified amount of pixels.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view which needs to be offset. |
| `offset: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the number of pixels to offset the view by |

### offsetTopAndBottom

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun offsetTopAndBottom(view: View, offset: Int): Unit
```

Offset this view's vertical location by the specified number of pixels.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view that needs to be offset. |
| `offset: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the number of pixels to offset the view by |

### onApplyWindowInsets

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun onApplyWindowInsets(view: View, insets: WindowInsetsCompat): WindowInsetsCompat
```

Called when the view should apply `https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsCompat` according to its internal policy.

Clients may supply an `https://developer.android.com/reference/kotlin/androidx/core/view/OnApplyWindowInsetsListener` to a view. If one is set it will be called during dispatch instead of this method. The listener may optionally call this method from its own implementation if it wishes to apply the view's default insets policy in addition to its own.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The View against which to invoke the method. |
| `insets: https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsCompat` | Insets to apply |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsCompat` | The supplied insets with any applied insets consumed |

### onInitializeAccessibilityEvent

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "v.onInitializeAccessibilityEvent(event)")
java-static fun [onInitializeAccessibilityEvent](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#onInitializeAccessibilityEvent(android.view.View,android.view.accessibility.AccessibilityEvent))(v: View!, event: AccessibilityEvent!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#onInitializeAccessibilityEvent(android.view.accessibility.AccessibilityEvent)` directly. This method will be removed in a future release.

Initializes an `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html` with information about this View which is the event source. In other words, the source of an accessibility event is the view whose state change triggered firing the event.

Example: Setting the password property of an event in addition to properties set by the super implementation:

```kotlin
 public void onInitializeAccessibilityEvent(AccessibilityEvent event) {
    super.onInitializeAccessibilityEvent(event);
    event.setPassword(true);
}
```

If an `https://developer.android.com/reference/kotlin/androidx/core/view/AccessibilityDelegateCompat` has been specified via calling `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setAccessibilityDelegate(android.view.View,androidx.core.view.AccessibilityDelegateCompat)`, its `https://developer.android.com/reference/kotlin/androidx/core/view/AccessibilityDelegateCompat#onInitializeAccessibilityEvent(android.view.View,android.view.accessibility.AccessibilityEvent)` is responsible for handling this call.

| Parameters |
|---|---|
| `v: https://developer.android.com/reference/android/view/View.html!` | The View against which to invoke the method. |
| `event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html!` | The event to initialize. |

| See also |
|---|---|
| `https://developer.android.com/reference/android/view/View.html#sendAccessibilityEvent(int)` |   |
| `https://developer.android.com/reference/android/view/View.html#dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)` |   |

### onInitializeAccessibilityNodeInfo

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "v.onInitializeAccessibilityNodeInfo(info.unwrap())")
java-static fun [onInitializeAccessibilityNodeInfo](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#onInitializeAccessibilityNodeInfo(android.view.View,androidx.core.view.accessibility.AccessibilityNodeInfoCompat))(
    v: View,
    info: AccessibilityNodeInfoCompat
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#onInitializeAccessibilityNodeInfo(android.view.accessibility.AccessibilityNodeInfo)` directly.

Initializes an `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` with information about this view. The base implementation sets:

- `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setParent(android.view.View)`,
- `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setBoundsInParent(android.graphics.Rect)`,
- `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setBoundsInScreen(android.graphics.Rect)`,
- `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setPackageName(java.lang.CharSequence)`,
- `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setClassName(java.lang.CharSequence)`,
- `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setContentDescription(java.lang.CharSequence)`,
- `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setStateDescription(java.lang.CharSequence)`,
- `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setEnabled(boolean)`,
- `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setClickable(boolean)`,
- `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setFocusable(boolean)`,
- `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setFocused(boolean)`,
- `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setLongClickable(boolean)`,
- `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setSelected(boolean)`,

If an `https://developer.android.com/reference/kotlin/androidx/core/view/AccessibilityDelegateCompat` has been specified via calling `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setAccessibilityDelegate(android.view.View,androidx.core.view.AccessibilityDelegateCompat)`, its `https://developer.android.com/reference/kotlin/androidx/core/view/AccessibilityDelegateCompat#onInitializeAccessibilityNodeInfo(android.view.View,androidx.core.view.accessibility.AccessibilityNodeInfoCompat)` method is responsible for handling this call.

| Parameters |
|---|---|
| `v: https://developer.android.com/reference/android/view/View.html` | The View against which to invoke the method. |
| `info: https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | The instance to initialize. |

### onPopulateAccessibilityEvent

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "v.onPopulateAccessibilityEvent(event)")
java-static fun [onPopulateAccessibilityEvent](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#onPopulateAccessibilityEvent(android.view.View,android.view.accessibility.AccessibilityEvent))(v: View!, event: AccessibilityEvent!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#onPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)` directly. This method will be removed in a future release.

Called from `https://developer.android.com/reference/android/view/View.html#dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)` giving a chance to this View to populate the accessibility event with its text content.

**Note:** This method should only be used with `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getText()`. Avoid mutating other event state in this method. Instead, follow the practices described in dispatchPopulateAccessibilityEvent. In general, put UI metadata in the node for services to easily query, than in events.

Example: Adding formatted date string to an accessibility event in addition to the text added by the super implementation:

```kotlin
 public void onPopulateAccessibilityEvent(AccessibilityEvent event) {
    super.onPopulateAccessibilityEvent(event);
    final int flags = DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_SHOW_WEEKDAY;
    String selectedDateUtterance = DateUtils.formatDateTime(mContext,
        mCurrentDate.getTimeInMillis(), flags);
    event.getText().add(selectedDateUtterance);
}
```

If an `https://developer.android.com/reference/kotlin/androidx/core/view/AccessibilityDelegateCompat` has been specified via calling `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setAccessibilityDelegate(android.view.View,androidx.core.view.AccessibilityDelegateCompat)` its `https://developer.android.com/reference/kotlin/androidx/core/view/AccessibilityDelegateCompat#onPopulateAccessibilityEvent(android.view.View,android.view.accessibility.AccessibilityEvent)` is responsible for handling this call.

**Note:** Always call the super implementation before adding information to the event, in case the default implementation has basic information to add.

| Parameters |
|---|---|
| `v: https://developer.android.com/reference/android/view/View.html!` | The View against which to invoke the method. |
| `event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html!` | The accessibility event which to populate. |

| See also |
|---|---|
| `https://developer.android.com/reference/android/view/View.html#sendAccessibilityEvent(int)` |   |
| `https://developer.android.com/reference/android/view/View.html#dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)` |   |

### performAccessibilityAction

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.performAccessibilityAction(action, arguments)")
java-static fun [performAccessibilityAction](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#performAccessibilityAction(android.view.View,int,android.os.Bundle))(view: View, action: Int, arguments: Bundle?): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#performAccessibilityAction(int, android.os.Bundle)` directly.

Performs the specified accessibility action on the view. For possible accessibility actions look at `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat`.

If an `https://developer.android.com/reference/kotlin/androidx/core/view/AccessibilityDelegateCompat` has been specified via calling `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setAccessibilityDelegate(android.view.View,androidx.core.view.AccessibilityDelegateCompat)` its `https://developer.android.com/reference/kotlin/androidx/core/view/AccessibilityDelegateCompat#performAccessibilityAction(android.view.View,int,android.os.Bundle)` is responsible for handling this call.

**Note:** Avoid setting accessibility focus with `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_ACCESSIBILITY_FOCUS()`. This is intended to be controlled by screen readers. Apps changing focus can confuse screen readers, and the resulting behavior can vary by device and screen reader version.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view on which to perform the action. |
| `action: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The action to perform. |
| `arguments: https://developer.android.com/reference/android/os/Bundle.html?` | Optional action arguments. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the action was performed. |

### performHapticFeedback

Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0)

```
java-static fun performHapticFeedback(view: View, feedbackConstant: Int): Boolean
```

Perform a haptic feedback to the user for the view.

The framework will provide haptic feedback for some built in actions, such as long presses, but you may wish to provide feedback for your own widget.

The feedback will only be performed if `https://developer.android.com/reference/android/view/View.html#isHapticFeedbackEnabled()` is true. *Note:* Check compatibility support for each feedback constant described at `https://developer.android.com/reference/kotlin/androidx/core/view/HapticFeedbackConstantsCompat`.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view. |
| `feedbackConstant: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | One of the constants defined in `https://developer.android.com/reference/kotlin/androidx/core/view/HapticFeedbackConstantsCompat` |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the feedback might be performed - generally this result should be ignored |

### performHapticFeedback

Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0)

```
java-static fun performHapticFeedback(view: View, feedbackConstant: Int, flags: Int): Boolean
```

Perform a haptic feedback to the user for the view.

This is similar to `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#performHapticFeedback(android.view.View,int)`, with additional options. *Note:* Check compatibility support for each feedback constant described at `https://developer.android.com/reference/kotlin/androidx/core/view/HapticFeedbackConstantsCompat`.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view. |
| `feedbackConstant: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | One of the constants defined in `https://developer.android.com/reference/kotlin/androidx/core/view/HapticFeedbackConstantsCompat` |
| `flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Additional flags as per `https://developer.android.com/reference/kotlin/androidx/core/view/HapticFeedbackConstantsCompat` |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the feedback might be performed - generally this result should be ignored |

### performReceiveContent

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
java-static fun performReceiveContent(view: View, payload: ContentInfoCompat): ContentInfoCompat?
```

Receives the given content.

If a listener is set, invokes the listener. If the listener returns a non-null result, executes the fallback handling for the portion of the content returned by the listener.

If no listener is set, executes the fallback handling.

The fallback handling is defined by the target view if the view implements `https://developer.android.com/reference/kotlin/androidx/core/view/OnReceiveContentViewBehavior`, or is simply a no-op.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The target view. |
| `payload: https://developer.android.com/reference/kotlin/androidx/core/view/ContentInfoCompat` | The content to insert and related metadata. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ContentInfoCompat?` | The portion of the passed-in content that was not handled (may be all, some, or none of the passed-in content). |

### postInvalidateOnAnimation

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.postInvalidateOnAnimation()")
java-static fun [postInvalidateOnAnimation](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#postInvalidateOnAnimation(android.view.View))(view: View): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#postInvalidateOnAnimation()` directly.

Cause an invalidate to happen on the next animation time step, typically the next display frame.

This method can be invoked from outside of the UI thread only when this View is attached to a window.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | View to invalidate |

### postInvalidateOnAnimation

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.postInvalidateOnAnimation(left, top, right, bottom)")
java-static fun [postInvalidateOnAnimation](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#postInvalidateOnAnimation(android.view.View,int,int,int,int))(
    view: View,
    left: Int,
    top: Int,
    right: Int,
    bottom: Int
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#postInvalidateOnAnimation(int, int, int, int)` directly.

Cause an invalidate of the specified area to happen on the next animation time step, typically the next display frame.

This method can be invoked from outside of the UI thread only when this View is attached to a window.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | View to invalidate |
| `left: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The left coordinate of the rectangle to invalidate. |
| `top: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The top coordinate of the rectangle to invalidate. |
| `right: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The right coordinate of the rectangle to invalidate. |
| `bottom: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The bottom coordinate of the rectangle to invalidate. |

### postOnAnimation

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.postOnAnimation(action)")
java-static fun [postOnAnimation](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#postOnAnimation(android.view.View,java.lang.Runnable))(view: View, action: Runnable): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#postOnAnimation(java.lang.Runnable)` directly.

Causes the Runnable to execute on the next animation time step. The runnable will be run on the user interface thread.

This method can be invoked from outside of the UI thread only when this View is attached to a window.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | View to post this Runnable to |
| `action: https://developer.android.com/reference/java/lang/Runnable.html` | The Runnable that will be executed. |

### postOnAnimationDelayed

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.postOnAnimationDelayed(action, delayMillis)")
java-static fun [postOnAnimationDelayed](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#postOnAnimationDelayed(android.view.View,java.lang.Runnable,long))(view: View, action: Runnable, delayMillis: Long): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#postOnAnimationDelayed(java.lang.Runnable, long)` directly.

Causes the Runnable to execute on the next animation time step, after the specified amount of time elapses. The runnable will be run on the user interface thread.

This method can be invoked from outside of the UI thread only when this View is attached to a window.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view to post this Runnable to |
| `action: https://developer.android.com/reference/java/lang/Runnable.html` | The Runnable that will be executed. |
| `delayMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The delay (in milliseconds) until the Runnable will be executed. |

### removeAccessibilityAction

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun removeAccessibilityAction(view: View, actionId: Int): Unit
```

Removes an accessibility action that can be performed on a node associated with a view. If the action was not already added to the view, calling this method has no effect.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view |
| `actionId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The actionId of the action to be removed. |

### removeOnUnhandledKeyEventListener

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun removeOnUnhandledKeyEventListener(
    view: View,
    listener: ViewCompat.OnUnhandledKeyEventListenerCompat
): Unit
```

Removes a listener which will receive unhandled `https://developer.android.com/reference/android/view/KeyEvent.html`s. This must be called on the UI thread.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view from which to remove the listener. |
| `listener: https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat.OnUnhandledKeyEventListenerCompat` | a receiver of unhandled `https://developer.android.com/reference/android/view/KeyEvent.html`s. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#addOnUnhandledKeyEventListener(android.view.View,androidx.core.view.ViewCompat.OnUnhandledKeyEventListenerCompat)` |   |

### replaceAccessibilityAction

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun replaceAccessibilityAction(
    view: View,
    replacedAction: AccessibilityNodeInfoCompat.AccessibilityActionCompat,
    label: CharSequence?,
    command: AccessibilityViewCommand?
): Unit
```

Replaces an action. This can be used to change the default behavior or label of the action specified. If label and command are both `null`, the action will be removed.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view. |
| `replacedAction: https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat` | The action to be replaced. |
| `label: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?` | The user facing description of the action or `null`. |
| `command: https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityViewCommand?` | The command performed when the service requests the action. Compatibility: - API \<21: No-op |

### requestApplyInsets

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun requestApplyInsets(view: View): Unit
```

Ask that a new dispatch of `View.onApplyWindowInsets(WindowInsets)` be performed. This falls back to `View.requestFitSystemWindows()` where available.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to send the request. |

### requireViewById

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun <T : View?> requireViewById(view: View, id: @IdRes Int): T
```

Finds the first descendant view with the given ID, the view itself if the ID matches `https://developer.android.com/reference/android/view/View.html#getId()`, or throws an IllegalArgumentException if the ID is invalid or there is no matching view in the hierarchy.

**Note:** In most cases -- depending on compiler support -- the resulting view is automatically cast to the target class type. If the target class type is unconstrained, an explicit cast may be necessary.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | the view to start the search from. |
| `id: @https://developer.android.com/reference/kotlin/androidx/annotation/IdRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the ID to search for |

| Returns |
|---|---|
| `T` | a view with given ID |

| See also |
|---|---|
| `https://developer.android.com/reference/android/view/View.html#findViewById(int)` |   |

### resolveSizeAndState

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun [resolveSizeAndState](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#resolveSizeAndState(int,int,int))(size: Int, measureSpec: Int, childMeasuredState: Int): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#resolveSizeAndState(int, int, int)` directly.

Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#MEASURED_SIZE_MASK()` bits and optionally the bit `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#MEASURED_STATE_TOO_SMALL()` set if the resulting size is smaller than the size the view wants to be.

| Parameters |
|---|---|
| `size: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | How big the view wants to be |
| `measureSpec: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Constraints imposed by the parent |
| `childMeasuredState: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Size information bit mask for the view's children. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Size information bit mask as defined by `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#MEASURED_SIZE_MASK()` and `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#MEASURED_STATE_TOO_SMALL()`. |

### restoreDefaultFocus

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun restoreDefaultFocus(view: View): Boolean
```

Gives focus to the default-focus view in the view hierarchy rooted at `view`. If the default-focus view cannot be found or if API \<26, this falls back to calling `https://developer.android.com/reference/android/view/View.html#requestFocus(int)`.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view on which to make the change. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if `view` or one of its descendants took focus, `false` otherwise. |

### saveAttributeDataForStyleable

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/core#1.3.0)

```
java-static fun saveAttributeDataForStyleable(
    view: View,
    context: Context,
    styleable: IntArray<Int>,
    attrs: AttributeSet?,
    t: TypedArray,
    defStyleAttr: Int,
    defStyleRes: Int
): Unit
```

Stores debugging information about attributes. This should be called in a constructor by every custom `https://developer.android.com/reference/android/view/View.html` that uses a custom styleable. If the custom view does not call it, then the custom attributes used by this view will not be visible in layout inspection tools. No-op before API 29.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to save the data. |
| `context: https://developer.android.com/reference/android/content/Context.html` | Context under which this view is created. |
| `styleable: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>` | A reference to styleable array R.styleable.Foo |
| `attrs: https://developer.android.com/reference/android/util/AttributeSet.html?` | AttributeSet used to construct this view. |
| `t: https://developer.android.com/reference/android/content/res/TypedArray.html` | Resolved `https://developer.android.com/reference/android/content/res/TypedArray.html` returned by a call to `https://developer.android.com/reference/android/content/res/Resources.html#obtainAttributes(android.util.AttributeSet, int[])`. |
| `defStyleAttr: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Default style attribute passed into the view constructor. |
| `defStyleRes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Default style resource passed into the view constructor. |

### setAccessibilityDelegate

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun setAccessibilityDelegate(v: View, delegate: AccessibilityDelegateCompat?): Unit
```

Sets a delegate for implementing accessibility support via composition (as opposed to inheritance). For more details, see `https://developer.android.com/reference/kotlin/androidx/core/view/AccessibilityDelegateCompat`.

**Note:** On platform versions prior to `https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#M`, delegate methods on views in the `android.widget.*` package are called *before* host methods. This prevents certain properties such as class name from being modified by overriding `https://developer.android.com/reference/kotlin/androidx/core/view/AccessibilityDelegateCompat#onInitializeAccessibilityNodeInfo(android.view.View,androidx.core.view.accessibility.AccessibilityNodeInfoCompat)`, as any changes will be overwritten by the host class.

Starting in `https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#M`, delegate methods are called *after* host methods, which all properties to be modified without being overwritten by the host class.

If an AccessibilityDelegateCompat is already attached to the view, and this method sets the delegate to null, an empty delegate will be attached to ensure that other compatibility behavior continues to work for this view.

| Parameters |
|---|---|
| `v: https://developer.android.com/reference/android/view/View.html` | view for which to set the delegate. |
| `delegate: https://developer.android.com/reference/kotlin/androidx/core/view/AccessibilityDelegateCompat?` | the object to which accessibility method calls should be delegated |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/AccessibilityDelegateCompat` |   |

### setAccessibilityHeading

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@UiThread
java-static fun setAccessibilityHeading(view: View, isHeading: Boolean): Unit
```

Set if view is a heading for a section of content for accessibility purposes.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view to set if it is a heading. |
| `isHeading: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if the view is a heading, `false` otherwise. Compatibility: - API \<28: No-op |

### setAccessibilityLiveRegion

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.setAccessibilityLiveRegion(mode)")
java-static fun [setAccessibilityLiveRegion](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setAccessibilityLiveRegion(android.view.View,int))(view: View, mode: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#setAccessibilityLiveRegion(int)` directly.

Sets the live region mode for this view. This indicates to accessibility services whether they should automatically notify the user about changes to the view's content description or text, or to the content descriptions or text of the view's children (where applicable).

To indicate that the user should be notified of changes, use `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_POLITE()`. Announcements from this region are queued and do not disrupt ongoing speech.

For example, selecting an option in a dropdown menu may update a panel below with the updated content. This panel may be marked as a live region with `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_POLITE()` to notify users of the change.

For notifying users about errors, such as in a login screen with text that displays an "incorrect password" notification, that view should send an AccessibilityEvent of type `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#CONTENT_CHANGE_TYPE_ERROR` and set `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html#setError(java.lang.CharSequence)` instead. Custom widgets should expose error-setting methods that support accessibility automatically. For example, instead of explicitly sending this event when using a TextView, use `https://developer.android.com/reference/android/widget/TextView.html#setError(java.lang.CharSequence)`.

To disable change notifications for this view, use `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_NONE()`. This is the default live region mode for most views.

If the view's changes should interrupt ongoing speech and notify the user immediately, use `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_ASSERTIVE()`. This may result in disruptive announcements from an accessibility service, so it should generally be used only to convey information that is time-sensitive or critical for use of the application. Examples may include an incoming call or an emergency alert.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view on which to set the live region mode |
| `mode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The live region mode for this view, one of: - `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_NONE()` - `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_POLITE()` - `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_ASSERTIVE()` |

### setAccessibilityPaneTitle

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@UiThread
java-static fun setAccessibilityPaneTitle(
    view: View,
    accessibilityPaneTitle: CharSequence?
): Unit
```

Visually distinct portion of a window with window-like semantics are considered panes for accessibility purposes. One example is the content view of a large fragment that is replaced. In order for accessibility services to understand a pane's window-like behavior, panes should have descriptive titles. Views with pane titles produce `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_WINDOW_STATE_CHANGED`s when they appear, disappear, or change title.

When transitioning from one Activity to another, instead of using setAccessibilityPaneTitle(), set a descriptive title for your activity's window by using `android:label` for the matching entry in your application's manifest or updating the title at runtime with .

To set the pane title in xml, use `android:accessibilityPaneTitle`.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view whose pane title should be set. |
| `accessibilityPaneTitle: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?` | The pane's title. Setting to `null` indicates that this View is not a pane. Compatibility: - API \<19: No-op {@see AccessibilityNodeInfo#setPaneTitle(CharSequence)} |

### setActivated

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.setActivated(activated)")
java-static fun [setActivated](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setActivated(android.view.View,boolean))(view: View!, activated: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#setActivated(boolean)` directly.

Changes the activated state of this view. A view can be activated or not. Note that activation is not the same as selection. Selection is a transient property, representing the view (hierarchy) the user is currently interacting with. Activation is a longer-term state that the user can move views in and out of.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view for which to set the state. |
| `activated: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if the view must be activated, false otherwise |

### setAlpha

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.setAlpha(value)")
java-static fun [setAlpha](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setAlpha(android.view.View,float))(view: View!, value: @FloatRange(from = 0.0, to = 1.0) Float): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#setAlpha(float)` directly.

Sets the opacity of the view. This is a value from 0 to 1, where 0 means the view is completely transparent and 1 means the view is completely opaque.

Note that setting alpha to a translucent value (0 \<1) can have significant performance implications, especially for large views. It is best to use the alpha property sparingly and transiently, as in the case of fading animations.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view to set the alpha on. |
| `value: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0, to = 1.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The opacity of the view. |

### setAutofillHints

```
java-static fun setAutofillHints(view: View, autofillHints: Array<String!>?): Unit
```

Sets the hints that help an `https://developer.android.com/reference/android/service/autofill/AutofillService.html` determine how to autofill the view with the user's data.

Typically, there is only one way to autofill a view, but there could be more than one. For example, if the application accepts either an username or email address to identify an user.

These hints are not validated by the Android System, but passed "as is" to the service. Hence, they can have any value, but it's recommended to use the `AUTOFILL_HINT_` constants such as: `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_USERNAME`, `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_PASSWORD`, `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_EMAIL_ADDRESS`, `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_NAME`, `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_PHONE`, `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_POSTAL_ADDRESS`, `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_POSTAL_CODE`, `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_CREDIT_CARD_NUMBER`, `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE`, `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE`, `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY`, `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH` or `https://developer.android.com/reference/android/view/View.html#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR`.

This method is only supported on API \>= 26. On API 25 and below, it is a no-op

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to set the hints. |
| `autofillHints: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>?` | The autofill hints to set. If the array is emtpy, `null` is set. `https://developer.android.com/reference/android/R.attr.html#autofillHints` |

### setAutofillId

Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0)

```
java-static fun setAutofillId(v: View, id: AutofillIdCompat?): Unit
```

Sets the unique, logical identifier of this view in the activity, for autofill purposes.

The autofill id is created on demand, and this method should only be called when a view is reused after dispatchProvideAutofillStructure is called, as that method creates a snapshot of the view that is passed along to the autofill service.

This method is typically used when view subtrees are recycled to represent different content\* ---in this case, the autofill id can be saved before the view content is swapped out, and restored later when it's swapped back in. For example:

```kotlin
EditText reusableView = ...;
ViewGroup parentView = ...;
AutofillManager afm = ...;

// Swap out the view and change its contents
AutofillId oldId = reusableView.getAutofillId();
CharSequence oldText = reusableView.getText();
parentView.removeView(reusableView);
AutofillId newId = afm.getNextAutofillId();
reusableView.setText("New I am");
reusableView.setAutofillId(newId);
parentView.addView(reusableView);

// Later, swap the old content back in
parentView.removeView(reusableView);
reusableView.setAutofillId(oldId);
reusableView.setText(oldText);
parentView.addView(reusableView);
```

NOTE: If this view is a descendant of an `https://developer.android.com/reference/android/widget/AdapterView.html`, the system may reset its autofill id when this view is recycled. If the autofill ids need to be stable, they should be set again in `https://developer.android.com/reference/android/widget/Adapter.html#getView(int, android.view.View, android.view.ViewGroup)`. Compatibility behavior:

- SDK 28 and above, this method matches platform behavior.
- SDK 27 and below, this method does nothing.

| Parameters |
|---|---|
| `v: https://developer.android.com/reference/android/view/View.html` | The View against which to invoke the method. |
| `id: https://developer.android.com/reference/kotlin/androidx/core/view/autofill/AutofillIdCompat?` | an autofill ID that is unique in the `https://developer.android.com/reference/android/app/Activity.html` hosting the view, or `null` to reset it. Usually it's an id previously allocated to another view (and obtained through getAutofillId), or a new value obtained through getNextAutofillId. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | if the view is already attached to a window. |
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if the id is an autofill id associated with a virtual view. |

### setBackground

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.setBackground(background)")
java-static fun [setBackground](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setBackground(android.view.View,android.graphics.drawable.Drawable))(view: View, background: Drawable?): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#setBackground(android.graphics.drawable.Drawable)` directly.

Set the background of the `view` to a given Drawable, or remove the background. If the background has padding, `view`'s padding is set to the background's padding. However, when a background is removed, this View's padding isn't touched. If setting the padding is desired, please use `setPadding(int, int, int, int)`.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to set the background. |
| `background: https://developer.android.com/reference/android/graphics/drawable/Drawable.html?` | the drawable to use as view background. |

### setBackgroundTintList

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun setBackgroundTintList(view: View, tintList: ColorStateList?): Unit
```

Applies a tint to the background drawable.

### setBackgroundTintMode

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun setBackgroundTintMode(view: View, mode: PorterDuff.Mode?): Unit
```

Specifies the blending mode used to apply the tint specified by `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setBackgroundTintList(android.view.View,android.content.res.ColorStateList)` to the background drawable. The default mode is `https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html#SRC_IN`.

### setChildrenDrawingOrderEnabled

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun [setChildrenDrawingOrderEnabled](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setChildrenDrawingOrderEnabled(android.view.ViewGroup,boolean))(viewGroup: ViewGroup!, enabled: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/ViewGroup.html#setChildrenDrawingOrderEnabled(boolean)` directly.

Tells the ViewGroup whether to draw its children in the order defined by the method `ViewGroup.getChildDrawingOrder(int, int)`.

| Parameters |
|---|---|
| `viewGroup: https://developer.android.com/reference/android/view/ViewGroup.html!` | the ViewGroup for which to set the mode. |
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if the order of the children when drawing is determined by `https://developer.android.com/reference/android/view/ViewGroup.html#getChildDrawingOrder(int, int)`, false otherwise Prior to API 7 this will have no effect. |

### setClipBounds

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.setClipBounds(clipBounds)")
java-static fun [setClipBounds](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setClipBounds(android.view.View,android.graphics.Rect))(view: View, clipBounds: Rect?): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#setClipBounds(android.graphics.Rect)` directly.

Sets a rectangular area on this view to which the view will be clipped when it is drawn. Setting the value to null will remove the clip bounds and the view will draw normally, using its full bounds.

Prior to API 18 this does nothing.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view to set clipBounds. |
| `clipBounds: https://developer.android.com/reference/android/graphics/Rect.html?` | The rectangular area, in the local coordinates of this view, to which future drawing operations will be clipped. |

### setContentCaptureSession

Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0)

```
java-static fun setContentCaptureSession(
    v: View,
    contentCaptureSession: ContentCaptureSessionCompat?
): Unit
```

Sets the (optional) `https://developer.android.com/reference/android/view/contentcapture/ContentCaptureSession.html` associated with this view.

This method should be called when you need to associate a ContentCaptureContext to the content capture events associated with this view or its view hierarchy (if it's a `https://developer.android.com/reference/android/view/ViewGroup.html`).

For example, if your activity is associated with a web domain, first you would need to set the context for the main DOM:

```kotlin
  ContentCaptureSession mainSession = rootView.getContentCaptureSession();
  mainSession.setContentCaptureContext(ContentCaptureContext.forLocusId(Uri.parse(myUrl));
```

Then if the page had an `IFRAME`, you would create a new session for it:

```kotlin
  ContentCaptureSession iframeSession = mainSession.createContentCaptureSession(
      ContentCaptureContext.forLocusId(Uri.parse(iframeUrl)));
  iframeView.setContentCaptureSession(iframeSession);
```
Compatibility behavior:

- SDK 29 and above, this method matches platform behavior.
- SDK 28 and below, this method does nothing.

| Parameters |
|---|---|
| `v: https://developer.android.com/reference/android/view/View.html` | The View against which to invoke the method. |
| `contentCaptureSession: https://developer.android.com/reference/kotlin/androidx/core/view/contentcapture/ContentCaptureSessionCompat?` | a session created by `https://developer.android.com/reference/android/view/contentcapture/ContentCaptureSession.html#createContentCaptureSession(android.view.contentcapture.ContentCaptureContext)`. |

### setElevation

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun setElevation(view: View, elevation: Float): Unit
```

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to set the elevation. |
| `elevation: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | view elevation in pixels. Sets the base elevation of this view, in pixels. |

### setFitsSystemWindows

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.setFitsSystemWindows(fitSystemWindows)")
java-static fun [setFitsSystemWindows](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setFitsSystemWindows(android.view.View,boolean))(view: View!, fitSystemWindows: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#setFitsSystemWindows(boolean)` directly.

Sets whether or not this view should account for system screen decorations such as the status bar and inset its content; that is, controlling whether the default implementation of `https://developer.android.com/reference/android/view/View.html#fitSystemWindows(android.graphics.Rect)` will be executed. See that method for more details.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view for which to set the state. |
| `fitSystemWindows: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | whether or not this view should account for system screen decorations. |

### setFocusedByDefault

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun setFocusedByDefault(view: View, isFocusedByDefault: Boolean): Unit
```

Sets whether `view` should receive focus when the focus is restored for the view hierarchy containing it.

Focus gets restored for a view hierarchy when the root of the hierarchy gets added to a window or serves as a target of cluster navigation.

Does nothing on API \<26.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to set the state. |
| `isFocusedByDefault: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` to set `view` as the default-focus view, `false` otherwise. |

### setHasTransientState

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.setHasTransientState(hasTransientState)")
java-static fun [setHasTransientState](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setHasTransientState(android.view.View,boolean))(view: View, hasTransientState: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#setHasTransientState(boolean)` directly.

Set whether this view is currently tracking transient state that the framework should attempt to preserve when possible.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | View tracking transient state |
| `hasTransientState: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if this view has transient state |

### setImportantForAccessibility

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.setImportantForAccessibility(mode)")
@UiThread
java-static fun [setImportantForAccessibility](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setImportantForAccessibility(android.view.View,int))(view: View, mode: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#setImportantForAccessibility(int)` directly.

Sets how to determine whether this view is important for accessibility which is if it fires accessibility events and if it is reported to accessibility services that query the screen.

*Note:* If the current platform version does not support the `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS()` mode, then `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO()` will be used as it is the closest terms of semantics.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view whose property to set. |
| `mode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | How to determine whether this view is important for accessibility. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_YES()` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO()` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS()` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_AUTO()` |   |

### setImportantForAutofill

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun setImportantForAutofill(v: View, mode: Int): Unit
```

Sets the mode for determining whether this view is considered important for autofill.

The platform determines the importance for autofill automatically but you can use this method to customize the behavior. For example:

1. When the view contents is irrelevant for autofill (for example, a text field used in a "Captcha" challenge), it should be `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO`.
2. When both the view and its children are irrelevant for autofill (for example, the root view of an activity containing a spreadhseet editor), it should be `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS`.
3. When the view content is relevant for autofill but its children aren't (for example, a credit card expiration date represented by a custom view that overrides the proper autofill methods and has 2 children representing the month and year), it should be `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS`.

**NOTE:** setting the mode as does `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO` or `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS` does not guarantee the view (and its children) will be always be considered not important; for example, when the user explicitly makes an autofill request, all views are considered important. See `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isImportantForAutofill(android.view.View)` for more details about how the View's importance for autofill is used.

This method is only supported on API \>= 26. On API 25 and below, it is a no-op

| Parameters |
|---|---|
| `v: https://developer.android.com/reference/android/view/View.html` | The View against which to invoke the method. |
| `mode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_AUTO`, `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_YES`, `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO`, `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS`, or `https://developer.android.com/reference/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS`. `https://developer.android.com/reference/android/R.attr.html#importantForAutofill` Value is one of the following: - `View.IMPORTANT_FOR_AUTOFILL_AUTO` - `View.IMPORTANT_FOR_AUTOFILL_YES` - `View.IMPORTANT_FOR_AUTOFILL_NO` - `View.IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS` - `View.IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS` <br /> |

### setImportantForContentCapture

Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0)

```
java-static fun setImportantForContentCapture(v: View, mode: Int): Unit
```

Sets the mode for determining whether this view is considered important for content capture.

The platform determines the importance for autofill automatically but you can use this method to customize the behavior. Typically, a view that provides text should be marked as `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_YES()`. Compatibility behavior:

- SDK 30 and above, this method matches platform behavior.
- SDK 29 and below, this method does nothing.

ref android.R.styleable#View_importantForContentCapture

| Parameters |
|---|---|
| `v: https://developer.android.com/reference/android/view/View.html` | The View against which to invoke the method. |
| `mode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_AUTO()`, `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_YES()`, `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_NO()`, `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS()`, or `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS()`. |

### setKeyboardNavigationCluster

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun setKeyboardNavigationCluster(view: View, isCluster: Boolean): Unit
```

Set whether `view` is a root of a keyboard navigation cluster. Does nothing if API \<26.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to set the cluster. |
| `isCluster: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` to mark `view` as the root of a cluster, `false` to unmark. |

### setLabelFor

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.setLabelFor(labeledId)")
java-static fun [setLabelFor](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setLabelFor(android.view.View,int))(view: View, labeledId: @IdRes Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#setLabelFor(int)` directly.

Sets the id of a view for which a given view serves as a label for accessibility purposes.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view on which to invoke the corresponding method. |
| `labeledId: @https://developer.android.com/reference/kotlin/androidx/annotation/IdRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The labeled view id. |

### setLayerPaint

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.setLayerPaint(paint)")
java-static fun [setLayerPaint](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setLayerPaint(android.view.View,android.graphics.Paint))(view: View, paint: Paint?): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#setLayerPaint(android.graphics.Paint)` directly.

Updates the `https://developer.android.com/reference/android/graphics/Paint.html` object used with the current layer (used only if the current layer type is not set to `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE`). Changed properties of the Paint provided to `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setLayerType(android.view.View,int,android.graphics.Paint)` will be used the next time the View is redrawn, but `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setLayerPaint(android.view.View,android.graphics.Paint)` must be called to ensure that the view gets redrawn immediately.

A layer is associated with an optional `https://developer.android.com/reference/android/graphics/Paint.html` instance that controls how the layer is composed on screen. The following properties of the paint are taken into account when composing the layer:

- `https://developer.android.com/reference/android/graphics/Paint.html#getAlpha()`
- `https://developer.android.com/reference/android/graphics/Paint.html#getXfermode()`
- `https://developer.android.com/reference/android/graphics/Paint.html#getColorFilter()`

If this view has an alpha value set to \<1.0 by calling View#setAlpha(float), the alpha value of the layer's paint is replaced by this view's alpha value. Calling View#setAlpha(float) is therefore equivalent to setting a hardware layer on this view and providing a paint with the desired alpha value.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | View to set a layer paint for |
| `paint: https://developer.android.com/reference/android/graphics/Paint.html?` | The paint used to compose the layer. This argument is optional and can be null. It is ignored when the layer type is `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE` |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setLayerType(android.view.View,int,android.graphics.Paint)` |   |

### setLayerType

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.setLayerType(layerType, paint)")
java-static fun [setLayerType](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setLayerType(android.view.View,int,android.graphics.Paint))(view: View!, layerType: Int, paint: Paint!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#setLayerType(int, android.graphics.Paint)` directly.

Specifies the type of layer backing this view. The layer can be `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE`, `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_SOFTWARE` or `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_HARDWARE`.

A layer is associated with an optional `https://developer.android.com/reference/android/graphics/Paint.html` instance that controls how the layer is composed on screen. The following properties of the paint are taken into account when composing the layer:

- `https://developer.android.com/reference/android/graphics/Paint.html#getAlpha()`
- `https://developer.android.com/reference/android/graphics/Paint.html#getXfermode()`
- `https://developer.android.com/reference/android/graphics/Paint.html#getColorFilter()`

If this view has an alpha value set to \<1.0 by calling setAlpha(float), the alpha value of the layer's paint is replaced by this view's alpha value. Calling setAlpha(float) is therefore equivalent to setting a hardware layer on this view and providing a paint with the desired alpha value.

Refer to the documentation of `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE`, `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_SOFTWARE` and `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_HARDWARE` for more information on when and how to use layers.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | View to set the layer type for |
| `layerType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The type of layer to use with this view, must be one of `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE`, `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_SOFTWARE` or `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_HARDWARE` Value is one of the following: - `View.LAYER_TYPE_NONE` - `View.LAYER_TYPE_SOFTWARE` - `View.LAYER_TYPE_HARDWARE` <br /> |
| `paint: https://developer.android.com/reference/android/graphics/Paint.html!` | The paint used to compose the layer. This argument is optional and can be null. It is ignored when the layer type is `https://developer.android.com/reference/android/view/View.html#LAYER_TYPE_NONE` |

### setLayoutDirection

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.setLayoutDirection(layoutDirection)")
java-static fun [setLayoutDirection](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setLayoutDirection(android.view.View,int))(view: View, layoutDirection: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#setLayoutDirection(int)` directly.

Set the layout direction for this view. This will propagate a reset of layout direction resolution to the view's children and resolve layout direction for this view.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | View to set layout direction for |
| `layoutDirection: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the layout direction to set. Should be one of: `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#LAYOUT_DIRECTION_LTR()`, `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#LAYOUT_DIRECTION_RTL()`, `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#LAYOUT_DIRECTION_INHERIT()`, `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#LAYOUT_DIRECTION_LOCALE()`. Resolution will be done if the value is set to LAYOUT_DIRECTION_INHERIT. The resolution proceeds up the parent chain of the view to get the value. If there is no parent, then it will return the default `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#LAYOUT_DIRECTION_LTR()`. |

### setNestedScrollingEnabled

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun setNestedScrollingEnabled(view: View, enabled: Boolean): Unit
```

Enable or disable nested scrolling for this view.

If this property is set to true the view will be permitted to initiate nested scrolling operations with a compatible parent view in the current hierarchy. If this view does not implement nested scrolling this will have no effect. Disabling nested scrolling while a nested scroll is in progress has the effect of `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#stopNestedScroll(android.view.View)` the nested scroll.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to set the state. |
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true to enable nested scrolling, false to disable |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#isNestedScrollingEnabled(android.view.View)` |   |

### setNextClusterForwardId

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun setNextClusterForwardId(view: View, nextClusterForwardId: Int): Unit
```

Sets the ID of the next keyboard navigation cluster root view. Does nothing if `view` is not a keyboard navigation cluster or if API \<26.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to set the ID. |
| `nextClusterForwardId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | next cluster ID, or `https://developer.android.com/reference/android/view/View.html#NO_ID` if the framework should decide automatically. |

### setOnApplyWindowInsetsListener

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun setOnApplyWindowInsetsListener(
    view: View,
    listener: OnApplyWindowInsetsListener?
): Unit
```

Set an `https://developer.android.com/reference/kotlin/androidx/core/view/OnApplyWindowInsetsListener` to take over the policy for applying window insets to this view. This will only take effect on devices with API 21 or above.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view on which to the listener. |
| `listener: https://developer.android.com/reference/kotlin/androidx/core/view/OnApplyWindowInsetsListener?` | listener for the applied window insets. |

### setOnReceiveContentListener

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
java-static fun setOnReceiveContentListener(
    view: View,
    mimeTypes: Array<String!>?,
    listener: OnReceiveContentListener?
): Unit
```

Sets the listener to be used to handle insertion of content into the given view.

Depending on the type of view, this listener may be invoked for different scenarios. For example, for an `AppCompatEditText`, this listener will be invoked for the following scenarios:

1. Paste from the clipboard (e.g. "Paste" or "Paste as plain text" action in the insertion/selection menu)
2. Content insertion from the keyboard (from `https://developer.android.com/reference/android/view/inputmethod/InputConnection.html#commitContent(android.view.inputmethod.InputContentInfo, int, android.os.Bundle)`)
3. Drag and drop (drop events from `https://developer.android.com/reference/android/view/View.html#onDragEvent(android.view.DragEvent)`)

When setting a listener, clients must also declare the accepted MIME types. The listener will still be invoked even if the MIME type of the content is not one of the declared MIME types (e.g. if the user pastes content whose type is not one of the declared MIME types). In that case, the listener may reject the content (defer to the default platform behavior) or execute some other fallback logic (e.g. show an appropriate message to the user). The declared MIME types serve as a hint to allow different features to optionally alter their behavior. For example, a soft keyboard may optionally choose to hide its UI for inserting GIFs for a particular input field if the MIME types set here for that field don't include "image/gif" or "image/\*".

Note: MIME type matching in the Android framework is case-sensitive, unlike formal RFC MIME types. As a result, you should always write your MIME types with lowercase letters, or use `https://developer.android.com/reference/android/content/Intent.html#normalizeMimeType(java.lang.String)` to ensure that it is converted to lowercase.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The target view. |
| `mimeTypes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>?` | The MIME types accepted by the given listener. These may use patterns such as "image/\*", but may not start with a wildcard. This argument must not be null or empty if a non-null listener is passed in. |
| `listener: https://developer.android.com/reference/kotlin/androidx/core/view/OnReceiveContentListener?` | The listener to use. This can be null to reset to the default behavior. |

### setOverScrollMode

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.setOverScrollMode(overScrollMode)")
java-static fun [setOverScrollMode](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setOverScrollMode(android.view.View,int))(view: View!, overScrollMode: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#setOverScrollMode(int)` directly. This method will be removed in a future release.

Set the over-scroll mode for this view. Valid over-scroll modes are `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#OVER_SCROLL_ALWAYS()` (default), `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#OVER_SCROLL_IF_CONTENT_SCROLLS()` (allow over-scrolling only if the view content is larger than the container), or `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#OVER_SCROLL_NEVER()`. Setting the over-scroll mode of a view will have an effect only if the view is capable of scrolling.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | The View against which to invoke the method. |
| `overScrollMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The new over-scroll mode for this view. |

### setPaddingRelative

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
@ReplaceWith(expression = "view.setPaddingRelative(start, top, end, bottom)")
java-static fun [setPaddingRelative](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setPaddingRelative(android.view.View,int,int,int,int))(
    view: View,
    start: @Px Int,
    top: @Px Int,
    end: @Px Int,
    bottom: @Px Int
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/View.html#setPaddingRelative(int, int, int, int)` directly.

Sets the relative padding. The view may add on the space required to display the scrollbars, depending on the style and visibility of the scrollbars. So the values returned from `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getPaddingStart(android.view.View)`, `https://developer.android.com/reference/android/view/View.html#getPaddingTop()`, `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getPaddingEnd(android.view.View)` and `https://developer.android.com/reference/android/view/View.html#getPaddingBottom()` may be different from the values set in this call.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view on which to set relative padding |
| `start: @https://developer.android.com/reference/kotlin/androidx/annotation/Px https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the start padding in pixels |
| `top: @https://developer.android.com/reference/kotlin/androidx/annotation/Px https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the top padding in pixels |
| `end: @https://developer.android.com/reference/kotlin/androidx/annotation/Px https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the end padding in pixels |
| `bottom: @https://developer.android.com/reference/kotlin/androidx/annotation/Px https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the bottom padding in pixels |

### setPivotX

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.setPivotX(value)")
java-static fun [setPivotX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setPivotX(android.view.View,float))(view: View!, value: Float): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#setPivotX(float)` directly.

Sets the x location of the point around which the view is `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setRotation(android.view.View,float)` and `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScaleX(android.view.View,float)`. By default, the pivot point is centered on the object. Setting this property disables this behavior and causes the view to use only the explicitly set pivotX and pivotY values.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view for which to set the pivot. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x location of the pivot point. |

### setPivotY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.setPivotY(value)")
java-static fun [setPivotY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setPivotY(android.view.View,float))(view: View!, value: Float): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#setPivotX(float)` directly.

Sets the y location of the point around which the view is `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setRotation(android.view.View,float)` and `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScaleY(android.view.View,float)`. By default, the pivot point is centered on the object. Setting this property disables this behavior and causes the view to use only the explicitly set pivotX and pivotY values.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view for which to set the pivot. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y location of the pivot point. |

### setPointerIcon

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun setPointerIcon(view: View, pointerIcon: PointerIconCompat?): Unit
```

Set the pointer icon for the current view.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to set the pointer icon. |
| `pointerIcon: https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat?` | A PointerIconCompat instance which will be shown when the mouse hovers. |

### setRotation

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.setRotation(value)")
java-static fun [setRotation](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setRotation(android.view.View,float))(view: View!, value: Float): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#setRotation(float)` directly.

Sets the degrees that the view is rotated around the pivot point. Increasing values result in clockwise rotation.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view to set the rotation on. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The degrees of rotation. |

### setRotationX

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.setRotationX(value)")
java-static fun [setRotationX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setRotationX(android.view.View,float))(view: View!, value: Float): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#setRotationX(float)` directly.

Sets the degrees that the view is rotated around the horizontal axis through the pivot point. Increasing values result in clockwise rotation from the viewpoint of looking down the x axis.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view to set the rotation on. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The degrees of X rotation. |

### setRotationY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.setRotationY(value)")
java-static fun [setRotationY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setRotationY(android.view.View,float))(view: View!, value: Float): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#setRotationY(float)` directly.

Sets the degrees that the view is rotated around the vertical axis through the pivot point. Increasing values result in counter-clockwise rotation from the viewpoint of looking down the y axis.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view to set the rotation on. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The degrees of Y rotation. |

### setSaveFromParentEnabled

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.setSaveFromParentEnabled(enabled)")
java-static fun [setSaveFromParentEnabled](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setSaveFromParentEnabled(android.view.View,boolean))(view: View!, enabled: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#setSaveFromParentEnabled(boolean)` directly.

Controls whether the entire hierarchy under this view will save its state when a state saving traversal occurs from its parent.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view for which to set the state. |
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Set to false to *disable* state saving, or true (the default) to allow it. |

### setScaleX

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.setScaleX(value)")
java-static fun [setScaleX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScaleX(android.view.View,float))(view: View!, value: Float): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#setScaleX(float)` directly.

Sets the amount that the view is scaled in x around the pivot point, as a proportion of the view's unscaled width. A value of 1 means that no scaling is applied.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view to set the scale on. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The scaling factor. |

### setScaleY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.setScaleY(value)")
java-static fun [setScaleY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScaleY(android.view.View,float))(view: View!, value: Float): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#setScaleY(float)` directly.

Sets the amount that the view is scaled in Y around the pivot point, as a proportion of the view's unscaled width. A value of 1 means that no scaling is applied.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view to set the scale on. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The scaling factor. |

### setScreenReaderFocusable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@UiThread
java-static fun setScreenReaderFocusable(view: View, screenReaderFocusable: Boolean): Unit
```

Sets whether this View should be a focusable element for screen readers and include non-focusable Views from its subtree when providing feedback.

Note: this is similar to using [`android:focusable`, but does not impact input focus behavior.](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#attr_android:focusable)

[This can be used to](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#attr_android:focusable)[group related content.](https://developer.android.com/guide/topics/ui/accessibility/principles#content-groups)

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The view whose title should be set |
| `screenReaderFocusable: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the view should be treated as a unit by screen reader accessibility tools. Compatibility: - API \<19: No-op |

### setScrollIndicators

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun setScrollIndicators(view: View, indicators: Int): Unit
```

Sets the state of all scroll indicators.

See `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScrollIndicators(android.view.View,int,int)` for usage information.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to set the state. |
| `indicators: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | a bitmask of indicators that should be enabled, or `0` to disable all indicators |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScrollIndicators(android.view.View,int,int)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getScrollIndicators(android.view.View)` |   |

### setScrollIndicators

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun setScrollIndicators(view: View, indicators: Int, mask: Int): Unit
```

Sets the state of the scroll indicators specified by the mask. To change all scroll indicators at once, see `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScrollIndicators(android.view.View,int)`.

When a scroll indicator is enabled, it will be displayed if the view can scroll in the direction of the indicator.

Multiple indicator types may be enabled or disabled by passing the logical OR of the desired types. If multiple types are specified, they will all be set to the same enabled state.

For example, to enable the top scroll indicatorExample: `setScrollIndicators`

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to set the state. |
| `indicators: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the indicator direction, or the logical OR of multiple indicator directions. One or more of: - `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#SCROLL_INDICATOR_TOP()` - `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#SCROLL_INDICATOR_BOTTOM()` - `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#SCROLL_INDICATOR_LEFT()` - `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#SCROLL_INDICATOR_RIGHT()` - `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#SCROLL_INDICATOR_START()` - `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#SCROLL_INDICATOR_END()` |
| `mask: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the mask for scroll indicators. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setScrollIndicators(android.view.View,int)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getScrollIndicators(android.view.View)` |   |

### setStateDescription

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
@UiThread
java-static fun setStateDescription(view: View, stateDescription: CharSequence?): Unit
```

Sets the state description of this node.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

State refers to a frequently changing property of the View, such as an enabled/disabled state of a button or the audio level of a volume slider.

This should omit role or content. Role refers to the kind of user-interface element the View is, such as a Button or Checkbox. Content is the meaningful text and graphics that should be described by `https://developer.android.com/reference/android/view/View.html#setContentDescription(java.lang.CharSequence)` or `android:contentDescription`. It is expected that a content description mostly remains constant, while a state description updates from time to time.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to set the description. |
| `stateDescription: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?` | the state description of this node. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

| See also |
|---|---|
| `https://developer.android.com/reference/android/view/View.html#setStateDescription(java.lang.CharSequence)` |   |
| `https://developer.android.com/reference/android/view/View.html#setContentDescription(java.lang.CharSequence)` |   |

### setSystemGestureExclusionRects

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/core#1.2.0)

```
java-static fun setSystemGestureExclusionRects(view: View, rects: (Mutable)List<Rect!>): Unit
```

Sets a list of areas within this view's post-layout coordinate space where the system should not intercept touch or other pointing device gestures. *This method should be called by `https://developer.android.com/reference/android/view/View.html#onLayout(boolean, int, int, int, int)` or onDraw.*

On devices running API 28 and below, this method has no effect.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to set the exclusion rects. |
| `rects: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/graphics/Rect.html!>` | A list of precision gesture regions that this view needs to function correctly |

| See also |
|---|---|
| `https://developer.android.com/reference/android/view/View.html#setSystemGestureExclusionRects(java.util.List&lt;android.graphics.Rect&gt;)` |   |

### setTooltipText

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun setTooltipText(view: View, tooltipText: CharSequence?): Unit
```

Sets the tooltip for the view.

Prior to API 26 this does nothing. Use TooltipCompat class from v7 appcompat library for a compatible tooltip implementation.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to set the tooltip. |
| `tooltipText: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?` | the tooltip text |

### setTransitionName

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun setTransitionName(view: View, transitionName: String?): Unit
```

Sets the name of the View to be used to identify Views in Transitions. Names should be unique in the View hierarchy.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | The View against which to invoke the method. |
| `transitionName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | The name of the View to uniquely identify it for Transitions. |

### setTranslationX

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.setTranslationX(value)")
java-static fun [setTranslationX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setTranslationX(android.view.View,float))(view: View!, value: Float): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#setTranslationX(float)` directly.

Sets the horizontal location of this view relative to its left position. This effectively positions the object post-layout, in addition to wherever the object's layout placed it.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view for which to set the translation. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The horizontal position of this view relative to its left position, in pixels. |

### setTranslationY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.setTranslationY(value)")
java-static fun [setTranslationY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setTranslationY(android.view.View,float))(view: View!, value: Float): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#setTranslationY(float)` directly.

Sets the vertical location of this view relative to its top position. This effectively positions the object post-layout, in addition to wherever the object's layout placed it.

name android:translationY

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view for which to set the translation. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The vertical position of this view relative to its top position, in pixels. |

### setTranslationZ

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun setTranslationZ(view: View, translationZ: Float): Unit
```

Sets the depth location of this view relative to its `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getElevation(android.view.View)`.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to set the translation. |
| `translationZ: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | the depth of location of this view relative its elevation. |

### setWindowInsetsAnimationCallback

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
java-static fun setWindowInsetsAnimationCallback(
    view: View,
    callback: WindowInsetsAnimationCompat.Callback?
): Unit
```

Sets a `https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsAnimationCompat.Callback` to be notified about animations of windows that cause insets.

The callback's `https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsAnimationCompat.Callback#getDispatchMode()` will affect whether animation callbacks are dispatched to the children of this view.

Prior to API 30, if an `https://developer.android.com/reference/kotlin/androidx/core/view/OnApplyWindowInsetsListener` is used on the same view, be sure to always use the `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat` version of `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setOnApplyWindowInsetsListener(android.view.View,androidx.core.view.OnApplyWindowInsetsListener)`, otherwise the listener will be overridden by this method.

The insets dispatch needs to reach this view for the listener to be called. If any view consumed the insets earlier in the dispatch, this won't be called.

Prior to API 21, this method has no effect.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to set the callback. |
| `callback: https://developer.android.com/reference/kotlin/androidx/core/view/WindowInsetsAnimationCompat.Callback?` | The callback to set, or `null` to remove the currently installed callback |

### setX

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.setX(value)")
java-static fun [setX](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setX(android.view.View,float))(view: View!, value: Float): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#setX(float)` directly.

Sets the visual x position of this view, in pixels. This is equivalent to setting the `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setTranslationX(android.view.View,float)` property to be the difference between the x value passed in and the current left property of the view as determined by the layout bounds.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view to set the position on. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The visual x position of this view, in pixels. |

### setY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "view.setY(value)")
java-static fun [setY](https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setY(android.view.View,float))(view: View!, value: Float): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/View.html#setY(float)` directly.

Sets the visual y position of this view, in pixels. This is equivalent to setting the `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setTranslationY(android.view.View,float)` property to be the difference between the y value passed in and the current top property of the view as determined by the layout bounds.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | view to set the position on. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The visual y position of this view, in pixels. |

### setZ

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun setZ(view: View, z: Float): Unit
```

Sets the visual z position of this view, in pixels. This is equivalent to setting the `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#setTranslationZ(android.view.View,float)` property to be the difference between the x value passed in and the current `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#getElevation(android.view.View)` property.

Compatibility:

- API \<21: No-op

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to set the position. |
| `z: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The visual z position of this view, in pixels. |

### startDragAndDrop

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun startDragAndDrop(
    v: View,
    data: ClipData?,
    shadowBuilder: View.DragShadowBuilder,
    myLocalState: Any?,
    flags: Int
): Boolean
```

Start the drag and drop operation.

### startNestedScroll

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun startNestedScroll(view: View, axes: Int): Boolean
```

Begin a nestable scroll operation along the given axes.

This version of the method just calls `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#startNestedScroll(android.view.View,int,int)` using the touch input type.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to start the scroll. |
| `axes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Flags consisting of a combination of `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#SCROLL_AXIS_HORIZONTAL()` and/or `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#SCROLL_AXIS_VERTICAL()`. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if a cooperative parent was found and nested scrolling has been enabled for the current gesture. |

### startNestedScroll

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun startNestedScroll(view: View, axes: Int, type: Int): Boolean
```

Begin a nestable scroll operation along the given axes.

A view starting a nested scroll promises to abide by the following contract:

The view will call startNestedScroll upon initiating a scroll operation. In the case of a touch scroll this corresponds to the initial `https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_DOWN`. In the case of touch scrolling the nested scroll will be terminated automatically in the same manner as `https://developer.android.com/reference/android/view/ViewParent.html#requestDisallowInterceptTouchEvent(boolean)`. In the event of programmatic scrolling the caller must explicitly call `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#stopNestedScroll(android.view.View)` to indicate the end of the nested scroll.

If `startNestedScroll` returns true, a cooperative parent was found. If it returns false the caller may ignore the rest of this contract until the next scroll. Calling startNestedScroll while a nested scroll is already in progress will return true.

At each incremental step of the scroll the caller should invoke `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchNestedPreScroll(android.view.View,int,int,int[],int[])` once it has calculated the requested scrolling delta. If it returns true the nested scrolling parent at least partially consumed the scroll and the caller should adjust the amount it scrolls by.

After applying the remainder of the scroll delta the caller should invoke `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchNestedScroll(android.view.View,int,int,int,int,int[])`, passing both the delta consumed and the delta unconsumed. A nested scrolling parent may treat these values differently. See `https://developer.android.com/reference/kotlin/androidx/core/view/NestedScrollingParent#onNestedScroll(android.view.View,int,int,int,int)`.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view on which to start the scroll. |
| `axes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Flags consisting of a combination of `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#SCROLL_AXIS_HORIZONTAL()` and/or `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#SCROLL_AXIS_VERTICAL()`. |
| `type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the type of input which cause this scroll event |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if a cooperative parent was found and nested scrolling has been enabled for the current gesture. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#stopNestedScroll(android.view.View)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchNestedPreScroll(android.view.View,int,int,int[],int[])` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#dispatchNestedScroll(android.view.View,int,int,int,int,int[])` |   |

### stopNestedScroll

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun stopNestedScroll(view: View): Unit
```

Stop a nested scroll in progress.

This version of the method just calls `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#stopNestedScroll(android.view.View,int)` using the touch input type.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to stop the scroll. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#startNestedScroll(android.view.View,int)` |   |

### stopNestedScroll

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun stopNestedScroll(view: View, type: Int): Unit
```

Stop a nested scroll in progress.

Calling this method when a nested scroll is not currently in progress is harmless.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view for which to stop the scroll. |
| `type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the type of input which cause this scroll event |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/ViewCompat#startNestedScroll(android.view.View,int)` |   |

### transformMatrixToGlobal

Added in [1.16.0](https://developer.android.com/jetpack/androidx/releases/core#1.16.0)

```
java-static fun transformMatrixToGlobal(view: View, matrix: Matrix): Unit
```

Modifies the input matrix such that it maps on-screen coordinates to view-local coordinates for the provided view.

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html` | view to examine |
| `matrix: https://developer.android.com/reference/android/graphics/Matrix.html` | input matrix to modify |

### updateDragShadow

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
java-static fun updateDragShadow(v: View, shadowBuilder: View.DragShadowBuilder): Unit
```

Update the drag shadow while drag and drop is in progress.