Composable Function

dynamicRemoteColorScheme

Creates a RemoteColorScheme whose colors follow the player's Android system (dynamic) colors.

dynamicRemoteColorScheme

Source set: Android
@Composable
public fun dynamicRemoteColorScheme(
    fallbackColorScheme: ColorScheme = ColorScheme()
): RemoteColorScheme

Creates a RemoteColorScheme whose colors follow the player's Android system (dynamic) colors.

Each color role is mapped to the corresponding Android system color token (e.g. android.R.color.system_primary_dark), so the player resolves it against the device's dynamic colors. Wear is always dark, so only the dark system tokens are used.

If the current document profile does not support themed colors (e.g. Wear widgets), the named "WearM3.*" color scheme is returned instead.

Use with RemoteMaterialTheme to opt in, e.g. RemoteMaterialTheme(colorScheme = dynamicRemoteColorScheme()) { ... }.

Parameters

fallbackColorScheme The ColorScheme used for fallback values when a system color cannot be resolved, and for the named colors on profiles without themed color support.

Content updated: