headphones_detection 1.0.1 copy "headphones_detection: ^1.0.1" to clipboard
headphones_detection: ^1.0.1 copied to clipboard

A Flutter plugin to detect headphones connection status on Android and iOS devices.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.1 - 2025-10-25 #

Fixed #

  • Added proper .gitignore for Flutter plugin
  • Cleaned up temporary files and git status

1.0.0 - 2025-10-05 #

Added #

  • Initial release of headphones_detection plugin
  • Support for Android and iOS platforms
  • Detection of wired headphones connection
  • Detection of Bluetooth headphones connection (A2DP, SCO)
  • Stream support for real-time monitoring
  • Periodic checking for reliable updates
  • Comprehensive error handling with custom exceptions
  • Example app demonstrating usage
  • Complete documentation and README

Technical Details #

  • Android: Uses AudioManager to detect wired and Bluetooth audio devices
  • iOS: Uses AVAudioSession to detect audio route outputs
  • Cross-platform API with consistent behavior
  • Proper error handling and exception management
0
likes
0
points
92
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to detect headphones connection status on Android and iOS devices.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on headphones_detection

Packages that implement headphones_detection