SharedUiContainer


@ExperimentalFeatures.SharedUiPresentationApi
public final class SharedUiContainer extends ViewGroup


SharedUiContainer is a ViewGroup that's designed to host 'shared UI', meaning it can handle both client-owned and provider-owned UI (via SandboxedSdkViews). The container also allows to register its child views as assets. Assets can be registered either before or after the session is open.

Children: The container should be used to host a single direct child view. However, it allows adding more than one child view to it. All child views added to SharedUiContainer are placed in the top left corner of the container plus padding.

Session management: The container will maintain a session to communicate with a sandboxed SDK for lifecycle management. To open a session, a SharedUiAdapter must be set using setAdapter, and the container must be attached to a visible window and have non-zero dimensions.

When setAdapter is called, any existing session will be closed and all registered assets will be released.

Provider-owned UI: All registered child SandboxedSdkViews will maintain their own sessions for provider-owned UI presentation. For all SandboxedSdkViews registered with SandboxedUiAdapters, SharedUiContainer will set corresponding adapters when a shared UI session opens. For any SandboxedSdkViews registered when the session is open, adapters will be set immediately. The container will close any open SandboxedSdkView sessions before closing its own session.

Asset registration: Client-owned views and SandboxedSdkViews can be registered as assets using registerSharedUiAsset and unregistered using unregisterSharedUiAsset.

Summary

Public constructors

This method is deprecated. This library is no longer supported.

Public methods

final boolean

Registers a SharedUiAsset, that represents a native ad asset, on SharedUiContainer.

final void
setAdapter(SharedUiAdapter sharedUiAdapter)

Sets SharedUiAdapter to maintain a session between SharedUiContainer and a sandboxed SDK.

final boolean

Unregisters a SharedUiAsset associated with a given view from the container.

Protected methods

void
void
void
onLayout(boolean changed, int left, int top, int right, int bottom)

Lays out the container's children in the top left corner with their measured sizes.

void
onMeasure(int widthMeasureSpec, int heightMeasureSpec)

Measures the container and its children.

void
onWindowVisibilityChanged(int visibility)

Inherited methods

From android.view.View
void
addFocusables(@NonNull ArrayList<@NonNull View> views, int direction)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

@NonNull ViewPropertyAnimator

This method is deprecated. This library is no longer supported.

void

This method is deprecated.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean
awakenScrollBars(int startDelay)

This method is deprecated. This library is no longer supported.

boolean
awakenScrollBars(int startDelay, boolean invalidate)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated.

void
buildDrawingCache(boolean autoScale)

This method is deprecated.

void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean
canScrollHorizontally(int direction)

This method is deprecated. This library is no longer supported.

boolean
canScrollVertically(int direction)

This method is deprecated. This library is no longer supported.

final void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

final void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

@NonNull WindowInsets
computeSystemWindowInsets(
    @NonNull WindowInsets in,
    @NonNull Rect outLocalInsets
)

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

@NonNull AccessibilityNodeInfo

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated.

boolean

This method is deprecated. This library is no longer supported.

boolean
dispatchNestedFling(float velocityX, float velocityY, boolean consumed)

This method is deprecated. This library is no longer supported.

boolean
dispatchNestedPreFling(float velocityX, float velocityY)

This method is deprecated. This library is no longer supported.

boolean
dispatchNestedPrePerformAccessibilityAction(
    int action,
    @Nullable Bundle arguments
)

This method is deprecated. This library is no longer supported.

boolean
dispatchNestedPreScroll(
    int dx,
    int dy,
    @Nullable int[] consumed,
    @Nullable int[] offsetInWindow
)

This method is deprecated. This library is no longer supported.

boolean
dispatchNestedScroll(
    int dxConsumed,
    int dyConsumed,
    int dxUnconsumed,
    int dyUnconsumed,
    @Nullable int[] offsetInWindow
)

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void
draw(@NonNull Canvas canvas)

This method is deprecated. This library is no longer supported.

void
drawableHotspotChanged(float x, float y)

This method is deprecated. This library is no longer supported.

final @Nullable OnBackInvokedDispatcher

This method is deprecated. This library is no longer supported.

final @NonNull T
<T extends View> findViewById(int id)

This method is deprecated. This library is no longer supported.

final @NonNull T
<T extends View> findViewWithTag(@NonNull Object tag)

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated.

@NonNull View
focusSearch(int direction)

This method is deprecated. This library is no longer supported.

void
forceHasOverlappingRendering(boolean hasOverlappingRendering)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
generateDisplayHash(
    @NonNull String hashAlgorithm,
    @Nullable Rect bounds,
    @NonNull Executor executor,
    @NonNull DisplayHashResultCallback callback
)

This method is deprecated. This library is no longer supported.

@NonNull View.AccessibilityDelegate

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

@NonNull AccessibilityNodeProvider

This method is deprecated. This library is no longer supported.

@Nullable CharSequence

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

@Nullable String

This method is deprecated. This library is no longer supported.

@Nullable String

This method is deprecated. This library is no longer supported.

float
@ViewDebug.ExportedProperty(category = "drawing")
getAlpha()

This method is deprecated. This library is no longer supported.

@NonNull Animation

This method is deprecated. This library is no longer supported.

@Nullable Matrix

This method is deprecated. This library is no longer supported.

@NonNull IBinder

This method is deprecated. This library is no longer supported.

@NonNull int[]

This method is deprecated. This library is no longer supported.

@NonNull Map<@NonNull Integer, @NonNull Integer>

This method is deprecated. This library is no longer supported.

@Nullable String[]

This method is deprecated. This library is no longer supported.

final @NonNull AutofillId

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

@Nullable AutofillValue

This method is deprecated. This library is no longer supported.

@NonNull Drawable

This method is deprecated. This library is no longer supported.

@Nullable BlendMode

This method is deprecated. This library is no longer supported.

@Nullable ColorStateList

This method is deprecated. This library is no longer supported.

@Nullable PorterDuff.Mode

This method is deprecated. This library is no longer supported.

int
@ViewDebug.ExportedProperty(category = "layout")
getBaseline()

This method is deprecated. This library is no longer supported.

final int

This method is deprecated. This library is no longer supported.

float

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

float

This method is deprecated. This library is no longer supported.

@NonNull Rect

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

final boolean

This method is deprecated. This library is no longer supported.

final @Nullable ContentCaptureSession

This method is deprecated. This library is no longer supported.

@NonNull CharSequence
@ViewDebug.ExportedProperty(category = "accessibility")
getContentDescription()

This method is deprecated. This library is no longer supported.

final int

This method is deprecated. This library is no longer supported.

final @NonNull Context

This method is deprecated. This library is no longer supported.

@NonNull ContextMenu.ContextMenuInfo

This method is deprecated. This library is no longer supported.

final boolean

This method is deprecated. This library is no longer supported.

@NonNull Display

This method is deprecated. This library is no longer supported.

final @NonNull int[]

This method is deprecated. This library is no longer supported.

@NonNull Bitmap

This method is deprecated.

@NonNull Bitmap
getDrawingCache(boolean autoScale)

This method is deprecated.

int

This method is deprecated.

int

This method is deprecated.

void

This method is deprecated. This library is no longer supported.

long

This method is deprecated. This library is no longer supported.

float
@ViewDebug.ExportedProperty(category = "drawing")
getElevation()

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

int
@ViewDebug.ExportedProperty(mapping = [@ViewDebug.IntToString(from = 0, to = "NOT_FOCUSABLE"), @ViewDebug.IntToString(from = 1, to = "FOCUSABLE"), @ViewDebug.IntToString(from = 16, to = "FOCUSABLE_AUTO")], category = "focus")
getFocusable()

This method is deprecated. This library is no longer supported.

@NonNull ArrayList<@NonNull View>
getFocusables(int direction)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

@NonNull Drawable

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

@Nullable BlendMode

This method is deprecated. This library is no longer supported.

@Nullable ColorStateList

This method is deprecated. This library is no longer supported.

@Nullable PorterDuff.Mode

This method is deprecated. This library is no longer supported.

float

This method is deprecated. This library is no longer supported.

final boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

@NonNull Handler

This method is deprecated. This library is no longer supported.

float

This method is deprecated. This library is no longer supported.

float

This method is deprecated. This library is no longer supported.

float

This method is deprecated. This library is no longer supported.

float

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

@Nullable Runnable

This method is deprecated. This library is no longer supported.

final boolean

This method is deprecated. This library is no longer supported.

final int
@ViewDebug.ExportedProperty(category = "layout")
getHeight()

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

@Nullable Drawable

This method is deprecated. This library is no longer supported.

@Nullable Drawable

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int
@ViewDebug.ExportedProperty(category = "accessibility", mapping = [@ViewDebug.IntToString(from = 0, to = "auto"), @ViewDebug.IntToString(from = 1, to = "yes"), @ViewDebug.IntToString(from = 2, to = "no"), @ViewDebug.IntToString(from = 4, to = "noHideDescendants")])
getImportantForAccessibility()

This method is deprecated. This library is no longer supported.

int
@ViewDebug.ExportedProperty(mapping = [@ViewDebug.IntToString(from = 0, to = "auto"), @ViewDebug.IntToString(from = 1, to = "yes"), @ViewDebug.IntToString(from = 2, to = "no"), @ViewDebug.IntToString(from = 4, to = "yesExcludeDescendants"), @ViewDebug.IntToString(from = 8, to = "noExcludeDescendants")])
getImportantForAutofill()

This method is deprecated. This library is no longer supported.

int
@ViewDebug.ExportedProperty(mapping = [@ViewDebug.IntToString(from = 0, to = "auto"), @ViewDebug.IntToString(from = 1, to = "yes"), @ViewDebug.IntToString(from = 2, to = "no"), @ViewDebug.IntToString(from = 4, to = "yesExcludeDescendants"), @ViewDebug.IntToString(from = 8, to = "noExcludeDescendants")])
getImportantForContentCapture()

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

@NonNull KeyEvent.DispatcherState

This method is deprecated. This library is no longer supported.

int
@ViewDebug.ExportedProperty(category = "accessibility")
getLabelFor()

This method is deprecated. This library is no longer supported.

int
@ViewDebug.ExportedProperty(category = "drawing", mapping = [@ViewDebug.IntToString(from = 0, to = "NONE"), @ViewDebug.IntToString(from = 1, to = "SOFTWARE"), @ViewDebug.IntToString(from = 2, to = "HARDWARE")])
getLayerType()

This method is deprecated. This library is no longer supported.

int
@ViewDebug.ExportedProperty(category = "layout", mapping = [@ViewDebug.IntToString(from = 0, to = "RESOLVED_DIRECTION_LTR"), @ViewDebug.IntToString(from = 1, to = "RESOLVED_DIRECTION_RTL")])
getLayoutDirection()

This method is deprecated. This library is no longer supported.

@NonNull ViewGroup.LayoutParams
@ViewDebug.ExportedProperty(deepExport = true, prefix = "layout_")
getLayoutParams()

This method is deprecated. This library is no longer supported.

final int

This method is deprecated. This library is no longer supported.

float

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

final boolean

This method is deprecated. This library is no longer supported.

void
getLocationInSurface(@NonNull int[] location)

This method is deprecated. This library is no longer supported.

void
getLocationInWindow(@NonNull int[] outLocation)

This method is deprecated. This library is no longer supported.

void
getLocationOnScreen(@NonNull int[] outLocation)

This method is deprecated. This library is no longer supported.

@NonNull Matrix

This method is deprecated. This library is no longer supported.

final int

This method is deprecated. This library is no longer supported.

final int
@ViewDebug.ExportedProperty(category = "measurement", flagMapping = [@ViewDebug.FlagToString(mask = -16777216, equals = 16777216, name = "MEASURED_STATE_TOO_SMALL")])
getMeasuredHeightAndState()

This method is deprecated. This library is no longer supported.

final int

This method is deprecated. This library is no longer supported.

final int

This method is deprecated. This library is no longer supported.

final int
@ViewDebug.ExportedProperty(category = "measurement", flagMapping = [@ViewDebug.FlagToString(mask = -16777216, equals = 16777216, name = "MEASURED_STATE_TOO_SMALL")])
getMeasuredWidthAndState()

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

@NonNull View.OnFocusChangeListener

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

@NonNull ViewOutlineProvider

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

final @NonNull ViewParent

This method is deprecated. This library is no longer supported.

@NonNull ViewParent

This method is deprecated. This library is no longer supported.

final @Nullable OutcomeReceiver<@NonNull GetCredentialResponse, @NonNull GetCredentialException>

This method is deprecated. This library is no longer supported.

final @Nullable GetCredentialRequest

This method is deprecated. This library is no longer supported.

float
@ViewDebug.ExportedProperty(category = "drawing")
getPivotX()

This method is deprecated. This library is no longer supported.

float
@ViewDebug.ExportedProperty(category = "drawing")
getPivotY()

This method is deprecated. This library is no longer supported.

@NonNull PointerIcon

This method is deprecated. This library is no longer supported.

final @NonNull List<@NonNull Rect>

This method is deprecated. This library is no longer supported.

@Nullable String[]

This method is deprecated. This library is no longer supported.

float

This method is deprecated. This library is no longer supported.

@NonNull Resources

This method is deprecated. This library is no longer supported.

final boolean

This method is deprecated. This library is no longer supported.

final int

This method is deprecated. This library is no longer supported.

float

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

@Nullable AttachedSurfaceControl

This method is deprecated. This library is no longer supported.

@NonNull View

This method is deprecated. This library is no longer supported.

@NonNull WindowInsets

This method is deprecated. This library is no longer supported.

float
@ViewDebug.ExportedProperty(category = "drawing")
getRotation()

This method is deprecated. This library is no longer supported.

float
@ViewDebug.ExportedProperty(category = "drawing")
getRotationX()

This method is deprecated. This library is no longer supported.

float
@ViewDebug.ExportedProperty(category = "drawing")
getRotationY()

This method is deprecated. This library is no longer supported.

float
@ViewDebug.ExportedProperty(category = "drawing")
getScaleX()

This method is deprecated. This library is no longer supported.

float
@ViewDebug.ExportedProperty(category = "drawing")
getScaleY()

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int
@ViewDebug.ExportedProperty(mapping = [@ViewDebug.IntToString(from = 0, to = "INSIDE_OVERLAY"), @ViewDebug.IntToString(from = 16777216, to = "INSIDE_INSET"), @ViewDebug.IntToString(from = 33554432, to = "OUTSIDE_OVERLAY"), @ViewDebug.IntToString(from = 50331648, to = "OUTSIDE_INSET")])
getScrollBarStyle()

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

final int

This method is deprecated. This library is no longer supported.

final int

This method is deprecated. This library is no longer supported.

int
@ViewDebug.ExportedProperty(category = "drawing")
getSolidColor()

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

final @Nullable CharSequence
@ViewDebug.ExportedProperty(category = "accessibility")
getStateDescription()

This method is deprecated. This library is no longer supported.

@NonNull StateListAnimator

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

@Nullable CharSequence

This method is deprecated. This library is no longer supported.

@NonNull List<@NonNull Rect>

This method is deprecated. This library is no longer supported.

int

This method is deprecated.

@NonNull Object

This method is deprecated. This library is no longer supported.

@NonNull Object
getTag(int key)

This method is deprecated. This library is no longer supported.

int
@ViewDebug.ExportedProperty(category = "text", mapping = [@ViewDebug.IntToString(from = 0, to = "INHERIT"), @ViewDebug.IntToString(from = 1, to = "GRAVITY"), @ViewDebug.IntToString(from = 2, to = "TEXT_START"), @ViewDebug.IntToString(from = 3, to = "TEXT_END"), @ViewDebug.IntToString(from = 4, to = "CENTER"), @ViewDebug.IntToString(from = 5, to = "VIEW_START"), @ViewDebug.IntToString(from = 6, to = "VIEW_END")])
getTextAlignment()

This method is deprecated. This library is no longer supported.

int
@ViewDebug.ExportedProperty(category = "text", mapping = [@ViewDebug.IntToString(from = 0, to = "INHERIT"), @ViewDebug.IntToString(from = 1, to = "FIRST_STRONG"), @ViewDebug.IntToString(from = 2, to = "ANY_RTL"), @ViewDebug.IntToString(from = 3, to = "LTR"), @ViewDebug.IntToString(from = 4, to = "RTL"), @ViewDebug.IntToString(from = 5, to = "LOCALE"), @ViewDebug.IntToString(from = 6, to = "FIRST_STRONG_LTR"), @ViewDebug.IntToString(from = 7, to = "FIRST_STRONG_RTL")])
getTextDirection()

This method is deprecated. This library is no longer supported.

@Nullable CharSequence

This method is deprecated. This library is no longer supported.

final int

This method is deprecated. This library is no longer supported.

float

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

@NonNull TouchDelegate

This method is deprecated. This library is no longer supported.

@NonNull ArrayList<@NonNull View>

This method is deprecated. This library is no longer supported.

float

This method is deprecated. This library is no longer supported.

@NonNull String

This method is deprecated. This library is no longer supported.

float

This method is deprecated. This library is no longer supported.

float

This method is deprecated. This library is no longer supported.

float

This method is deprecated. This library is no longer supported.

long

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

@Nullable Drawable

This method is deprecated. This library is no longer supported.

@Nullable Drawable

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

@Nullable ViewTranslationResponse

This method is deprecated. This library is no longer supported.

@NonNull ViewTreeObserver

This method is deprecated. This library is no longer supported.

int
@ViewDebug.ExportedProperty(mapping = [@ViewDebug.IntToString(from = 0, to = "VISIBLE"), @ViewDebug.IntToString(from = 4, to = "INVISIBLE"), @ViewDebug.IntToString(from = 8, to = "GONE")])
getVisibility()

This method is deprecated. This library is no longer supported.

final int
@ViewDebug.ExportedProperty(category = "layout")
getWidth()

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

@NonNull WindowId

This method is deprecated. This library is no longer supported.

@Nullable WindowInsetsController

This method is deprecated. This library is no longer supported.

int

This method is deprecated.

@NonNull IBinder

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

float
@ViewDebug.ExportedProperty(category = "drawing")
getX()

This method is deprecated. This library is no longer supported.

float
@ViewDebug.ExportedProperty(category = "drawing")
getY()

This method is deprecated. This library is no longer supported.

float
@ViewDebug.ExportedProperty(category = "drawing")
getZ()

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated.

void
invalidate(int l, int t, int r, int b)

This method is deprecated.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

final boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

final boolean
@ViewDebug.ExportedProperty(category = "focus")
isFocusable()

This method is deprecated. This library is no longer supported.

final boolean

This method is deprecated. This library is no longer supported.

boolean
@ViewDebug.ExportedProperty(category = "focus")
isFocused()

This method is deprecated. This library is no longer supported.

final boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

final boolean

This method is deprecated. This library is no longer supported.

final boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

final boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean
@ViewDebug.ExportedProperty(category = "drawing")
isOpaque()

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

final boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

final boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

final boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

@NonNull View
keyboardNavigationClusterSearch(
    @NonNull View currentCluster,
    int direction
)

This method is deprecated. This library is no longer supported.

final void
measure(int widthMeasureSpec, int heightMeasureSpec)

This method is deprecated. This library is no longer supported.

void
offsetLeftAndRight(int offset)

This method is deprecated. This library is no longer supported.

void
offsetTopAndBottom(int offset)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

@NonNull WindowInsets

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

@NonNull InputConnection

This method is deprecated. This library is no longer supported.

void
onCreateViewTranslationRequest(
    @NonNull int[] supportedFormats,
    @NonNull Consumer<@NonNull ViewTranslationRequest> requestsCollector
)

This method is deprecated. This library is no longer supported.

void
onCreateVirtualViewTranslationRequests(
    @NonNull long[] virtualIds,
    @NonNull int[] supportedFormats,
    @NonNull Consumer<@NonNull ViewTranslationRequest> requestsCollector
)

This method is deprecated. This library is no longer supported.

void
onDisplayHint(int hint)

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

final void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
onFocusChanged(
    boolean gainFocus,
    int direction,
    @Nullable Rect previouslyFocusedRect
)

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void
onHoverChanged(boolean hovered)

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

boolean
onKeyDown(int keyCode, @NonNull KeyEvent event)

This method is deprecated. This library is no longer supported.

boolean
onKeyLongPress(int keyCode, @NonNull KeyEvent event)

This method is deprecated. This library is no longer supported.

boolean
onKeyMultiple(int keyCode, int repeatCount, @NonNull KeyEvent event)

This method is deprecated. This library is no longer supported.

boolean
onKeyPreIme(int keyCode, @NonNull KeyEvent event)

This method is deprecated. This library is no longer supported.

boolean
onKeyShortcut(int keyCode, @NonNull KeyEvent event)

This method is deprecated. This library is no longer supported.

boolean
onKeyUp(int keyCode, @NonNull KeyEvent event)

This method is deprecated. This library is no longer supported.

void
onOverScrolled(
    int scrollX,
    int scrollY,
    boolean clampedX,
    boolean clampedY
)

This method is deprecated. This library is no longer supported.

void
onPointerCaptureChange(boolean hasCapture)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
onProvideAutofillVirtualStructure(
    @NonNull ViewStructure structure,
    int flags
)

This method is deprecated. This library is no longer supported.

void
onProvideContentCaptureStructure(
    @NonNull ViewStructure structure,
    int flags
)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

@Nullable ContentInfo

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
onRtlPropertiesChanged(int layoutDirection)

This method is deprecated. This library is no longer supported.

@Nullable Parcelable

This method is deprecated. This library is no longer supported.

void
onScreenStateChanged(int screenState)

This method is deprecated. This library is no longer supported.

void
onScrollCaptureSearch(
    @NonNull Rect localVisibleRect,
    @NonNull Point windowOffset,
    @NonNull Consumer<@NonNull ScrollCaptureTarget> targets
)

This method is deprecated. This library is no longer supported.

void
onScrollChanged(int l, int t, int oldl, int oldt)

This method is deprecated. This library is no longer supported.

boolean
onSetAlpha(int alpha)

This method is deprecated. This library is no longer supported.

void
onSizeChanged(int w, int h, int oldw, int oldh)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
onVisibilityAggregated(boolean isVisible)

This method is deprecated. This library is no longer supported.

void
onVisibilityChanged(@NonNull View changedView, int visibility)

This method is deprecated. This library is no longer supported.

void
onWindowFocusChanged(boolean hasWindowFocus)

This method is deprecated. This library is no longer supported.

void

This method is deprecated.

boolean
overScrollBy(
    int deltaX,
    int deltaY,
    int scrollX,
    int scrollY,
    int scrollRangeX,
    int scrollRangeY,
    int maxOverScrollX,
    int maxOverScrollY,
    boolean isTouchEvent
)

This method is deprecated. This library is no longer supported.

boolean
performAccessibilityAction(int action, @Nullable Bundle arguments)

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean
performContextClick(float x, float y)

This method is deprecated. This library is no longer supported.

boolean
performHapticFeedback(int feedbackConstant)

This method is deprecated. This library is no longer supported.

boolean
performHapticFeedback(int feedbackConstant, int flags)

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean
performLongClick(float x, float y)

This method is deprecated. This library is no longer supported.

@Nullable ContentInfo

This method is deprecated. This library is no longer supported.

void
playSoundEffect(int soundConstant)

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean
postDelayed(@NonNull Runnable action, long delayMillis)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
postInvalidate(int left, int top, int right, int bottom)

This method is deprecated. This library is no longer supported.

void
postInvalidateDelayed(long delayMilliseconds)

This method is deprecated. This library is no longer supported.

void
postInvalidateDelayed(
    long delayMilliseconds,
    int left,
    int top,
    int right,
    int bottom
)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
postInvalidateOnAnimation(int left, int top, int right, int bottom)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
postOnAnimationDelayed(@NonNull Runnable action, long delayMillis)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated.

final boolean

This method is deprecated. This library is no longer supported.

final boolean
requestFocus(int direction)

This method is deprecated. This library is no longer supported.

final boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean
requestRectangleOnScreen(@NonNull Rect rectangle, boolean immediate)

This method is deprecated. This library is no longer supported.

final void

This method is deprecated. This library is no longer supported.

final void

This method is deprecated. This library is no longer supported.

final @NonNull T
<T extends View> requireViewById(int id)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

final void
saveAttributeDataForStyleable(
    @NonNull Context context,
    @NonNull int[] styleable,
    @Nullable AttributeSet attrs,
    @NonNull TypedArray t,
    int defStyleAttr,
    int defStyleRes
)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
scheduleDrawable(@NonNull Drawable who, @NonNull Runnable what, long when)

This method is deprecated. This library is no longer supported.

void
scrollBy(int x, int y)

This method is deprecated. This library is no longer supported.

void
scrollTo(int x, int y)

This method is deprecated. This library is no longer supported.

void
sendAccessibilityEvent(int eventType)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setAccessibilityDataSensitive(int accessibilityDataSensitive)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setAccessibilityHeading(boolean isHeading)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setActivated(boolean activated)

This method is deprecated. This library is no longer supported.

void
setAllowClickWhenDisabled(boolean clickableWhenDisabled)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setAlpha(float alpha)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setAutoHandwritingEnabled(boolean enabled)

This method is deprecated. This library is no longer supported.

void
setAutofillHints(@Nullable String... autofillHints)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setBackgroundColor(int color)

This method is deprecated. This library is no longer supported.

void

This method is deprecated.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

final void
setBottom(int bottom)

This method is deprecated. This library is no longer supported.

void
setCameraDistance(float distance)

This method is deprecated. This library is no longer supported.

void
setClickable(boolean clickable)

This method is deprecated. This library is no longer supported.

void
setClipBounds(@NonNull Rect clipBounds)

This method is deprecated. This library is no longer supported.

void
setClipToOutline(boolean clipToOutline)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

final void

This method is deprecated. This library is no longer supported.

void
setContextClickable(boolean contextClickable)

This method is deprecated. This library is no longer supported.

void
setDefaultFocusHighlightEnabled(boolean defaultFocusHighlightEnabled)

This method is deprecated. This library is no longer supported.

void

This method is deprecated.

void
setDrawingCacheEnabled(boolean enabled)

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated. This library is no longer supported.

void
setElevation(float elevation)

This method is deprecated. This library is no longer supported.

void
setEnabled(boolean enabled)

This method is deprecated. This library is no longer supported.

void
setFadingEdgeLength(int length)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setFitsSystemWindows(boolean fitSystemWindows)

This method is deprecated. This library is no longer supported.

void
setFocusable(boolean focusable)

This method is deprecated. This library is no longer supported.

void
setFocusable(int focusable)

This method is deprecated. This library is no longer supported.

void
setFocusableInTouchMode(boolean focusableInTouchMode)

This method is deprecated. This library is no longer supported.

void
setFocusedByDefault(boolean isFocusedByDefault)

This method is deprecated. This library is no longer supported.

void
setForceDarkAllowed(boolean allow)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setForegroundGravity(int gravity)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setFrameContentVelocity(float pixelsPerSecond)

This method is deprecated. This library is no longer supported.

void
setHandwritingBoundsOffsets(
    float offsetLeft,
    float offsetTop,
    float offsetRight,
    float offsetBottom
)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setHapticFeedbackEnabled(boolean hapticFeedbackEnabled)

This method is deprecated. This library is no longer supported.

void
setHasTransientState(boolean hasTransientState)

This method is deprecated. This library is no longer supported.

void
setHorizontalFadingEdgeEnabled(boolean horizontalFadingEdgeEnabled)

This method is deprecated. This library is no longer supported.

void
setHorizontalScrollBarEnabled(boolean horizontalScrollBarEnabled)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setHovered(boolean hovered)

This method is deprecated. This library is no longer supported.

void
setId(int id)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setIsCredential(boolean isCredential)

This method is deprecated. This library is no longer supported.

void
setIsHandwritingDelegate(boolean isHandwritingDelegate)

This method is deprecated. This library is no longer supported.

void
setKeepScreenOn(boolean keepScreenOn)

This method is deprecated. This library is no longer supported.

void
setKeyboardNavigationCluster(boolean isCluster)

This method is deprecated. This library is no longer supported.

void
setLabelFor(int id)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setLayerType(int layerType, @Nullable Paint paint)

This method is deprecated. This library is no longer supported.

void
setLayoutDirection(int layoutDirection)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

final void
setLeft(int left)

This method is deprecated. This library is no longer supported.

final void
setLeftTopRightBottom(int left, int top, int right, int bottom)

This method is deprecated. This library is no longer supported.

void
setLongClickable(boolean longClickable)

This method is deprecated. This library is no longer supported.

final void
setMeasuredDimension(int measuredWidth, int measuredHeight)

This method is deprecated. This library is no longer supported.

void
setMinimumHeight(int minHeight)

This method is deprecated. This library is no longer supported.

void
setMinimumWidth(int minWidth)

This method is deprecated. This library is no longer supported.

void
setNestedScrollingEnabled(boolean enabled)

This method is deprecated. This library is no longer supported.

void
setNextClusterForwardId(int nextClusterForwardId)

This method is deprecated. This library is no longer supported.

void
setNextFocusDownId(int nextFocusDownId)

This method is deprecated. This library is no longer supported.

void
setNextFocusForwardId(int nextFocusForwardId)

This method is deprecated. This library is no longer supported.

void
setNextFocusLeftId(int nextFocusLeftId)

This method is deprecated. This library is no longer supported.

void
setNextFocusRightId(int nextFocusRightId)

This method is deprecated. This library is no longer supported.

void
setNextFocusUpId(int nextFocusUpId)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setOnReceiveContentListener(
    @Nullable String[] mimeTypes,
    @Nullable OnReceiveContentListener listener
)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setOverScrollMode(int overScrollMode)

This method is deprecated. This library is no longer supported.

void
setPadding(int left, int top, int right, int bottom)

This method is deprecated. This library is no longer supported.

void
setPaddingRelative(int start, int top, int end, int bottom)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setPivotX(float pivotX)

This method is deprecated. This library is no longer supported.

void
setPivotY(float pivotY)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

final void
setPreferKeepClear(boolean preferKeepClear)

This method is deprecated. This library is no longer supported.

final void

This method is deprecated. This library is no longer supported.

void
setPressed(boolean pressed)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

final void
setRevealOnFocusHint(boolean revealOnFocus)

This method is deprecated. This library is no longer supported.

final void
setRight(int right)

This method is deprecated. This library is no longer supported.

void
setRotation(float rotation)

This method is deprecated. This library is no longer supported.

void
setRotationX(float rotationX)

This method is deprecated. This library is no longer supported.

void
setRotationY(float rotationY)

This method is deprecated. This library is no longer supported.

void
setSaveEnabled(boolean enabled)

This method is deprecated. This library is no longer supported.

void
setSaveFromParentEnabled(boolean enabled)

This method is deprecated. This library is no longer supported.

void
setScaleX(float scaleX)

This method is deprecated. This library is no longer supported.

void
setScaleY(float scaleY)

This method is deprecated. This library is no longer supported.

void
setScreenReaderFocusable(boolean screenReaderFocusable)

This method is deprecated. This library is no longer supported.

void
setScrollBarDefaultDelayBeforeFade(
    int scrollBarDefaultDelayBeforeFade
)

This method is deprecated. This library is no longer supported.

void
setScrollBarFadeDuration(int scrollBarFadeDuration)

This method is deprecated. This library is no longer supported.

void
setScrollBarSize(int scrollBarSize)

This method is deprecated. This library is no longer supported.

void
setScrollBarStyle(int style)

This method is deprecated. This library is no longer supported.

final void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setScrollContainer(boolean isScrollContainer)

This method is deprecated. This library is no longer supported.

void
setScrollIndicators(int indicators)

This method is deprecated. This library is no longer supported.

void
setScrollIndicators(int indicators, int mask)

This method is deprecated. This library is no longer supported.

void
setScrollX(int value)

This method is deprecated. This library is no longer supported.

void
setScrollY(int value)

This method is deprecated. This library is no longer supported.

void
setScrollbarFadingEnabled(boolean fadeScrollbars)

This method is deprecated. This library is no longer supported.

void
setSelected(boolean selected)

This method is deprecated. This library is no longer supported.

void
setSoundEffectsEnabled(boolean soundEffectsEnabled)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setSupplementalDescription(
    @Nullable CharSequence supplementalDescription
)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setSystemUiVisibility(int visibility)

This method is deprecated.

void

This method is deprecated. This library is no longer supported.

void
setTag(int key, @NonNull Object tag)

This method is deprecated. This library is no longer supported.

void
setTextAlignment(int textAlignment)

This method is deprecated. This library is no longer supported.

void
setTextDirection(int textDirection)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

final void
setTop(int top)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setTransitionAlpha(float alpha)

This method is deprecated. This library is no longer supported.

final void
setTransitionName(@NonNull String transitionName)

This method is deprecated. This library is no longer supported.

void
setTransitionVisibility(int visibility)

This method is deprecated. This library is no longer supported.

void
setTranslationX(float translationX)

This method is deprecated. This library is no longer supported.

void
setTranslationY(float translationY)

This method is deprecated. This library is no longer supported.

void
setTranslationZ(float translationZ)

This method is deprecated. This library is no longer supported.

void
setVerticalFadingEdgeEnabled(boolean verticalFadingEdgeEnabled)

This method is deprecated. This library is no longer supported.

void
setVerticalScrollBarEnabled(boolean verticalScrollBarEnabled)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setVisibility(int visibility)

This method is deprecated. This library is no longer supported.

void
setWillNotCacheDrawing(boolean willNotCacheDrawing)

This method is deprecated.

void
setWillNotDraw(boolean willNotDraw)

This method is deprecated. This library is no longer supported.

void
setX(float x)

This method is deprecated. This library is no longer supported.

void
setY(float y)

This method is deprecated. This library is no longer supported.

void
setZ(float z)

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean
showContextMenu(float x, float y)

This method is deprecated. This library is no longer supported.

@NonNull ActionMode

This method is deprecated. This library is no longer supported.

@NonNull ActionMode

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

final boolean
startDrag(
    @NonNull ClipData data,
    @NonNull View.DragShadowBuilder shadowBuilder,
    @NonNull Object myLocalState,
    int flags
)

This method is deprecated.

final boolean
startDragAndDrop(
    @NonNull ClipData data,
    @NonNull View.DragShadowBuilder shadowBuilder,
    @NonNull Object myLocalState,
    int flags
)

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

@NonNull String

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

final void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated.

boolean
@ViewDebug.ExportedProperty(category = "drawing")
willNotDraw()

This method is deprecated. This library is no longer supported.

From android.view.ViewGroup
void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
addFocusables(@NonNull ArrayList<@NonNull View> p0, int p1, int p2)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
addView(@NonNull View p0, int p1)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
addView(@NonNull View p0, int p1, int p2)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

boolean
addViewInLayout(
    @NonNull View p0,
    int p1,
    @NonNull ViewGroup.LayoutParams p2
)

This method is deprecated. This library is no longer supported.

boolean
addViewInLayout(
    @NonNull View p0,
    int p1,
    @NonNull ViewGroup.LayoutParams p2,
    boolean p3
)

This method is deprecated. This library is no longer supported.

void
attachLayoutAnimationParameters(
    @NonNull View p0,
    @NonNull ViewGroup.LayoutParams p1,
    int p2,
    int p3
)

This method is deprecated. This library is no longer supported.

void
attachViewToParent(
    @NonNull View p0,
    int p1,
    @NonNull ViewGroup.LayoutParams p2
)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
debug(int p0)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
detachViewsFromParent(int p0, int p1)

This method is deprecated. This library is no longer supported.

@NonNull WindowInsets

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
dispatchDrawableHotspotChanged(float p0, float p1)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
dispatchSetPressed(boolean p0)

This method is deprecated. This library is no longer supported.

void
dispatchSetSelected(boolean p0)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated.

void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

@NonNull WindowInsets

This method is deprecated. This library is no longer supported.

@NonNull WindowInsetsAnimation.Bounds

This method is deprecated. This library is no longer supported.

void

This method is deprecated.

void

This method is deprecated. This library is no longer supported.

boolean
drawChild(@NonNull Canvas p0, @NonNull View p1, long p2)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

@NonNull View

This method is deprecated. This library is no longer supported.

@Nullable OnBackInvokedDispatcher

This method is deprecated. This library is no longer supported.

void
findViewsWithText(
    @NonNull ArrayList<@NonNull View> p0,
    @NonNull CharSequence p1,
    int p2
)

This method is deprecated. This library is no longer supported.

@NonNull View
focusSearch(@NonNull View p0, int p1)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

@NonNull ViewGroup.LayoutParams

This method is deprecated. This library is no longer supported.

@NonNull ViewGroup.LayoutParams

This method is deprecated. This library is no longer supported.

@NonNull ViewGroup.LayoutParams

This method is deprecated. This library is no longer supported.

@NonNull CharSequence

This method is deprecated. This library is no longer supported.

@NonNull View
getChildAt(int p0)

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

final int

This method is deprecated. This library is no longer supported.

int
getChildDrawingOrder(int p0, int p1)

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

int
@ViewDebug.ExportedProperty(category = "focus", mapping = [@ViewDebug.IntToString(from = 131072, to = "FOCUS_BEFORE_DESCENDANTS"), @ViewDebug.IntToString(from = 262144, to = "FOCUS_AFTER_DESCENDANTS"), @ViewDebug.IntToString(from = 393216, to = "FOCUS_BLOCK_DESCENDANTS")])
getDescendantFocusability()

This method is deprecated. This library is no longer supported.

@NonNull View

This method is deprecated. This library is no longer supported.

@NonNull LayoutAnimationController

This method is deprecated. This library is no longer supported.

@NonNull Animation.AnimationListener

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

@NonNull LayoutTransition

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

@NonNull ViewGroupOverlay

This method is deprecated. This library is no longer supported.

int
@ViewDebug.ExportedProperty(category = "drawing", mapping = [@ViewDebug.IntToString(from = 0, to = "NONE"), @ViewDebug.IntToString(from = 1, to = "ANIMATION"), @ViewDebug.IntToString(from = 2, to = "SCROLLING"), @ViewDebug.IntToString(from = 3, to = "ALL")])
getPersistentDrawingCache()

This method is deprecated. Deprecated in Java

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

int

This method is deprecated. This library is no longer supported.

final void

This method is deprecated. Deprecated in Java

@NonNull ViewParent

This method is deprecated. Deprecated in Java

boolean

This method is deprecated. Deprecated in Java

boolean

This method is deprecated. Deprecated in Java

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. Deprecated in Java

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

final void
layout(int p0, int p1, int p2, int p3)

This method is deprecated. This library is no longer supported.

void
measureChild(@NonNull View p0, int p1, int p2)

This method is deprecated. This library is no longer supported.

void
measureChildWithMargins(@NonNull View p0, int p1, int p2, int p3, int p4)

This method is deprecated. This library is no longer supported.

void
measureChildren(int p0, int p1)

This method is deprecated. This library is no longer supported.

void
notifySubtreeAccessibilityStateChanged(
    @NonNull View p0,
    @NonNull View p1,
    int p2
)

This method is deprecated. This library is no longer supported.

final void

This method is deprecated. This library is no longer supported.

final void

This method is deprecated. This library is no longer supported.

@NonNull int[]

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean
onNestedFling(@NonNull View p0, float p1, float p2, boolean p3)

This method is deprecated. This library is no longer supported.

boolean
onNestedPreFling(@NonNull View p0, float p1, float p2)

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void
onNestedPreScroll(@NonNull View p0, int p1, int p2, @NonNull int[] p3)

This method is deprecated. This library is no longer supported.

void
onNestedScroll(@NonNull View p0, int p1, int p2, int p3, int p4)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

@NonNull PointerIcon

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
propagateRequestedFrameRate(float p0, boolean p1)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
removeDetachedView(@NonNull View p0, boolean p1)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
removeViewAt(int p0)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
removeViews(int p0, int p1)

This method is deprecated. This library is no longer supported.

void
removeViewsInLayout(int p0, int p1)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

boolean
requestChildRectangleOnScreen(
    @NonNull View p0,
    @NonNull Rect p1,
    boolean p2
)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

boolean
requestFocus(int p0, @NonNull Rect p1)

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. Deprecated in Java

void

This method is deprecated. Deprecated in Java

void

This method is deprecated. Deprecated in Java

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. Deprecated in Java

void
setClipChildren(boolean p0)

This method is deprecated. This library is no longer supported.

void
setClipToPadding(boolean p0)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setLayoutMode(int p0)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. Deprecated in Java

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
setTransitionGroup(boolean p0)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean

This method is deprecated. This library is no longer supported.

boolean
showContextMenuForChild(@NonNull View p0, float p1, float p2)

This method is deprecated. This library is no longer supported.

@NonNull ActionMode

This method is deprecated. This library is no longer supported.

@NonNull ActionMode
startActionModeForChild(
    @NonNull View p0,
    @NonNull ActionMode.Callback p1,
    int p2
)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

void
suppressLayout(boolean p0)

This method is deprecated. This library is no longer supported.

void

This method is deprecated. This library is no longer supported.

Public constructors

SharedUiContainer

Added in 1.0.0-alpha17
Deprecated in 1.0.0-alpha17
public SharedUiContainer(@NonNull Context context, AttributeSet attrs)

Public methods

registerSharedUiAsset

Added in 1.0.0-alpha17
Deprecated in 1.0.0-alpha17
public final boolean registerSharedUiAsset(@NonNull SharedUiAsset sharedUiAsset)

Registers a SharedUiAsset, that represents a native ad asset, on SharedUiContainer. The UI provider will receive information about the asset throughout the lifetime of the shared UI session. Because of this, no user-sensitive information should be stored in sharedUiAsset.

sharedUiAsset must comprise a View and its asset ID. This view must be a child, direct or indirect, of the container. If the view gets detached from window, it will be unregistered from the container.

One View can only be associated with one asset. If there's already another SharedUiAsset registered for the View, sharedUiAsset won't be registered, and the method will return 'false'.

Asset IDs will be used by the UI provider to identify an asset view and should be obtained beforehand from the provider. Within the container, an asset ID doesn't have to be unique - the container doesn't impose any restrictions in this regard, and the exact asset ID structure should be a part of the contract between the UI client and provider.

SharedUiAsset allows to provide a SandboxedUiAdapter for registered SandboxedSdkViews. In this case, the container will handle session management of the view: SandboxedUiAdapter will be set on the view once the container's session is open or, if it's already open, will be set right away. However, the session will be closed by the container before the shared UI session in any case.

Returns
boolean

'true' if sharedUiAsset was successfully registered, 'false' if there was another SharedUiAsset registered for the provided View.

Throws
kotlin.IllegalArgumentException

if a View is not a child (direct or indirect) of the container.

setAdapter

Added in 1.0.0-alpha17
Deprecated in 1.0.0-alpha17
public final void setAdapter(SharedUiAdapter sharedUiAdapter)

Sets SharedUiAdapter to maintain a session between SharedUiContainer and a sandboxed SDK.

If there's already an adapter set, and it's different from sharedUiAdapter, its shared UI session is closed, assets registered using registerSharedUiAsset are unregistered, and UI sessions for all registered SandboxedSdkView assets are closed.

If sharedUiAdapter is the same as the previously set adapter, nothing happens.

Passing 'null' value for sharedUiAdapter will release all resources and unregister all children, without setting a new adapter.

unregisterSharedUiAsset

Added in 1.0.0-alpha17
Deprecated in 1.0.0-alpha17
public final boolean unregisterSharedUiAsset(@NonNull View view)

Unregisters a SharedUiAsset associated with a given view from the container. If the view is a SandboxedSdkView, its provider-owned UI session is closed.

Returns
boolean

'true' if the asset was unregistered successfully, 'false' otherwise (if there wasn't a SharedUiAsset associated with view)

Protected methods

onAttachedToWindow

protected void onAttachedToWindow()

onDetachedFromWindow

protected void onDetachedFromWindow()

onLayout

protected void onLayout(boolean changed, int left, int top, int right, int bottom)

Lays out the container's children in the top left corner with their measured sizes. Takes into account the container's padding settings.

Child views that are View.GONE are ignored and don't take any space.

onMeasure

protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec)

Measures the container and its children. The size of the container is determined by the size of its largest child, container's padding and suggested dimensions, but only if they do not exceed size restrictions imposed by the container's parent view. Child views are measured with respect to the container's padding settings.

View.GONE child views are not used for sizing and are not measured.

onWindowVisibilityChanged

protected void onWindowVisibilityChanged(int visibility)