getColor

abstract fun getColor(@NonNull annotationTool: AnnotationTool): Int

Retrieve last configured color from preferences. Uses default tool variant.

Return

Last configured color from preferences or default color if not available.

Parameters

annotationTool

Annotation tool for which we need the preferences.


abstract fun getColor(@NonNull annotationTool: AnnotationTool, @NonNull toolVariant: AnnotationToolVariant): Int

Retrieve last configured color from preferences.

Return

Last configured color from preferences or default color if not available.

Parameters

annotationTool

Annotation tool for which we need the preferences.

toolVariant

Variant of the annotation tool.