-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modified it to detect only headphones
- Loading branch information
Showing
4 changed files
with
86 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
android/src/main/java/flutter/moum/flutter_headset_detector/HeadsetEventListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package flutter.moum.flutter_headset_detector; | ||
|
||
public interface HeadsetEventListener { | ||
void onWiredHeadsetConnect(); | ||
void onWiredHeadsetConnect(String name,int micState); | ||
void onWirelessHeadsetConnect(); | ||
|
||
void onWiredHeadsetDisconnect(); | ||
void onWiredHeadsetDisconnect(String name,int micState); | ||
void onWirelessHeadsetDisconnect(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters