Skip to content

This pull request enhances the existing declaration file for SwitchAudioOutput to improve its robustness and clarity. Here are the key changes:

Notifications You must be signed in to change notification settings

SyntaxBox/react-native-switch-audio-output-android

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-switch-audio-output-android

Library for selecting audio output source (only for Android). Uses Android's AudioManager class.

Getting started

npm install react-native-switch-audio-output-android
# or
yarn add react-native-switch-audio-output-android

Usage

import AudioOutput from 'react-native-switch-audio-output-android';

// Get list of possible devices
const devices = await AudioOutput.getAudioDevices();
// Returns a list of possible devices
// ["Speaker", "Bluetooth", "Headphones"]

// Switch to desired device
AudioOutput.setAudioDevice("Bluetooth");
// Note: the device must be one of the values that getAudioDevices() returned

About

This pull request enhances the existing declaration file for SwitchAudioOutput to improve its robustness and clarity. Here are the key changes:

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 92.3%
  • JavaScript 7.7%