Class

UiMediaScope.ViewingDistance

Describes the typical distance between the user and the screen.

Source set: Common
public class ViewingDistance private constructor(private val value: Int)

Describes the typical distance between the user and the screen.

Members

Companion

Source set: Common
public companion object

Properties

Near

Source set: Common
public val Near: ViewingDistance

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.

Medium

Source set: Common
public val Medium: ViewingDistance

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

Far

Source set: Common
public val Far: ViewingDistance

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

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: