Class

UiMediaScope.ViewingDistance

Describes the typical distance between the user and the screen.

Common
@ExperimentalMediaQueryApi
    value class ViewingDistance private constructor(private val description: String)

Describes the typical distance between the user and the screen.

Companion Object

Properties

Common
val Near = ViewingDistance("Near")

Represents a device used within close range, such as a handheld phone, tablet, laptop, or desktop monitor. This is the default for most personal devices.

Common
val Medium = ViewingDistance("Medium")

Represents a device positioned slightly further away, such as an automotive device, or a tablet in a dock mode.

Common
val Far = ViewingDistance("Far")

Represents a device viewed from a significant distance, such as a television.