Package-level declarations

Types

Link copied to clipboard
(SESL Variant) Helper for accessing AccessibilityDelegate.
Link copied to clipboard
abstract class ActionProvider
This class is a mediator for accomplishing a given task, for example sharing a file.
Link copied to clipboard
Holds all the relevant data for a request to OnReceiveContentListener.
Link copied to clipboard
Controller differential motion flings.
Link copied to clipboard
Represents an entity that may be flung by a differential motion or an entity that initiates fling on a target View.
Link copied to clipboard
A class for retrieving accurate display modes for a display.
Link copied to clipboard
Represents the area of the display that is not functional for displaying content.
Link copied to clipboard
Compatibility class for representing the physical shape of a display.
Link copied to clipboard
Helper for accessing features in DragAndDropPermissions a backwards compatible fashion.
Link copied to clipboard
open class DragStartHelper
DragStartHelper is a utility class for implementing drag and drop support.
Link copied to clipboard
Detects various gestures and events using the supplied MotionEvents.
Link copied to clipboard
Compatibility shim for accessing newer functionality from Gravity.
Link copied to clipboard
Helper class for accessing values in android.view.HapticFeedbackConstants.
Link copied to clipboard
Helper class for accessing values in android.view.InputDevice.
Link copied to clipboard
Allows dependent components to enable full KeyEvent dispatch compatibility in core.
Link copied to clipboard
Helper for accessing features in LayoutInflater.
Link copied to clipboard
Used with LayoutInflaterCompat.setFactory().
Link copied to clipboard
Helper for accessing API features in MarginLayoutParams in a backwards compatible way.
Link copied to clipboard
Helper for accessing features in Menu.
Link copied to clipboard
interface MenuHost
A class that allows you to host and keep track of MenuProviders that will supply android.view.MenuItems to the app bar.
Link copied to clipboard
open class MenuHostHelper
Helper class for implementing MenuHost.
Link copied to clipboard
(SESL modified) Helper for accessing features in MenuItem.
Link copied to clipboard
interface MenuProvider
Interface for indicating that a component will be supplying MenuItems to the component owning the app bar.
Link copied to clipboard
Helper for accessing features in MotionEvent.
Link copied to clipboard
This interface should be implemented by View subclasses that wish to support dispatching nested scrolling operations to a cooperating parent ViewGroup.
Link copied to clipboard
This interface should be implemented by View subclasses that wish to support dispatching nested scrolling operations to a cooperating parent ViewGroup.
Link copied to clipboard
This interface should be implemented by View subclasses that wish to support dispatching nested scrolling operations to a cooperating parent ViewGroup.
Link copied to clipboard
Helper class for implementing nested scrolling child views compatible with Android platform versions earlier than Android 5.0 Lollipop (API 21).
Link copied to clipboard
This interface should be implemented by ViewGroup subclasses that wish to support scrolling operations delegated by a nested child view.
Link copied to clipboard
This interface should be implemented by ViewGroup subclasses that wish to support scrolling operations delegated by a nested child view.
Link copied to clipboard
This interface should be implemented by ViewGroup subclasses that wish to support scrolling operations delegated by a nested child view.
Link copied to clipboard
Helper class for implementing nested scrolling parent views compatible with Android platform versions earlier than Android 5.0 Lollipop (API 21).
Link copied to clipboard
Listener for applying window insets on a view in a custom way.
Link copied to clipboard
An OnPreDrawListener that will remove itself after one OnPreDraw call.
Link copied to clipboard
Listener for apps to implement handling for insertion of content.
Link copied to clipboard
Interface for widgets to implement default behavior for receiving content.
Link copied to clipboard
Helper for accessing features in PointerIcon in a backwards compatible fashion.
Link copied to clipboard
Represents a rounded corner of the display.
Link copied to clipboard
Helper for accessing features in ScaleGestureDetector.
Link copied to clipboard
Compat to access ScrollFeedbackProvider across different build versions.
Link copied to clipboard
interface ScrollingView
An interface that can be implemented by Views to provide scroll related APIs.
Link copied to clipboard

Provides compatibility methods for Samsung's blur effects.

Link copied to clipboard
Compatibility class for accessing Samsung S-Pen stylus pointer icon types.
Link copied to clipboard
Link copied to clipboard
Provide controls for showing and hiding the IME.
Link copied to clipboard
Interface which allows a android.view.View to receive background tinting calls from ViewCompat when running on API v20 devices or lower.
Link copied to clipboard
Helper for accessing features in VelocityTracker.
Link copied to clipboard
open class ViewCompat
Helper for accessing features in View.
Link copied to clipboard
Helper for accessing features in ViewConfiguration.
Link copied to clipboard
Helper for accessing features in ViewGroup.
Link copied to clipboard
Helper for accessing features in ViewParent.
Link copied to clipboard
An animation listener receives notifications from an animation.
Link copied to clipboard
This adapter class provides empty implementations of the methods from ViewPropertyAnimatorListener.
Link copied to clipboard
Implementors of this interface can add themselves as update listeners to an ViewPropertyAnimatorCompat instance to receive callbacks on every animation frame, after the current frame's values have been calculated for that ViewPropertyAnimatorCompat.
Link copied to clipboard
Helper for accessing features in ViewStructure.
Link copied to clipboard
Helper for accessing features in Window.
Link copied to clipboard
Class representing an animation of a set of windows that cause insets.
Link copied to clipboard
Controller for app-driven animation of system windows.
Listener that encapsulates a request to controlWindowInsetsAnimation.
Link copied to clipboard
Describes a set of insets for window content.
Link copied to clipboard
Provide simple controls of windows that generate insets.

Properties

Link copied to clipboard

Returns a Sequence over this view and its descendants recursively. This is a depth-first traversal similar to View.findViewById. A view with no children will return a single-element sequence of itself.

Link copied to clipboard

Returns a Sequence of the parent chain of this view by repeatedly calling View.getParent. An unattached view will return a zero-element sequence.

Link copied to clipboard

Returns a Sequence over the items in this menu.

Returns a Sequence over the immediate child views in this view group.

Link copied to clipboard

Returns a Sequence over the child views in this view group recursively.

Link copied to clipboard

Returns an IntRange of the valid indices for the children of this view group.

Link copied to clipboard

Returns true when this view's visibility is View.GONE, false otherwise.

Link copied to clipboard

Returns true when this view's visibility is View.INVISIBLE, false otherwise.

Link copied to clipboard

Returns true when this view's visibility is View.VISIBLE, false otherwise.

Link copied to clipboard

Returns the bottom margin if this view's ViewGroup.LayoutParams is a ViewGroup.MarginLayoutParams, otherwise 0.

Link copied to clipboard

Returns the end margin if this view's ViewGroup.LayoutParams is a ViewGroup.MarginLayoutParams, otherwise 0.

Link copied to clipboard

Returns the left margin if this view's ViewGroup.LayoutParams is a ViewGroup.MarginLayoutParams, otherwise 0.

Link copied to clipboard

Returns the right margin if this view's ViewGroup.LayoutParams is a ViewGroup.MarginLayoutParams, otherwise 0.

Link copied to clipboard

Returns the start margin if this view's ViewGroup.LayoutParams is a ViewGroup.MarginLayoutParams, otherwise 0.

Link copied to clipboard

Returns the top margin if this view's ViewGroup.LayoutParams is a ViewGroup.MarginLayoutParams, otherwise 0.

Link copied to clipboard

Returns the number of items in this menu.

Returns the number of views in this view group.

Functions

Link copied to clipboard
operator fun Menu.contains(item: MenuItem): Boolean

Returns true if item is found in this menu.

inline operator fun ViewGroup.contains(view: View): Boolean

Returns true if view is found in this view group.

Link copied to clipboard
inline fun View.doOnAttach(crossinline action: (view: View) -> Unit)

Performs the given action when this view is attached to a window. If the view is already attached to a window the action will be performed immediately, otherwise the action will be performed after the view is next attached.

Link copied to clipboard
inline fun View.doOnDetach(crossinline action: (view: View) -> Unit)

Performs the given action when this view is detached from a window. If the view is not attached to a window the action will be performed immediately, otherwise the action will be performed after the view is detached from its current window.

Link copied to clipboard
inline fun View.doOnLayout(crossinline action: (view: View) -> Unit)

Performs the given action when this view is laid out. If the view has been laid out and it has not requested a layout, the action will be performed straight away, otherwise the action will be performed after the view is next laid out.

Link copied to clipboard
inline fun View.doOnNextLayout(crossinline action: (view: View) -> Unit)

Performs the given action when this view is next laid out.

Link copied to clipboard
inline fun View.doOnPreDraw(crossinline action: (view: View) -> Unit): OneShotPreDrawListener

Performs the given action when the view tree is about to be drawn.

Link copied to clipboard
fun View.drawToBitmap(config: Bitmap.Config = Bitmap.Config.ARGB_8888): Bitmap

Return a Bitmap representation of this View.

Link copied to clipboard
inline fun Menu.forEach(action: (item: MenuItem) -> Unit)

Performs the given action on each item in this menu.

inline fun ViewGroup.forEach(action: (view: View) -> Unit)

Performs the given action on each view in this view group.

Link copied to clipboard
inline fun Menu.forEachIndexed(action: (index: Int, item: MenuItem) -> Unit)

Performs the given action on each item in this menu, providing its sequential index.

inline fun ViewGroup.forEachIndexed(action: (index: Int, view: View) -> Unit)

Performs the given action on each view in this view group, providing its sequential index.

Link copied to clipboard
inline operator fun Menu.get(index: Int): MenuItem

Returns the menu at index.

operator fun ViewGroup.get(index: Int): View

Returns the view at index.

Link copied to clipboard
inline fun Menu.isEmpty(): Boolean

Returns true if this menu contains no items.

inline fun ViewGroup.isEmpty(): Boolean

Returns true if this view group contains no views.

Link copied to clipboard
inline fun Menu.isNotEmpty(): Boolean

Returns true if this menu contains one or more items.

Returns true if this view group contains one or more views.

Link copied to clipboard

Returns a MutableIterator over the items in this menu.

Returns a MutableIterator over the views in this view group.

Link copied to clipboard
inline operator fun Menu.minusAssign(item: MenuItem)

Removes item from this menu.

inline operator fun ViewGroup.minusAssign(view: View)

Removes view from this view group.

Link copied to clipboard
inline operator fun ViewGroup.plusAssign(view: View)

Adds view to this view group.

Link copied to clipboard
inline fun View.postDelayed(delayInMillis: Long, crossinline action: () -> Unit): Runnable

Version of View.postDelayed which re-orders the parameters, allowing the action to be placed outside of parentheses.

Link copied to clipboard
fun View.postOnAnimationDelayed(delayInMillis: Long, action: () -> Unit): Runnable

Version of View.postOnAnimationDelayed which re-orders the parameters, allowing the action to be placed outside of parentheses.

Link copied to clipboard
inline fun Menu.removeItemAt(index: Int)

Removes the menu item at the specified index.

Link copied to clipboard

Sets the margins in the ViewGroup's MarginLayoutParams. This version of the method sets all axes to the provided size.

Link copied to clipboard
inline fun View.setPadding(@Px size: Int)

Sets the view's padding. This version of the method sets all axes to the provided size.

Link copied to clipboard
@JvmName(name = "updateLayoutParamsTyped")
inline fun <T : ViewGroup.LayoutParams> View.updateLayoutParams(block: T.() -> Unit)

Executes block with a typed version of the View's layoutParams and reassigns the layoutParams with the updated version.

Executes block with the View's layoutParams and reassigns the layoutParams with the updated version.

Link copied to clipboard
inline fun ViewGroup.MarginLayoutParams.updateMargins(@Px left: Int = leftMargin, @Px top: Int = topMargin, @Px right: Int = rightMargin, @Px bottom: Int = bottomMargin)

Updates the margins in the ViewGroup's ViewGroup.MarginLayoutParams. This version of the method allows using named parameters to just set one or more axes.

Link copied to clipboard
inline fun ViewGroup.MarginLayoutParams.updateMarginsRelative(@Px start: Int = marginStart, @Px top: Int = topMargin, @Px end: Int = marginEnd, @Px bottom: Int = bottomMargin)

Updates the relative margins in the ViewGroup's MarginLayoutParams. This version of the method allows using named parameters to just set one or more axes.

Link copied to clipboard
inline fun View.updatePadding(@Px left: Int = paddingLeft, @Px top: Int = paddingTop, @Px right: Int = paddingRight, @Px bottom: Int = paddingBottom)

Updates this view's padding. This version of the method allows using named parameters to just set one or more axes.

Link copied to clipboard
inline fun View.updatePaddingRelative(@Px start: Int = paddingStart, @Px top: Int = paddingTop, @Px end: Int = paddingEnd, @Px bottom: Int = paddingBottom)

Updates this view's relative padding. This version of the method allows using named parameters to just set one or more axes.