setCapabilities method

  1. @override
Future<void> setCapabilities(
  1. List<String> capabilities
)
override

Sets the available capabilities for a session. Different annotation tools and events will be available during a session depending on the capabilities you set here. By default all capabilities supported by the device are enabled.

Implementation

@override
Future<void> setCapabilities(List<String> capabilities) async {
  try {
    await methodChannel.invokeMethod('setCapabilities', capabilities);
  } on PlatformException catch (e) {
    print('Cannot set capabilities: $e');
  }
}