RoadShieldIconProvider

Provide road shield and exit sign images.

Inorder to generate images in a different density to that of the target device the following code can be used:

    private const val NEW_DPI = 240

val newConfig: Configuration = applicationContext.resources.configuration
newConfig.densityDpi = NEW_DPI
val provider = RoadShieldIconProvider(
context = applicationContext.createConfigurationContext(newConfig)
)

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

context

The application context.

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard

Style mode used when generating road shield or exit sign images. The style mode defaults to StyleMode.Main.

Functions

Link copied to clipboard

Generate an exit sign image.

Link copied to clipboard

Generate a road shield image.