getAnnotationMode method

Future<CPDFAnnotationType> getAnnotationMode()

Get the type of annotation added to the current touch page This method is only available in CPDFViewMode.annotations mode. Example:

CPDFAnnotationType type = await controller.getAnnotationMode();

Implementation

Future<CPDFAnnotationType> getAnnotationMode() async {
  String typeName = await _channel.invokeMethod('get_annotation_mode');
  return CPDFAnnotationType.values.firstWhere((e) => e.name == typeName);
}