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.
11 lines • 510 B
TypeScript
import type { TurboModule } from 'react-native';
import type { ConnectedResult } from 'react-native-headphone-detect-v2';
export interface Spec extends TurboModule {
isAudioDeviceConnected(): Promise<ConnectedResult>;
addListener(eventName: string): void;
removeListeners(count: number): void;
}
declare const _default: Spec;
export default _default;
export declare const AUDIO_DEVICE_CHANGED_NOTIFICATION = "AUDIO_DEVICE_CHANGED_NOTIFICATION";
//# sourceMappingURL=NativeHeadphoneDetectV2.d.ts.map