StyleMode

@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
value class StyleMode(mode: Int)

Value class representing the style mode used by the RoadShieldIconProvider when generating images.

The StyleMode.Main style is synonymous with a light or day theme and the StyleMode.Dark style with a dark or night theme.

Usage Example

val provider = RoadShieldIconProvider(context)

// Set day theme (default)
provider.styleMode = StyleMode.Main

// Set night theme
provider.styleMode = StyleMode.Dark

Constructors

Link copied to clipboard
constructor(mode: Int)

Types

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
object Companion

Functions

Link copied to clipboard
open override fun toString(): String