SharedUiContainer


@ExperimentalFeatures.SharedUiPresentationApi
class SharedUiContainer : 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

SharedUiContainer(context: Context, attrs: AttributeSet?)

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

Public functions

Boolean

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

Unit
setAdapter(sharedUiAdapter: SharedUiAdapter?)

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

Boolean

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

Protected functions

open Unit

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

open Unit

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

open Unit
onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int)

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

open Unit
onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int)

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

open Unit

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

Inherited functions

From android.view.View
Unit
addFocusables(views: ArrayList<View>, direction: Int)

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

Unit

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

Unit

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

Unit

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

ViewPropertyAnimator

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

Unit

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

Unit

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

Unit

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

Boolean

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

Boolean
awakenScrollBars(startDelay: Int)

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

Boolean
awakenScrollBars(startDelay: Int, invalidate: Boolean)

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

Unit

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

Unit

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

Unit

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

Unit

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

Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

Boolean

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

Boolean

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

Unit

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

Unit

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

Unit

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

Boolean

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

Unit

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

Unit

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

Unit

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

Int

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

Int

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

Int

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

Unit

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

WindowInsets

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

Int

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

Int

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

Int

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

AccessibilityNodeInfo

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

open Unit

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

Unit

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

Boolean

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

Boolean
dispatchNestedFling(velocityX: Float, velocityY: Float, consumed: Boolean)

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

Boolean
dispatchNestedPreFling(velocityX: Float, velocityY: Float)

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

Boolean
dispatchNestedPrePerformAccessibilityAction(
    action: Int,
    arguments: Bundle?
)

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

Boolean
dispatchNestedPreScroll(
    dx: Int,
    dy: Int,
    consumed: IntArray?,
    offsetInWindow: IntArray?
)

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

Boolean
dispatchNestedScroll(
    dxConsumed: Int,
    dyConsumed: Int,
    dxUnconsumed: Int,
    dyUnconsumed: Int,
    offsetInWindow: IntArray?
)

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

Boolean

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

Unit
draw(canvas: Canvas)

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

Unit

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

OnBackInvokedDispatcher?

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

T
<T : View> findViewById(id: Int)

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

T
<T : View> findViewWithTag(tag: Any)

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

Boolean

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

View
focusSearch(direction: Int)

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

Unit
forceHasOverlappingRendering(hasOverlappingRendering: Boolean)

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

Unit

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

Unit
generateDisplayHash(
    hashAlgorithm: String,
    bounds: Rect?,
    executor: Executor,
    callback: DisplayHashResultCallback
)

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

IntArray

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

Boolean
getClipBounds(outRect: Rect)

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

Bitmap

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

Unit
getDrawingRect(outRect: Rect)

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

ArrayList<View>
getFocusables(direction: Int)

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

Unit

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

Boolean

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

Boolean
getGlobalVisibleRect(r: Rect, globalOffset: Point)

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

Unit
getHitRect(outRect: Rect)

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

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

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

Boolean

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

Unit

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

Unit

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

Unit

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

ViewParent

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

open ViewParent

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

Any
getTag(key: Int)

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

open 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 function is deprecated. This library is no longer supported.

open 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 function is deprecated. This library is no longer supported.

Unit

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

Boolean

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

Boolean

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

Boolean

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

Boolean

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

Boolean

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

Boolean

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

Boolean

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

Boolean

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

Unit

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

Unit
invalidate(dirty: Rect)

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

Unit
invalidate(l: Int, t: Int, r: Int, b: Int)

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

Unit

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

Unit

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

Boolean

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

open View
keyboardNavigationClusterSearch(currentCluster: View, direction: Int)

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

Unit
measure(widthMeasureSpec: Int, heightMeasureSpec: Int)

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

Unit

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

Unit

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

Unit

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

Unit

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

WindowInsets

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

Unit

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

Boolean

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

Boolean

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

Unit

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

Unit

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

InputConnection

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

Unit
onCreateViewTranslationRequest(
    supportedFormats: IntArray,
    requestsCollector: Consumer<ViewTranslationRequest>
)

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

Unit
onCreateVirtualViewTranslationRequests(
    virtualIds: LongArray,
    supportedFormats: IntArray,
    requestsCollector: Consumer<ViewTranslationRequest>
)

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

Unit

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

Boolean

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

Unit
onDraw(canvas: Canvas)

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

Unit

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

Unit

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

Boolean

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

Unit

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

Unit

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

Unit
onFocusChanged(
    gainFocus: Boolean,
    direction: Int,
    previouslyFocusedRect: Rect?
)

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

Boolean

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

Unit

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

Boolean

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

Unit

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

Unit

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

Boolean
onKeyDown(keyCode: Int, event: KeyEvent)

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

Boolean
onKeyLongPress(keyCode: Int, event: KeyEvent)

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

Boolean
onKeyMultiple(keyCode: Int, repeatCount: Int, event: KeyEvent)

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

Boolean
onKeyPreIme(keyCode: Int, event: KeyEvent)

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

Boolean
onKeyShortcut(keyCode: Int, event: KeyEvent)

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

Boolean
onKeyUp(keyCode: Int, event: KeyEvent)

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

Unit
onOverScrolled(
    scrollX: Int,
    scrollY: Int,
    clampedX: Boolean,
    clampedY: Boolean
)

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit

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

ContentInfo?

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

Unit

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

Unit
onRtlPropertiesChanged(layoutDirection: Int)

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

Parcelable?

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

Unit
onScreenStateChanged(screenState: Int)

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

Unit
onScrollCaptureSearch(
    localVisibleRect: Rect,
    windowOffset: Point,
    targets: Consumer<ScrollCaptureTarget>
)

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

Unit
onScrollChanged(l: Int, t: Int, oldl: Int, oldt: Int)

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

Boolean
onSetAlpha(alpha: Int)

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

Unit
onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int)

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

Unit

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

Boolean

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

Boolean

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

Unit

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

Unit

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

Unit

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

Unit
onVisibilityChanged(changedView: View, visibility: Int)

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

Unit
onWindowFocusChanged(hasWindowFocus: Boolean)

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

Unit

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

Boolean
overScrollBy(
    deltaX: Int,
    deltaY: Int,
    scrollX: Int,
    scrollY: Int,
    scrollRangeX: Int,
    scrollRangeY: Int,
    maxOverScrollX: Int,
    maxOverScrollY: Int,
    isTouchEvent: Boolean
)

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

Boolean
performAccessibilityAction(action: Int, arguments: Bundle?)

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

Boolean

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

Boolean

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

Boolean

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

Boolean
performHapticFeedback(feedbackConstant: Int)

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

Boolean

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

Boolean
performHapticFeedback(feedbackConstant: Int, flags: Int)

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

Boolean

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

Boolean

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

ContentInfo?

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

Unit
playSoundEffect(soundConstant: Int)

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

Boolean
post(action: Runnable)

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

Boolean
postDelayed(action: Runnable, delayMillis: Long)

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

Unit

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

Unit
postInvalidate(left: Int, top: Int, right: Int, bottom: Int)

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

Unit
postInvalidateDelayed(delayMilliseconds: Long)

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

Unit
postInvalidateDelayed(
    delayMilliseconds: Long,
    left: Int,
    top: Int,
    right: Int,
    bottom: Int
)

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

Unit

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

Unit
postInvalidateOnAnimation(left: Int, top: Int, right: Int, bottom: Int)

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

Unit

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

Unit
postOnAnimationDelayed(action: Runnable, delayMillis: Long)

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

Unit

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

Unit

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

Boolean

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit

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

open Unit

This function is deprecated. Deprecated in Java

Boolean

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

Boolean
requestFocus(direction: Int)

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

Boolean

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

open Unit

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

Unit

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

Unit

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

Boolean

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

Boolean
requestRectangleOnScreen(rectangle: Rect, immediate: Boolean)

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

Boolean
requestRectangleOnScreen(rectangle: Rect, immediate: Boolean, source: Int)

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

Unit

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

Unit

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

T
<T : View> requireViewById(id: Int)

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

Unit

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

Unit

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

Unit
saveAttributeDataForStyleable(
    context: Context,
    styleable: IntArray,
    attrs: AttributeSet?,
    t: TypedArray,
    defStyleAttr: Int,
    defStyleRes: Int
)

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

Unit

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

Unit
scheduleDrawable(who: Drawable, what: Runnable, when: Long)

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

Unit
scrollBy(x: Int, y: Int)

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

Unit
scrollTo(x: Int, y: Int)

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

Unit

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

Unit

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

Unit
setAccessibilityDataSensitive(accessibilityDataSensitive: Int)

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

Unit
setAllowClickWhenDisabled(clickableWhenDisabled: Boolean)

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

Unit

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

Unit

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

Unit
setAutofillHints(vararg autofillHints: String)

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit
setHandwritingBoundsOffsets(
    offsetLeft: Float,
    offsetTop: Float,
    offsetRight: Float,
    offsetBottom: Float
)

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

Unit
setHasTransientState(hasTransientState: Boolean)

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

Unit
setIsCredential(isCredential: Boolean)

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

Unit
setIsHandwritingDelegate(isHandwritingDelegate: Boolean)

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

Unit

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

Unit
setLayerType(layerType: Int, paint: Paint?)

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

Unit
setLeftTopRightBottom(left: Int, top: Int, right: Int, bottom: Int)

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

Unit
setMeasuredDimension(measuredWidth: Int, measuredHeight: Int)

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit
setOnReceiveContentListener(
    mimeTypes: Array<String>?,
    listener: OnReceiveContentListener?
)

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

Unit

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

Unit

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

Unit

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

Unit
setPadding(left: Int, top: Int, right: Int, bottom: Int)

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

Unit
setPaddingRelative(start: Int, top: Int, end: Int, bottom: Int)

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

Unit

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

Unit
setRenderEffect(renderEffect: RenderEffect?)

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

Unit

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

Unit
setScrollIndicators(indicators: Int, mask: Int)

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

Unit
setTag(key: Int, tag: Any)

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

Unit

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

Unit

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

Unit
setWillNotCacheDrawing(willNotCacheDrawing: Boolean)

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

Unit
setWillNotDraw(willNotDraw: Boolean)

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

Boolean

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

Boolean

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

ActionMode

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

ActionMode

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

Unit

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

Boolean
startDrag(
    data: ClipData,
    shadowBuilder: View.DragShadowBuilder,
    myLocalState: Any,
    flags: Int
)

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

Boolean
startDragAndDrop(
    data: ClipData,
    shadowBuilder: View.DragShadowBuilder,
    myLocalState: Any,
    flags: Int
)

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

Boolean

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

Unit

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

open String

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit

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

Boolean

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

Boolean

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

Boolean

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

From android.view.ViewGroup
Unit

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

Unit
addExtraDataToAccessibilityNodeInfo(
    info: AccessibilityNodeInfo,
    extraDataKey: String,
    arguments: Bundle?
)

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

Unit
addFocusables(views: ArrayList<View>, direction: Int, focusableMode: Int)

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

Unit
addKeyboardNavigationClusters(
    views: MutableCollection<View>,
    direction: Int
)

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

Boolean

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

Unit

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

Unit
addView(child: View)

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

Unit
addView(child: View, index: Int)

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

Unit
addView(child: View, params: ViewGroup.LayoutParams)

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

Unit
addView(child: View, index: Int, params: ViewGroup.LayoutParams)

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

Unit
addView(child: View, width: Int, height: Int)

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

Boolean
addViewInLayout(child: View, index: Int, params: ViewGroup.LayoutParams)

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

Boolean
addViewInLayout(
    child: View,
    index: Int,
    params: ViewGroup.LayoutParams,
    preventRequestLayout: Boolean
)

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

Unit
attachLayoutAnimationParameters(
    child: View,
    params: ViewGroup.LayoutParams,
    index: Int,
    count: Int
)

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

Unit
attachViewToParent(child: View, index: Int, params: ViewGroup.LayoutParams)

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

Unit

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

Boolean

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

Boolean

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

Unit

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

Unit
childHasTransientStateChanged(
    child: View,
    childHasTransientState: Boolean
)

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit
debug(depth: Int)

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

Unit

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

Unit

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

Unit

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

Unit
detachViewsFromParent(start: Int, count: Int)

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

WindowInsets

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

Boolean

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

Unit

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

Unit
dispatchCreateViewTranslationRequest(
    viewIds: MutableMap<AutofillIdLongArray>,
    supportedFormats: IntArray,
    capability: TranslationCapability,
    requests: MutableList<ViewTranslationRequest>
)

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

Unit

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

Boolean

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

Unit

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

Unit

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

Unit

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

Unit

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

Boolean

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

Boolean

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

Boolean

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

Boolean

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

Boolean

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

Boolean

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit
dispatchScrollCaptureSearch(
    localVisibleRect: Rect,
    windowOffset: Point,
    targets: Consumer<ScrollCaptureTarget>
)

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit

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

Boolean

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

Boolean

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

Boolean
dispatchUnhandledMove(focused: View, direction: Int)

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

Unit
dispatchVisibilityChanged(changedView: View, visibility: Int)

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

Unit

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

Unit

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

Unit

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

WindowInsets

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

WindowInsetsAnimation.Bounds

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

Unit

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

Unit

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

Boolean
drawChild(canvas: Canvas, child: View, drawingTime: Long)

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

Unit

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

Unit

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

View

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

OnBackInvokedDispatcher?

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

Unit
findViewsWithText(
    outViews: ArrayList<View>,
    text: CharSequence,
    flags: Int
)

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

View
focusSearch(focused: View, direction: Int)

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

Unit

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

Boolean

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

ViewGroup.LayoutParams

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

ViewGroup.LayoutParams

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

ViewGroup.LayoutParams

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

View
getChildAt(index: Int)

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

Int
getChildDrawingOrder(drawingPosition: Int)

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

Int
getChildDrawingOrder(childCount: Int, drawingPosition: Int)

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

Boolean

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

Boolean
getChildVisibleRect(child: View, r: Rect, offset: Point)

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

Boolean

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

Boolean

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

Int

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

Unit
invalidateChild(child: View, dirty: Rect)

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

ViewParent
invalidateChildInParent(location: IntArray, dirty: Rect)

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

Unit

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

Unit
layout(l: Int, t: Int, r: Int, b: Int)

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

Unit
measureChild(
    child: View,
    parentWidthMeasureSpec: Int,
    parentHeightMeasureSpec: Int
)

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

Unit
measureChildWithMargins(
    child: View,
    parentWidthMeasureSpec: Int,
    widthUsed: Int,
    parentHeightMeasureSpec: Int,
    heightUsed: Int
)

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

Unit
measureChildren(widthMeasureSpec: Int, heightMeasureSpec: Int)

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

Unit
notifySubtreeAccessibilityStateChanged(
    child: View,
    source: View,
    changeType: Int
)

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

Unit

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

Unit

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

IntArray

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

Unit
onDescendantInvalidated(child: View, target: View)

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

Boolean

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

Boolean

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

Boolean
onNestedFling(
    target: View,
    velocityX: Float,
    velocityY: Float,
    consumed: Boolean
)

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

Boolean
onNestedPreFling(target: View, velocityX: Float, velocityY: Float)

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

Boolean
onNestedPrePerformAccessibilityAction(
    target: View,
    action: Int,
    args: Bundle?
)

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

Unit
onNestedPreScroll(target: View, dx: Int, dy: Int, consumed: IntArray)

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

Unit
onNestedScroll(
    target: View,
    dxConsumed: Int,
    dyConsumed: Int,
    dxUnconsumed: Int,
    dyUnconsumed: Int
)

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

Unit
onNestedScrollAccepted(child: View, target: View, axes: Int)

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

Boolean
onRequestFocusInDescendants(direction: Int, previouslyFocusedRect: Rect)

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

Boolean

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

PointerIcon
onResolvePointerIcon(event: MotionEvent, pointerIndex: Int)

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

Boolean
onStartNestedScroll(child: View, target: View, nestedScrollAxes: Int)

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

Unit

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

Unit
onViewAdded(child: View)

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

Unit

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

Unit
propagateRequestedFrameRate(frameRate: Float, forceOverride: Boolean)

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

Unit

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

Unit

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

Unit

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

Unit
removeDetachedView(child: View, animate: Boolean)

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

Unit

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

Unit
removeViewAt(index: Int)

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

Unit

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

Unit
removeViews(start: Int, count: Int)

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

Unit
removeViewsInLayout(start: Int, count: Int)

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

Unit
requestChildFocus(child: View, focused: View)

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

Boolean
requestChildRectangleOnScreen(
    child: View,
    rectangle: Rect,
    immediate: Boolean
)

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

Unit

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

Boolean
requestFocus(direction: Int, previouslyFocusedRect: Rect)

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

Boolean

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

Unit

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

Boolean

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit

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

Unit

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

Boolean

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

Boolean

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

Boolean
showContextMenuForChild(originalView: View, x: Float, y: Float)

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

ActionMode
startActionModeForChild(
    originalView: View,
    callback: ActionMode.Callback
)

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

ActionMode
startActionModeForChild(
    originalView: View,
    callback: ActionMode.Callback,
    type: Int
)

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

Unit

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

Unit

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

Unit

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

Unit

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

From android.view.ViewParent
Boolean
requestChildRectangleOnScreen(
    child: View,
    rectangle: Rect,
    immediate: Boolean,
    source: Int
)

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

Inherited properties

From android.view.View
open View.AccessibilityDelegate

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

open Int

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

open AccessibilityNodeProvider

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

open CharSequence?

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

open Int

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

open Int

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

open String?

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

open String?

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

open Float

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

open Animation

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

open Matrix?

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

open IBinder

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

open MutableMap<IntInt>

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

open Array<String>?

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

AutofillId

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

open Int

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

open AutofillValue?

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

open Drawable

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

open BlendMode?

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

open ColorStateList?

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

open PorterDuff.Mode?

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

open Int

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

Int

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

open Float

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

open Int

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

open Float

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

open Rect

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

Boolean

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

ContentCaptureSession?

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

open CharSequence

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

Int

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

Context

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

open ContextMenu.ContextMenuInfo

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

Boolean

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

open Display

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

IntArray

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

open Bitmap

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

open Int

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

open Int

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

open Long

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

open Float

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

open Int

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

open Boolean

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

open Boolean

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

open Int

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

open Drawable

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

open Int

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

open BlendMode?

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

open ColorStateList?

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

open PorterDuff.Mode?

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

open Float

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

open Handler

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

open Float

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

open Float

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

open Float

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

open Float

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

open Int

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

open Runnable?

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

Boolean

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

Int

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

open Int

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

open Int

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

open Drawable?

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

open Drawable?

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

open Int

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

open Int

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

open Int

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

open Int

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

Boolean

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

Boolean

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

open Boolean

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

Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

Boolean

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

Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

Boolean

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

open Boolean

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

open Boolean

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

Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open KeyEvent.DispatcherState

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

open Int

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

open Int

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

open Int

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

open ViewGroup.LayoutParams

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

Int

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

open Float

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

open Int

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

open Matrix

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

Int

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

Int

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

Int

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

Int

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

Int

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

open Int

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

open Int

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

open Int

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

open Int

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

open Int

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

open Int

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

open Int

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

open Int

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

open View.OnFocusChangeListener

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

open Int

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

open ViewOutlineProvider

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

open Int

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

open Int

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

open Int

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

open Int

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

open Int

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

open Int

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

open Int

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

open Int

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

final ViewParent

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

open ViewParent

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

OutcomeReceiver<GetCredentialResponseGetCredentialException>?

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

GetCredentialRequest?

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

open Float

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

open Float

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

open PointerIcon

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

MutableList<Rect>

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

open Array<String>?

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

open Float

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

open Resources

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

Boolean

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

Int

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

open Float

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

open Int

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

open AttachedSurfaceControl?

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

open View

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

open WindowInsets

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

open Float

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

open Float

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

open Float

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

open Float

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

open Float

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

open Int

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

open Int

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

open Int

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

open Int

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

open Int

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

open Int

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

Int

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

Int

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

open Int

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

open Int

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

CharSequence?

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

open StateListAnimator

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

open Int

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

open Int

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

open CharSequence?

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

open MutableList<Rect>

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

open Int

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

open Any

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

open Int

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

open Int

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

open CharSequence?

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

Int

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

open Float

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

open Int

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

open TouchDelegate

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

open ArrayList<View>

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

open Float

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

open String

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

open Float

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

open Float

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

open Float

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

open Long

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

open Int

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

open Int

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

open Drawable?

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

open Drawable?

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

open Int

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

open ViewTranslationResponse?

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

open ViewTreeObserver

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

open Int

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

Int

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

open Int

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

open WindowId

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

open WindowInsetsController?

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

open Int

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

open IBinder

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

open Int

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

open Float

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

open Float

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

open Float

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

From android.view.ViewGroup
open CharSequence

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

open Int

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

open Boolean

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

open Boolean

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

open Int

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

open View

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open Boolean

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

open LayoutAnimationController

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

open Animation.AnimationListener

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

open Int

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

open LayoutTransition

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

open Int

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

open ViewGroupOverlay

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

open Int

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

open Boolean

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

Public constructors

SharedUiContainer

Added in 1.0.0-alpha17
Deprecated in 1.0.0-alpha17
SharedUiContainer(context: Context, attrs: AttributeSet? = null)

Public functions

registerSharedUiAsset

Added in 1.0.0-alpha17
Deprecated in 1.0.0-alpha17
fun registerSharedUiAsset(sharedUiAsset: SharedUiAsset): Boolean

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
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
fun setAdapter(sharedUiAdapter: SharedUiAdapter?): Unit

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
fun unregisterSharedUiAsset(view: View): Boolean

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 functions

onAttachedToWindow

protected open fun onAttachedToWindow(): Unit

onDetachedFromWindow

protected open fun onDetachedFromWindow(): Unit

onLayout

protected open fun onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int): Unit

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 open fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int): Unit

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 open fun onWindowVisibilityChanged(visibility: Int): Unit