flutter_mic_selector 1.0.0
flutter_mic_selector: ^1.0.0 copied to clipboard
Android microphone device discovery, selection, and persistence for Flutter.
1.0.0 #
- Breaking: Renamed
MicSelector→FlutterMicSelector(kept as deprecated typedef). - Breaking: New
MicrophoneDevicemodel replacesMicInputDevice(removed). - Breaking: New
MicrophoneTypeenum replacesMicInputDeviceTypesstring constants. - Breaking: Removed built-in AudioRecord recording (
start(),stop(),watchInputLevel(),watchState(),isActive). - Breaking: Permission APIs now return
boolinstead ofMicPermissionStatus(deprecated). - New:
getAvailableMicrophones()returns available input devices asMicrophoneDeviceobjects. - New:
getSelectedMicrophone()returns the currently selected device. - New:
selectMicrophone()andselectMicrophoneById()for device selection by object or native ID. - New:
clearSelectedMicrophone()restores system default routing. - New:
microphoneDevicesChangedstream emits when microphones connect or disconnect. - New: Typed exceptions:
MicrophoneNotFoundException,MicrophoneSelectionException,MicrophonePermissionException,UnsupportedMicrophoneException. - Removed: Widget layer (
MicSelectorBuilder,MicSelectorDropdown,MicSelectorView). - Removed:
MicAudioRecorder(built-in Android recording session). - Example: Audio recording demo using
recordpackage. - Docs: Updated README, API reference, and changelog.
0.0.2 #
- Update documented about
flutter_mic_selector
0.0.1 #
- Documented the native storage path used for the selected microphone id.
- Added broader Android audio input type constants, native type ids, and UI-friendly labels on
MicInputDevice. - Clarified that
typeis for stable client logic whiletypeLabel,effectiveTypeLabel, anddisplayNameare intended for UI. - Improved
MicSelectorDropdownso long device names truncate cleanly instead of overflowing. - Fixed restored-device handling when the saved microphone is no longer connected.
- Hardened Android callback, permission, and recording cleanup paths to reduce leak risk.