react-native-headphone-detect-v2
Version:
This library is ported from the legacy react-native-headphone-detection library with support for the latest version of Android/iOS SDK, and Typescript intellisense.
8 lines • 354 B
TypeScript
import { type EventSubscription } from 'react-native';
export type ConnectedResult = {
audioJack: boolean;
bluetooth: boolean;
};
export declare function isAudioDeviceConnected(): Promise<ConnectedResult>;
export declare function onAudioDeviceChanged(callback: (p: ConnectedResult) => void): EventSubscription;
//# sourceMappingURL=index.d.ts.map