AnnotationToolVariant

Annotation tools can have variants represented by the name. To create a custom annotation tool variant use fromName, and to get an instance of the default tool variant used by the framework, use defaultVariant static creator. This class represents a variant of the tool. You can pass it alongside the AnnotationTool in enterAnnotationCreationMode to start the annotation creation mode with the specified variant of the provided annotation tool.

Types

Link copied to clipboard
enum Preset
Annotation tool variants defined by the framework.

Properties

Link copied to clipboard
Link copied to clipboard
Name of the annotation tool variant, null by default.

Functions

Link copied to clipboard
Gets an instance of the default annotation tool variant used in the framework.
Link copied to clipboard
open fun describeContents(): Int
Link copied to clipboard
open fun equals(@Nullable obj: Any): Boolean
Link copied to clipboard
Gets an instance of the annotation tool variant with specified name.
Link copied to clipboard
Gets an instance of the tool variant from the specified framework presets (the variants that are inside the framework by default)
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun writeToParcel(dest: Parcel, flags: Int)