DeviceSpec

Added in 8.8.0-alpha09

@Incubating
class DeviceSpec


A class representing device-specific attributes.

Summary

Nested types

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

List<String>

The ABIs of the device.

Int

The API level of the device.

String?

The code name of the device.

String?

The name of the device which can be helpful in debugging.

Int

The screen density of the device.

Boolean

Whether the device supports Privacy Sandbox.

Public functions

equals

Added in 8.8.0-alpha09
open operator fun equals(other: Any?): Boolean

hashCode

Added in 8.8.0-alpha09
open fun hashCode(): Int

toString

Added in 8.8.0-alpha09
open fun toString(): String

Public properties

abis

Added in 8.8.0-alpha09
val abisList<String>

The ABIs of the device.

apiLevel

Added in 8.8.0-alpha09
val apiLevelInt

The API level of the device.

codeName

Added in 8.8.0-alpha09
val codeNameString?

The code name of the device.

name

Added in 8.8.0-alpha09
val nameString?

The name of the device which can be helpful in debugging.

screenDensity

Added in 8.8.0-alpha09
val screenDensityInt

The screen density of the device.

supportsPrivacySandbox

Added in 8.8.0-alpha09
val supportsPrivacySandboxBoolean

Whether the device supports Privacy Sandbox.