remove

abstract fun remove(context: Context, value: MeasurementValueConfiguration)

Deletes the provided configuration from the document. If it's currently in use by any measurement annotations, a dialog is displayed. If the user decides via the dialog to delete the configuration anyways, the operation proceeds and will also delete those affected annotations.

Parameters

context

The context to be used if we need to show a dialog.

value

The MeasurementValueConfiguration to be removed from the document.


abstract fun remove(value: MeasurementValueConfiguration, deleteAssociatedAnnotations: Boolean, addToUndo: Boolean)

Deletes the value configuration from the document's configuration list. No checks are being made, no dialogs displayed.

Parameters

value

The MeasurementValueConfiguration to be removed from the document.

deleteAssociatedAnnotations

if true all measurement annotations that use the scale and precision of value will be deleted as well.

addToUndo

Set to true if the delete operation is supposed to be recorded to the undo stack.