tangled
alpha
login
or
join now
quilling.dev
/
social-app
7
fork
atom
An ATproto social media client -- with an independent Appview.
7
fork
atom
overview
issues
pulls
pipelines
rm from swift (#4923)
authored by
hailey.at
and committed by
GitHub
2 years ago
ae883e2d
db7a7444
-13
1 changed file
expand all
collapse all
unified
split
modules
expo-bluesky-swiss-army
ios
PlatformInfo
ExpoPlatformInfoModule.swift
-13
modules/expo-bluesky-swiss-army/ios/PlatformInfo/ExpoPlatformInfoModule.swift
···
14
14
}
15
15
16
16
Function("setAudioActive") { (active: Bool) in
17
17
-
var categoryOptions: AVAudioSession.CategoryOptions
18
18
-
let currentCategory = AVAudioSession.sharedInstance().category
19
19
-
20
17
if active {
21
21
-
categoryOptions = [.mixWithOthers]
22
18
try? AVAudioSession.sharedInstance().setActive(true)
23
19
} else {
24
24
-
categoryOptions = [.duckOthers]
25
20
try? AVAudioSession
26
21
.sharedInstance()
27
22
.setActive(
···
29
24
options: [.notifyOthersOnDeactivation]
30
25
)
31
26
}
32
32
-
33
33
-
try? AVAudioSession
34
34
-
.sharedInstance()
35
35
-
.setCategory(
36
36
-
currentCategory,
37
37
-
mode: .default,
38
38
-
options: categoryOptions
39
39
-
)
40
27
}
41
28
}
42
29
}