Methods Summary |
---|
public abstract android.view.Display | getDisplay(int displayId)Gets information about a logical display.
The display metrics may be adjusted to provide compatibility
for legacy applications.
|
public abstract android.view.Display[] | getDisplays()Gets all currently valid logical displays.
|
public abstract android.view.Display[] | getDisplays(java.lang.String category)Gets all currently valid logical displays of the specified category.
When there are multiple displays in a category the returned displays are sorted
of preference. For example, if the requested category is
{@link #DISPLAY_CATEGORY_PRESENTATION} and there are multiple presentation displays
then the displays are sorted so that the first display in the returned array
is the most preferred presentation display. The application may simply
use the first display or allow the user to choose.
|
public static android.support.v4.hardware.display.DisplayManagerCompat | getInstance(android.content.Context context)Gets an instance of the display manager given the context.
synchronized (sInstances) {
DisplayManagerCompat instance = sInstances.get(context);
if (instance == null) {
final int version = android.os.Build.VERSION.SDK_INT;
if (version >= 17) {
instance = new JellybeanMr1Impl(context);
} else {
instance = new LegacyImpl(context);
}
sInstances.put(context, instance);
}
return instance;
}
|