softVoiceTrigger method
Controls the software voice trigger for voice input workflows.
action specifies the trigger action (start, stop, toggle).
pluginName is the voice plugin name (defaults to DataWedgePluginName.voice).
Implementation
Future<void> softVoiceTrigger({
required String action,
String pluginName = DataWedgePluginName.voice,
String? commandTag,
bool requestResult = true,
}) {
return sendIntent(
extras: <String, dynamic>{
DataWedgeApi.pluginNameKey: pluginName,
DataWedgeApi.softTrigger: action,
},
targetPackage: DataWedgeApi.dataWedgePackage,
commandTag: commandTag ?? 'SOFT_TRIGGER',
requestResult: requestResult,
);
}