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 method is deprecated. Use DisplayCompat.getMode(Context, Display) to retrieve the resolution of 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 method is deprecated.
Use DisplayCompat.getMode(Context, Display) to retrieve the resolution of the current