API reference
API reference
Select your platform
No SDKs available
No versions available

MediaPanelSettings Class

Implements PanelSettings
Modifiers: final
Configuration for media panel rendering, combining shape, display, rendering, style, and input options into a single PanelSettings implementation. Used with media content (video, camera feeds) that requires different rendering behavior than standard UI panels. Call toPanelConfigOptions() to convert into the low-level PanelConfigOptions consumed by the panel system.

Signature

class MediaPanelSettings(val shape: MediaPanelShapeOptions, val display: MediaPanelDisplayOptions, val rendering: MediaPanelRenderOptions = MediaPanelRenderOptions(), val style: PanelStyleOptions = PanelStyleOptions(), val input: PanelInputOptions = PanelInputOptions()) : PanelSettings

Constructors

MediaPanelSettings ( shape , display , rendering , style , input )
Signature
constructor(shape: MediaPanelShapeOptions, display: MediaPanelDisplayOptions, rendering: MediaPanelRenderOptions = MediaPanelRenderOptions(), style: PanelStyleOptions = PanelStyleOptions(), input: PanelInputOptions = PanelInputOptions())
Parameters
shape: MediaPanelShapeOptions  Shape configuration for the media panel, controlling geometry (quad or cylinder) and dimensions via MediaPanelShapeOptions.
display: MediaPanelDisplayOptions  Display options governing resolution, pixel density, and content scaling for the media content rendered on this panel.
rendering: MediaPanelRenderOptions  Rendering options including layer mode and compositing settings that control how the media panel is drawn within the scene. Defaults to standard MediaPanelRenderOptions.
style: PanelStyleOptions  Visual styling options such as the Android theme resource ID applied to the panel's View hierarchy. Defaults to PanelStyleOptions().
input: PanelInputOptions  Input handling configuration controlling which controller buttons trigger click events on this panel. Defaults to PanelInputOptions().

Properties

[Get]
Display options governing resolution, pixel density, and content scaling for the media content rendered on this panel.
Signature
val display: MediaPanelDisplayOptions
[Get]
Input handling configuration controlling which controller buttons trigger click events on this panel. Defaults to PanelInputOptions().
Signature
val input: PanelInputOptions
[Get]
Rendering options including layer mode and compositing settings that control how the media panel is drawn within the scene. Defaults to standard MediaPanelRenderOptions.
Signature
val rendering: MediaPanelRenderOptions
[Get]
Shape configuration for the media panel, controlling geometry (quad or cylinder) and dimensions via MediaPanelShapeOptions.
Signature
val shape: MediaPanelShapeOptions
[Get]
Visual styling options such as the Android theme resource ID applied to the panel's View hierarchy. Defaults to PanelStyleOptions().
Signature
val style: PanelStyleOptions

Methods

toPanelConfigOptions ()
Converts these high-level panel settings into a low-level PanelConfigOptions object consumed by the panel rendering system. Applies rendering, shape, display, style, and input modifiers in the correct order.
Signature
open override fun toPanelConfigOptions(): PanelConfigOptions
Returns
PanelConfigOptions  A fully configured PanelConfigOptions ready for the panel rendering system.