Skip to main content

Module android

Module android 

Source
Expand description

Android resource semantics derived from a project-relative path.

Files under res/ are addressed by resource name (R.drawable.name, @drawable/name), never by filename, and the directory qualifiers select a configuration at runtime. Files under assets/ and res/raw are opened by path or as raw streams, so their encoded format is part of the app contract.

Structs§

AndroidResource

Constants§

WEBP_LOSSLESS_ALPHA_MIN_SDK
First API level that decodes lossless WebP and WebP with transparency.
WEBP_LOSSY_MIN_SDK
First API level that decodes lossy WebP.

Functions§

classify
Classify a project-relative file path. Returns None for non-Android paths.