CustomInstructionsIconBuilder
Class that allows to use custom icons for specific instructions By default, custom instructions has to be located in a folder named "custom_maneuvers" which must be in the img resources folder (deployed from assets of the app) Custom chained maneuver style can be different, those icons are located in relativeCustomIconsPath (relative path from relativeCustomIconsPath) This folder name can be changed using customIconsFolderName which defines that folder name These customs icons can be changed directly in that folder, by replacing a png file with another png file of the same name.
Functions
Link copied to clipboard
fun getCustomIcons(appContext: Context, isInDarkMode: Boolean, isChainedManeuver: Boolean): CustomInstructionsIconsHolder
Link copied to clipboard
fun getCustomInstructionIcon(appContext: Context, instructionType: InstructionType, isInDarkMode: Boolean, isChainedManeuver: Boolean = false): Bitmap?
Returns the Bitmap that corresponds to the instructionType if any