A class for retrieving the physical display size from a device. This is necessary because Display.Mode.getPhysicalDisplaySize might not report the real physical display size because most ATV devices don't report all available modes correctly. In this case there is no way to find out whether a device is capable to display 4k content. This class offers a workaround for this problem.
Compat class which provides an additional isNative() field.
Gets the supported modes of the given display where at least one of the modes is flagged as isNative().
@NonNull static fun getSupportedModes(
@NonNull context: Context,
@NonNull display: Display
Gets the supported modes of the given display where at least one of the modes is flagged as isNative(). Note that a native mode might not wrap any Display.Mode object in case the display returns no mode with the physical display size.
||an array of supported modes where at least one of the modes is native which contains the physical display size|