RichMediaColorScheme

Color scheme the SDK reports to Rich Media content. It drives the prefers-color-scheme CSS media query inside the Rich Media WebView.

Configured via setRichMediaColorScheme or the com.pushwoosh.rich_media_color_scheme meta-data tag in AndroidManifest.xml.

Entries

Link copied to clipboard

Follows the application theme: dark when the current activity theme declares android:isLightTheme="false"; without a visible activity, the manifest application theme is used. Default.

Link copied to clipboard

Follows the system dark mode setting, ignoring the application theme.

Link copied to clipboard

Rich Media content is always rendered with the light scheme.

Link copied to clipboard

Rich Media content is always rendered with the dark scheme.

Functions

Link copied to clipboard
Parses a color scheme name, case-insensitive.
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.