DisplayCompat.ModeCompat
public
static
final
class
DisplayCompat.ModeCompat
extends Object
java.lang.Object | |
↳ | androidx.core.view.DisplayCompat.ModeCompat |
Compat class which provides access to the underlying display mode, if there is one, and a more reliable display mode size.
Summary
Public methods | |
---|---|
int
|
getPhysicalHeight()
Returns the physical height of the given display when configured in this mode. |
int
|
getPhysicalWidth()
Returns the physical width of the given display when configured in this mode. |
boolean
|
isNative()
This field indicates whether a mode has the same resolution as the current display mode. |
Display.Mode
|
toMode()
Returns the wrapped object Display.Mode, which may be null if no mode is available. |
Inherited methods | |
---|---|
Public methods
getPhysicalHeight
public int getPhysicalHeight ()
Returns the physical height of the given display when configured in this mode.
Returns | |
---|---|
int |
getPhysicalWidth
public int getPhysicalWidth ()
Returns the physical width of the given display when configured in this mode.
Returns | |
---|---|
int |
isNative
public boolean isNative ()
This field indicates whether a mode has the same resolution as the current display mode.
This field does *not* indicate the native resolution of the display.
Returns | |
---|---|
boolean |
true if this mode is the same resolution as the current display mode. |
toMode
public Display.Mode toMode ()
Returns the wrapped object Display.Mode, which may be null if no mode is available.
Returns | |
---|---|
Display.Mode |