Add support for system volume button listener on iOS 17.2+

This commit is contained in:
Ilya Laktyushin
2024-03-26 20:26:30 +04:00
parent 9f8a699f32
commit 4748fa62c6
5 changed files with 159 additions and 79 deletions

View File

@@ -323,6 +323,7 @@ private final class CameraScreenComponent: CombinedComponent {
}
self.volumeButtonsListener = VolumeButtonsListener(
sharedContext: self.context.sharedContext,
shouldBeActive: self.volumeButtonsListenerShouldBeActive.get(),
upPressed: { [weak self] in
if let self {