from Wire
Parses a theme wire value, gracefully falling back to SYSTEM when missing or unrecognized.
Return
The matched SdkTheme or SYSTEM as default.
Example:
val theme = SdkTheme.fromWire("midnight") // SdkTheme.MIDNIGHT
val fallback = SdkTheme.fromWire(null) // SdkTheme.SYSTEMContent copied to clipboard
Parameters
value
The wire string representation from public app config (e.g., "ocean").