VirtualDisplayConfig
class VirtualDisplayConfig : Parcelable
kotlin.Any | |
↳ | android.hardware.display.VirtualDisplayConfig |
Holds configuration used to create VirtualDisplay
instances.
Summary
Nested classes | |
---|---|
A builder for |
Inherited constants | |
---|---|
Public methods | |
---|---|
Int | |
Boolean | |
Int |
Returns the density of the virtual display in dpi. |
MutableSet<String!> |
Returns the display categories. |
Int |
getFlags() Returns the virtual display flags. |
Int |
Returns the height of the virtual display in pixels. |
String |
getName() 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 |
getWidth() Returns the width of the virtual display in pixels. |
Int |
hashCode() |
String |
toString() 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
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
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
fun getDensityDpi(): Int
Returns the density of the virtual display in dpi.
getDisplayCategories
fun getDisplayCategories(): MutableSet<String!>
Returns the display categories.
Return | |
---|---|
MutableSet<String!> |
This value cannot be null . |
getHeight
fun getHeight(): Int
Returns the height of the virtual display in pixels.
getName
fun getName(): String
Returns the name of the virtual display.
Return | |
---|---|
String |
This value cannot be null . |
getRequestedRefreshRate
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
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
fun getWidth(): Int
Returns the width of the virtual display in pixels.
toString
fun toString(): String
Returns a string representation of the object.
Return | |
---|---|
String |
This value cannot be null . |
writeToParcel
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 |