ScreenshotSpec class

The pixel sizes Apple accepts for one ScreenshotDisplayType.

Several display types take more than one size because Apple folded newer devices into an existing slot rather than adding one — the 6.9" iPhone publishes through APP_IPHONE_67, and the 13" iPad through APP_IPAD_PRO_3GEN_129. That is also why hardcoding a single "correct" size would be wrong.

Landscape is accepted as the transpose of each entry, so it is not listed twice.

Apple is the authority, not this table. It is a convenience check drawn from Apple's screenshot specifications, and if a size is missing the error says so plainly rather than claiming the file is invalid: https://developer.apple.com/help/app-store-connect/reference/screenshot-specifications/

Constructors

ScreenshotSpec(String label, List<({int height, int width})> portraitSizes)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
label String
How Apple names this slot in the console, for error messages — the API enum on its own tells nobody which device they need.
final
portraitSizes List<({int height, int width})>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizesDescription String
no setter

Methods

accepts(int width, int height) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited