Annotation Configuration Registry
interface AnnotationConfigurationRegistry
Interface for objects that manage a list of AnnotationConfiguration for supported annotation types.
Functions
Link copied to clipboard
Retrieve configuration for given annotation type.
Retrieve configuration for given annotation tool.
abstract fun <T : AnnotationConfiguration?> get(@NonNull annotationType: AnnotationType, @NonNull requiredClass: Class<T>): T
Retrieve configuration for given annotation type casted to required configuration type.
abstract fun get(@NonNull annotationTool: AnnotationTool, @NonNull toolVariant: AnnotationToolVariant): AnnotationConfiguration
Retrieve configuration for given annotation tool and its tool variant.
abstract fun <T : AnnotationConfiguration?> get(@NonNull annotationTool: AnnotationTool, @NonNull requiredClass: Class<T>): T
Retrieve configuration for given annotation tool casted to required configuration type.
abstract fun <T : AnnotationConfiguration?> get(@NonNull annotationTool: AnnotationTool, @NonNull toolVariant: AnnotationToolVariant, @NonNull requiredClass: Class<T>): T
Retrieve configuration for given annotation tool and its variant casted to required configuration type.
Link copied to clipboard
abstract fun isAnnotationPropertySupported(@NonNull annotationType: AnnotationType, @NonNull property: AnnotationProperty): Boolean
Tests if annotation type supports editing given property.
abstract fun isAnnotationPropertySupported(@NonNull annotationTool: AnnotationTool, @NonNull property: AnnotationProperty): Boolean
Tests if annotation tool supports editing given property.
abstract fun isAnnotationPropertySupported(@NonNull annotationTool: AnnotationTool, @NonNull toolVariant: AnnotationToolVariant, @NonNull property: AnnotationProperty): Boolean
Tests if annotation tool variant supports editing given property.
Link copied to clipboard
Tests if annotation tool supports editing z-index on a given annotation type.
Link copied to clipboard
abstract fun put(@NonNull annotationType: AnnotationType, @Nullable configuration: AnnotationConfiguration)
Registers annotation configuration for given annotation type.
abstract fun put(@NonNull annotationTool: AnnotationTool, @Nullable configuration: AnnotationConfiguration)
abstract fun put(@NonNull annotationTool: AnnotationTool, @NonNull toolVariant: AnnotationToolVariant, @Nullable configuration: AnnotationConfiguration)
Registers configuration for given annotation tool.