Added in API level 34

VirtualDisplayConfig


class VirtualDisplayConfig : Parcelable
kotlin.Any
   ↳ android.hardware.display.VirtualDisplayConfig

Holds configuration used to create VirtualDisplay instances.

Summary

Nested classes

A builder for VirtualDisplayConfig.

Inherited constants
Public methods
Int

Boolean
equals(other: Any?)

Int

Returns the density of the virtual display in dpi.

MutableSet<String!>

Returns the display categories.

Int

Returns the virtual display flags.

Int

Returns the height of the virtual display in pixels.

String

Returns the name of the virtual display.

Float

Returns the refresh rate of a virtual display in frames per second, or zero if it is using a default refresh rate chosen by the system.

Surface?

Returns the surface to which the content of the virtual display should be rendered, if any.

Int

Returns the width of the virtual display in pixels.

Int

String

Returns a string representation of the object.

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<VirtualDisplayConfig!>

Public methods

describeContents

Added in API level 34
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

equals

Added in API level 34
fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getDensityDpi

Added in API level 34
fun getDensityDpi(): Int

Returns the density of the virtual display in dpi.

getDisplayCategories

Added in API level 34
fun getDisplayCategories(): MutableSet<String!>

Returns the display categories.

Return
MutableSet<String!> This value cannot be null.

getFlags

Added in API level 34
fun getFlags(): Int

Returns the virtual display flags.

getHeight

Added in API level 34
fun getHeight(): Int

Returns the height of the virtual display in pixels.

getName

Added in API level 34
fun getName(): String

Returns the name of the virtual display.

Return
String This value cannot be null.

getRequestedRefreshRate

Added in API level 34
fun getRequestedRefreshRate(): Float

Returns the refresh rate of a virtual display in frames per second, or zero if it is using a default refresh rate chosen by the system.

getSurface

Added in API level 34
fun getSurface(): Surface?

Returns the surface to which the content of the virtual display should be rendered, if any.

Return
Surface? This value may be null.

getWidth

Added in API level 34
fun getWidth(): Int

Returns the width of the virtual display in pixels.

hashCode

Added in API level 34
fun hashCode(): Int
Return
Int a hash code value for this object.

toString

Added in API level 34
fun toString(): String

Returns a string representation of the object.

Return
String This value cannot be null.

writeToParcel

Added in API level 34
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 34
static val CREATOR: Parcelable.Creator<VirtualDisplayConfig!>