diff options
author | Hailey <me@haileyok.com> | 2024-08-09 14:35:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-09 14:35:26 -0700 |
commit | 5bfe5aa503d73e687ccc048efc5138edea97bea3 (patch) | |
tree | 2777c1371e9c7a1f7d4e31e50b1bd0137ec82e67 /modules/expo-bluesky-swiss-army/src/PlatformInfo/index.native.ts | |
parent | dd0d50a6f0f69d8b58f7dd26303b6b89528d2d04 (diff) | |
download | voidsky-5bfe5aa503d73e687ccc048efc5138edea97bea3.tar.zst |
[Video] More tweaks to `AVAudioSession` options (#4910)
Diffstat (limited to 'modules/expo-bluesky-swiss-army/src/PlatformInfo/index.native.ts')
-rw-r--r-- | modules/expo-bluesky-swiss-army/src/PlatformInfo/index.native.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.native.ts b/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.native.ts index 949bd78a2..ba9dddf82 100644 --- a/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.native.ts +++ b/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.native.ts @@ -1,6 +1,8 @@ import {Platform} from 'react-native' import {requireNativeModule} from 'expo-modules-core' +import {AudioCategory} from './types' + const NativeModule = requireNativeModule('ExpoPlatformInfo') export function getIsReducedMotionEnabled(): boolean { @@ -11,3 +13,8 @@ export function setAudioMixWithOthers(mixWithOthers: boolean): void { if (Platform.OS !== 'ios') return NativeModule.setAudioMixWithOthers(mixWithOthers) } + +export function setAudioCategory(audioCategory: AudioCategory): void { + if (Platform.OS !== 'ios') return + NativeModule.setAudioCategory(audioCategory) +} |