Added in API level 30

InlineContentView


open class InlineContentView : ViewGroup
kotlin.Any
   ↳ android.view.View
   ↳ android.view.ViewGroup
   ↳ android.widget.inline.InlineContentView

This class represents a view that holds opaque content from another app that you can inline in your UI.

Since the content presented by this view is from another security domain,it is shown on a remote surface preventing the host application from accessing that content. Also the host application cannot interact with the inlined content by injecting touch events or clicking programmatically.

This view can be overlaid by other windows, i.e. redressed, but if this is the case the inlined UI would not be interactive. Sometimes this is desirable, e.g. animating transitions.

By default the surface backing this view is shown on top of the hosting window such that the inlined content is interactive. However, you can temporarily move the surface under the hosting window which could be useful in some cases, e.g. animating transitions. At this point the inlined content will not be interactive and the touch events would be delivered to your app.

Instances of this class are created by the platform and can be programmatically attached to your UI. Once the view is attached to the window, you may detach and reattach it to the window. It should work seamlessly from the hosting process's point of view.

Summary

Nested classes
abstract

Callback for observing the lifecycle of the surface control that manipulates the backing secure embedded UI surface.

Inherited XML attributes
Inherited constants
Public methods
open SurfaceControl?

Gets the surface control.

open Boolean

open Unit
onLayout(changed: Boolean, l: Int, t: Int, r: Int, b: Int)

open Unit
setClipBounds(clipBounds: Rect!)

open Unit

Sets a callback to observe the lifecycle of the surface control for managing the backing surface.

open Boolean

Controls whether the backing surface is placed on top of this view's window.

Protected methods
open Unit

open Unit

Inherited functions