Package com. streamwide. smartms. lib. core. api. hardware. headset
Types
Link copied to clipboard
IHeadSetListener
Description :
This interface represent the API for all actions/event related to Headset.
This interface is used with the STWHeadSetManager in order to delegate event linked to Headset.
Content copied to clipboard
Example of use :
- Implementation :
private IHeadSetListener mHeadSetListener = new IHeadSetListener() {
public void onHeadSetPlugged() {
//code
}
public void onHeadSetUnplugged() {
// code
}
};
Content copied to clipboard - Registration :
STWHeadSetManager.getInstance().registerForHeadsetManagerEvents(mHeadSetListener);
Content copied to clipboard
Content copied to clipboard
Link copied to clipboard