mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Add playThroughEarpieceAndroid option to AudioMode.
This commit is contained in:
committed by
Girish Jayantilal Jain
parent
935a7078dd
commit
ee43d3eb16
@@ -167,6 +167,7 @@ Audio.setAudioModeAsync({
|
||||
interruptionModeIOS: 2,
|
||||
interruptionModeAndroid: 1,
|
||||
allowsRecordingIOS: true,
|
||||
playThroughEarpieceAndroid: true,
|
||||
});
|
||||
Audio.setIsEnabledAsync(true);
|
||||
|
||||
|
||||
Vendored
+3
@@ -418,6 +418,9 @@ export namespace Audio {
|
||||
|
||||
/** an enum selecting how your experience’s audio should interact with the audio from other apps on Android: */
|
||||
interruptionModeAndroid: InterruptionModeAndroid;
|
||||
|
||||
/** Boolean selecting if your experience’s audio should route to earpiece on Android: */
|
||||
playThroughEarpieceAndroid: boolean;
|
||||
}
|
||||
|
||||
function setIsEnabledAsync(value: boolean): Promise<void>;
|
||||
|
||||
Reference in New Issue
Block a user