stopKeywordDetection method

Future<bool> stopKeywordDetection(
  1. String instanceId
)

Stops keyword detection for this instance. Returns true if successful.

Implementation

Future<bool> stopKeywordDetection(String instanceId) async {
  try {
    await _methodChannel.invokeMethod('stopKeywordDetection', {
      'instanceId': instanceId,
    });
    return true;
  } on PlatformException catch (_) {
    print('Error stopping keyword detection');
    return false;
  }

  return true;
}