getAlpha

@FloatRange(from = 0.0, to = 1.0)
abstract fun getAlpha(@NonNull annotationTool: AnnotationTool): Float

Gets last configured annotation alpha from preferences.

Return

Last configured annotation alpha or default alpha if not available.

Parameters

annotationTool

Annotation tool for which we need the preferences.


@FloatRange(from = 0.0, to = 1.0)
abstract fun getAlpha(@NonNull annotationTool: AnnotationTool, @NonNull toolVariant: AnnotationToolVariant): Float

Gets last configured annotation alpha from preferences.

Return

Last configured annotation alpha or default alpha if not available.

Parameters

annotationTool

Annotation tool for which we need the preferences.

toolVariant

Variant of the annotation tool.