android-components / mozilla.components.concept.engine.mediaquery / PreferredColorScheme

PreferredColorScheme

sealed class PreferredColorScheme (source)

A simple data class used to suggest to page content that the user prefers a particular color scheme.

Types

Name Summary
Dark object Dark : PreferredColorScheme
Light object Light : PreferredColorScheme
System object System : PreferredColorScheme

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.

Inheritors

Name Summary
Dark object Dark : PreferredColorScheme
Light object Light : PreferredColorScheme
System object System : PreferredColorScheme