Skip to content
This repository was archived by the owner on Oct 15, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions lib/speech_recognition.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,25 +68,4 @@ class SpeechRecognition {
print('Unknowm method ${call.method} ');
}
}

// define a method to handle availability / permission result
void setAvailabilityHandler(AvailabilityHandler handler) =>
availabilityHandler = handler;

// define a method to handle recognition result
void setRecognitionResultHandler(StringResultHandler handler) =>
recognitionResultHandler = handler;

// define a method to handle native call
void setRecognitionStartedHandler(VoidCallback handler) =>
recognitionStartedHandler = handler;

// define a method to handle native call
void setRecognitionCompleteHandler(StringResultHandler handler) =>
recognitionCompleteHandler = handler;

void setCurrentLocaleHandler(StringResultHandler handler) =>
currentLocaleHandler = handler;

void setErrorHandler(VoidCallback handler) => errorHandler = handler;
}