mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 18:12:44 +02:00
Expose is protection set
This commit is contained in:
@@ -55,6 +55,10 @@ class LocalAuthenticationService: NSObject {
|
||||
}
|
||||
return (systemUptime - appLastActiveTime) > pinCodePreferences.graceTimeInSeconds
|
||||
}
|
||||
|
||||
var isProtectionSet: Bool {
|
||||
return pinCodePreferences.isPinSet || pinCodePreferences.isBiometricsSet
|
||||
}
|
||||
|
||||
func applicationWillResignActive() {
|
||||
appLastActiveTime = systemUptime
|
||||
|
||||
Reference in New Issue
Block a user