CoreOverlay
Describes the overlay the session is currently showing.
Overview
CoreOverlay is emitted by overlays. It carries the overlay's display text and screen position, so
your app can place it or adapt your player UI around it.
Syntax
data class CoreOverlay(
val id: String,
val text: String?,
val position: OverlayPosition?,
)
Properties
| Property | Type | Description |
|---|---|---|
id | String | The unique identifier of the overlay |
text | String? | The display text of the overlay, or null if none |
position | OverlayPosition? | Where the overlay sits on screen, or null if unspecified |
Notes
- Convert
positionto a ComposeAlignmentwithOverlayPosition.toAlignment(). - Call
dismissOverlay()to close the overlay programmatically.