Class PWAScreenshots
java.lang.Object
com.iizix.pwa.PWAScreenshots
The screenshots of an installable application (CC-PUSH-PWA-PAGES Set I, ruling PM-2): the PNG and JPEG files the designer put into the PWA folder's
screenshots/ directory (PWAIcons.FOLDER_SCREENSHOTS), listed in the manifest's screenshots member with their sizes read from the files and their form_factor from their shape - narrow when taller than wide (a phone), wide otherwise (a desktop) - and served by the application directory as /app/<appID>/screenshots/<name>. Optional, never captured automatically: an application without the directory has no screenshots member.Pure: bytes in, a list out, in the order of the file names.
- Author:
- Christopher Mindus
Nested Class Summary
Nested ClassesField Summary
FieldsMethod Summary
Modifier and TypeMethodDescriptionstatic List<PWAScreenshots.Shot> Lists the screenshots among a module's asset files: every.png,.jpgor.jpegdirectly underPWAIcons.FOLDER_SCREENSHOTS, by name.static StringGets the media type of a screenshot file by its extension.
Field Details
SERVED_PREFIX
The prefix of a screenshot's served name under the application directory: "screenshots/".- See Also:
NARROW
WIDE
Method Details
list
Lists the screenshots among a module's asset files: every.png,.jpgor.jpegdirectly underPWAIcons.FOLDER_SCREENSHOTS, by name. A file that is not an image that can be read is left out with one WARNING naming it.- Parameters:
appID- The application ID, for the log.assets- The asset files by path relative to the assets directory with '/' separators, or null.- Returns:
- The screenshots in the order of their names, unmodifiable; empty for none.
mediaType