mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
Fixes #2707 - Prevent the app from locking while recording a voice message
This commit is contained in:
committed by
Stefan Ceriu
parent
effe3b6a9b
commit
1e810f91ff
@@ -19,6 +19,10 @@ import UIKit
|
||||
|
||||
// sourcery: AutoMockable
|
||||
protocol AppMediatorProtocol {
|
||||
var appState: UIApplication.State { get }
|
||||
|
||||
var backgroundTimeRemaining: TimeInterval { get }
|
||||
|
||||
func beginBackgroundTask(withName taskName: String?, expirationHandler handler: (() -> Void)?) -> UIBackgroundTaskIdentifier
|
||||
|
||||
func endBackgroundTask(_ identifier: UIBackgroundTaskIdentifier)
|
||||
@@ -26,10 +30,8 @@ protocol AppMediatorProtocol {
|
||||
func open(_ url: URL)
|
||||
|
||||
func openAppSettings()
|
||||
|
||||
var backgroundTimeRemaining: TimeInterval { get }
|
||||
|
||||
var appState: UIApplication.State { get }
|
||||
|
||||
func setIdleTimerDisabled(_ disabled: Bool)
|
||||
}
|
||||
|
||||
extension UIApplication.State: CustomStringConvertible {
|
||||
|
||||
Reference in New Issue
Block a user