Skip to content

Commit f78840c

Browse files
authored
Fix PlaybackCategories in docs (react-native-audio-toolkit#208)
1 parent b6181db commit f78840c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/API.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ Media methods
3131

3232
// (iOS only) Define the audio session category
3333
// Options: Playback, Ambient and SoloAmbient
34-
category : PlaybackCategory (default: PlaybackCategory.Playback)
34+
// you need to import PlaybackCategories: import { PlaybackCategories } from '@react-native-community/audio-toolkit'
35+
// more infos about categories here: https://developer.apple.com/documentation/avfoundation/avaudiosession/category
36+
category : PlaybackCategories (default: PlaybackCategories.Playback)
3537

3638
// Boolean to determine whether other audio sources on the device will mix
3739
// with sounds being played back by this module. If this is not set, playback

0 commit comments

Comments
 (0)