VirtualDisplayConfig
class VirtualDisplayConfig : Parcelable
| kotlin.Any | |
| ↳ | android.hardware.display.VirtualDisplayConfig | 
Holds configuration used to create VirtualDisplay instances.
Summary
| Nested classes | |
|---|---|
| abstract | Listener for display brightness changes. | 
| A builder for  | |
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int | |
| Boolean | |
| Float | Returns the default brightness of the display. | 
| Int | Returns the density of the virtual display in dpi. | 
| Float | Returns the dim brightness of the display. | 
| 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 0orandroid.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
equals
fun equals(other: Any?): Boolean
| Parameters | |
|---|---|
| obj | the reference object with which to compare. | 
| Return | |
|---|---|
| Boolean | trueif this object is the same as the obj argument;falseotherwise. | 
getDefaultBrightness
fun getDefaultBrightness(): Float
Returns the default brightness of the display.
Value of 0.0 indicates the minimum supported brightness and value of 1.0 indicates the maximum supported brightness.
| Return | |
|---|---|
| Float | Value is between 0.0f and 1.0f inclusive | 
getDensityDpi
fun getDensityDpi(): Int
Returns the density of the virtual display in dpi.
getDimBrightness
fun getDimBrightness(): Float
Returns the dim brightness of the display.
Value of 0.0 indicates the minimum supported brightness and value of 1.0 indicates the maximum supported brightness.
| Return | |
|---|---|
| Float | Value is between 0.0f and 1.0f inclusive | 
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 either0or a combination ofandroid.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
