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
}
15
16
Function("setAudioActive") { (active: Bool) in
17
-
var categoryOptions: AVAudioSession.CategoryOptions
18
-
let currentCategory = AVAudioSession.sharedInstance().category
19
-
20
if active {
21
-
categoryOptions = [.mixWithOthers]
22
try? AVAudioSession.sharedInstance().setActive(true)
23
} else {
24
-
categoryOptions = [.duckOthers]
25
try? AVAudioSession
26
.sharedInstance()
27
.setActive(
···
29
options: [.notifyOthersOnDeactivation]
30
)
31
}
32
-
33
-
try? AVAudioSession
34
-
.sharedInstance()
35
-
.setCategory(
36
-
currentCategory,
37
-
mode: .default,
38
-
options: categoryOptions
39
-
)
40
}
41
}
42
}
···
14
}
15
16
Function("setAudioActive") { (active: Bool) in
0
0
0
17
if active {
0
18
try? AVAudioSession.sharedInstance().setActive(true)
19
} else {
0
20
try? AVAudioSession
21
.sharedInstance()
22
.setActive(
···
24
options: [.notifyOthersOnDeactivation]
25
)
26
}
0
0
0
0
0
0
0
0
27
}
28
}
29
}