Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IDisplay2

interface IDisplay2
Extends IDisplay Version 2 of IDisplay

Methods

getPhysicalScreenWidthInMillimeters()

i32 getPhysicalScreenWidthInMillimeters()
Query the physical width of the display in Millimeters

Returns

i32 physical width of the display in Millimeters. ‘-1’ is returned if valid value couldn’t be retrieved from display hardware.

getPhysicalScreenHeightInMillimeters()

i32 getPhysicalScreenHeightInMillimeters()
Query the physical height of the display in Millimeters

Returns

i32 physical height of the display in Millimeters. ‘-1’ is returned if valid value couldn’t be retrieved from display hardware.

isBufferFormatSupportedWithMimeType()

bool isBufferFormatSupportedWithMimeType(BufferPixelFormat* format, BufferMime* mimeType, BufferUsage* usage)
Check whether format is supported based on buffer usage flags and MIME type. Please see [IGraphicsModule#createGraphicsBuffer].

Parameters

format
BufferPixelFormat* — Required Buffer format
mimeType
BufferMime* — Required Buffer MIME type
usage
BufferUsage* — Required Buffer usage

Returns

bool True if buffer usage and format is supported

Throws


Last modified on October 29, 2026