stopKeywordDetection method
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 (_) {
developer.log(
'Error stopping keyword detection',
name: 'flutter_wake_word',
);
return false;
}
}