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.accessibility.AccessibilityEventSource
open Unit

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

open Unit

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

From android.graphics.drawable.Drawable.Callback
open Unit

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

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

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

open Unit

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

From android.view.KeyEvent.Callback
open Boolean
onKeyDown(keyCode: Int, event: KeyEvent)

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

open Boolean
onKeyLongPress(keyCode: Int, event: KeyEvent)

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

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

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

open Boolean
onKeyUp(keyCode: Int, event: KeyEvent)

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

From android.view.View
open Unit

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

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

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

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

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

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

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

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

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

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

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

open Unit

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

open ViewPropertyAnimator

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

open Unit

This function is deprecated. Deprecated in Java

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 Boolean

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

open Boolean
awakenScrollBars(startDelay: Int)

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

open Boolean
awakenScrollBars(startDelay: Int, invalidate: Boolean)

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

open Unit

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

open Unit

This function is deprecated. Deprecated in Java

open Unit

This function is deprecated. Deprecated in Java

open 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.

open Boolean

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

open Boolean

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. 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 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

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

open Unit

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

open Int

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

open Int

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

open Int

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

open Unit

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

open WindowInsets

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

open Int

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

open Int

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

open Int

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

open AccessibilityNodeInfo

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

open Unit

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

open Unit

This function is deprecated. Deprecated in Java

open WindowInsets

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

open Boolean

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

open Unit

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

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

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

open Unit

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

open Boolean

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

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

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.

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
dispatchNestedFling(velocityX: Float, velocityY: Float, consumed: Boolean)

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

open Boolean
dispatchNestedPreFling(velocityX: Float, velocityY: Float)

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

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

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

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

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

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

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

open Unit

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

open Boolean

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

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

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

open Unit

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

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

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

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

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

open Unit

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

open Unit

This function is deprecated. Deprecated in Java

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
dispatchUnhandledMove(focused: View, direction: Int)

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

open Unit
dispatchVisibilityChanged(changedView: View, visibility: Int)

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

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

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

open WindowInsets

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

open WindowInsetsAnimation.Bounds

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

open Unit

This function is deprecated. Deprecated in Java

open Unit

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

open Unit
draw(canvas: Canvas)

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

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 View

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.

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

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

open Boolean

This function is deprecated. Deprecated in Java

open View
focusSearch(direction: Int)

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

open Unit
forceHasOverlappingRendering(hasOverlappingRendering: Boolean)

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

open Unit

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

open Boolean

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

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

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

open IntArray

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

open Unit
getDrawingRect(outRect: Rect)

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

open ArrayList<View>
getFocusables(direction: Int)

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

open Unit

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

Boolean

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

open Boolean
getGlobalVisibleRect(r: Rect, globalOffset: Point)

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

open 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.

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

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.

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.

open 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.

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.

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 Unit

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

open Unit
invalidate(dirty: Rect)

This function is deprecated. Deprecated in Java

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

This function is deprecated. Deprecated in Java

open 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.

open Boolean

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

open Unit

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
layout(l: Int, t: Int, r: Int, b: 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.

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

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

open Unit

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

open WindowInsets

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

open 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 Unit

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

open Unit

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

open IntArray

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

open InputConnection

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

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

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

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

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

open Unit

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

open Boolean

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

open Unit
onDraw(canvas: Canvas)

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.

open Boolean

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

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
onFocusChanged(
    gainFocus: Boolean,
    direction: Int,
    previouslyFocusedRect: Rect?
)

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

open Boolean

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

open Unit

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

open Boolean

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

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 Boolean
onKeyPreIme(keyCode: Int, event: KeyEvent)

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

open Boolean
onKeyShortcut(keyCode: Int, event: KeyEvent)

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

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

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

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

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

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

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

open Unit

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

open ContentInfo?

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

open PointerIcon
onResolvePointerIcon(event: MotionEvent, pointerIndex: Int)

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

open Unit

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

open Unit
onRtlPropertiesChanged(layoutDirection: Int)

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

open Parcelable?

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

open Unit
onScreenStateChanged(screenState: Int)

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

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

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

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

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

open Boolean
onSetAlpha(alpha: Int)

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

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

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

open 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 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

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

open Unit
onVisibilityChanged(changedView: View, visibility: Int)

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

open Unit
onWindowFocusChanged(hasWindowFocus: Boolean)

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

open Unit

This function is deprecated. Deprecated in Java

open 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.

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

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
performHapticFeedback(feedbackConstant: Int)

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

open Boolean
performHapticFeedback(feedbackConstant: Int, flags: Int)

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 ContentInfo?

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

open Unit
playSoundEffect(soundConstant: Int)

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

open Boolean
post(action: Runnable)

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

open Boolean
postDelayed(action: Runnable, delayMillis: Long)

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

open Unit

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

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

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

open Unit
postInvalidateDelayed(delayMilliseconds: Long)

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

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

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

open Unit

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

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

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

open Unit

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

open Unit
postOnAnimationDelayed(action: Runnable, delayMillis: Long)

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

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 Boolean

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

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

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

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

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.

open 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.

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 Boolean

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

open Boolean
requestRectangleOnScreen(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.

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.

open Unit

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

open Boolean

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

open 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.

open Unit

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

open Unit
scrollBy(x: Int, y: Int)

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

open Unit
scrollTo(x: Int, y: Int)

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

open Unit
setAccessibilityDataSensitive(accessibilityDataSensitive: Int)

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

open Unit
setAllowClickWhenDisabled(clickableWhenDisabled: Boolean)

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

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
setAutofillHints(vararg autofillHints: String?)

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

open Unit

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

open Unit

This function is deprecated. Deprecated in Java

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
setHandwritingBoundsOffsets(
    offsetLeft: Float,
    offsetTop: Float,
    offsetRight: Float,
    offsetBottom: Float
)

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

open Unit
setHasTransientState(hasTransientState: Boolean)

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

open Unit
setIsCredential(isCredential: Boolean)

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

open Unit
setIsHandwritingDelegate(isHandwritingDelegate: Boolean)

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

open Unit

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

open 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.

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

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

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

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

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

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

open Unit

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

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

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

open Unit

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

open Unit

This function is deprecated. Deprecated in Java

open Unit

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

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

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

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

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

open Unit

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

open 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.

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
setWillNotCacheDrawing(willNotCacheDrawing: Boolean)

This function is deprecated. Deprecated in Java

open Unit
setWillNotDraw(willNotDraw: Boolean)

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

open 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 ActionMode

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

open ActionMode

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

open 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. Deprecated in Java

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

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

open Boolean

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

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

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.

open Boolean

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

open Boolean

This function is deprecated. Deprecated in Java

open Boolean
@ViewDebug.ExportedProperty(category = "drawing")
willNotDraw()

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

From android.view.ViewGroup
open Boolean

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

open Unit
addView(child: View)

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

open Unit
addView(child: View, index: Int)

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

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

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

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

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

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

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

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

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

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

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

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

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 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
debug(depth: Int)

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

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

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

open Unit
detachViewsFromParent(start: Int, count: Int)

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

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 Boolean
drawChild(canvas: Canvas, child: View, drawingTime: Long)

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

open Unit

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

open ViewGroup.LayoutParams

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

open ViewGroup.LayoutParams

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

open ViewGroup.LayoutParams

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

open 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.

open Int
getChildDrawingOrder(childCount: Int, drawingPosition: Int)

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

open Boolean

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

open Int

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

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

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

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

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

open Unit
measureChildren(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.

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
onRequestFocusInDescendants(direction: Int, previouslyFocusedRect: Rect)

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

open Boolean

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

open Unit
onViewAdded(child: View)

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

open Unit

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

open Unit
propagateRequestedFrameRate(frameRate: Float, forceOverride: Boolean)

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

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
removeDetachedView(child: View, animate: Boolean)

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

open Unit
removeViewAt(index: Int)

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

open Unit

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

open Unit
removeViews(start: Int, count: Int)

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

open Unit
removeViewsInLayout(start: Int, count: Int)

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

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

This function is deprecated. Deprecated in Java

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 Boolean

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

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

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

From android.view.ViewManager
open Unit
addView(child: View, params: ViewGroup.LayoutParams)

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

open Unit

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

open Unit

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

From android.view.ViewParent
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
childHasTransientStateChanged(
    child: View,
    childHasTransientState: Boolean
)

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

open Unit

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

open OnBackInvokedDispatcher?

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

open View
focusSearch(focused: View, direction: Int)

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

open Unit

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

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

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

Unit
invalidateChild(child: View, dirty: Rect)

This function is deprecated. Deprecated in Java

open ViewParent
invalidateChildInParent(location: IntArray, dirty: Rect)

This function is deprecated. Deprecated in Java

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

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

open Unit
onDescendantInvalidated(child: View, target: View)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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
requestChildFocus(child: View, focused: View)

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

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

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

open Unit

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

open Boolean

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

open 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
showContextMenuForChild(originalView: View, x: Float, y: Float)

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

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

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

open ActionMode
startActionModeForChild(
    originalView: View,
    callback: ActionMode.Callback,
    type: 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