Back to Filament

setMediaOverlay

docs/android/dokka/filament-android/com.google.android.filament.android/-ui-helper/set-media-overlay.md

1.75.0913 B
Original Source

//filament-android/com.google.android.filament.android/UiHelper/setMediaOverlay

setMediaOverlay

[main]
open fun setMediaOverlay(overlay: Boolean)

Controls whether the surface of the SurfaceView used as a render target should be positioned above other surfaces but below the activity's surface. This property only has an effect when used in combination with setOpaque(false) and does not affect TextureView targets. Must be called before calling attachTo or attachTo. Has no effect when using attachTo.

Parameters

main

overlayIndicates whether the render target should be rendered below the activity's surface when transparent.