toInstructionItemsList
fun toInstructionItemsList(context: Context, route: Route, smBuilder: SymbolicManeuverBuilder, isInDarkMode: Boolean, currentInstructionIndex: Int = -1): MutableList<InstructionItem>
Builds the list of InstructionItem that can be used to show a list of all maneuvers
Parameters
context
the Context used
route
the Route that contains the RouteSheet.instructions
isInDarkMode
indicates if dark mode resources for custom instructions icons must be used
currentInstructionIndex
the current instruction index that can be set during guidance (in order to set InstructionItem.isCurrentInstruction)