mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00:00
* feat: show notification and battery optimization warning * cleanup --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
19 lines
496 B
Swift
19 lines
496 B
Swift
import Foundation
|
|
|
|
class PermissionApiImpl: PermissionApi {
|
|
func isIgnoringBatteryOptimizations() throws -> PermissionStatus {
|
|
return PermissionStatus.granted;
|
|
}
|
|
|
|
func hasManageMediaPermission() throws -> Bool {
|
|
return false
|
|
}
|
|
|
|
func requestManageMediaPermission(completion: @escaping (Result<Bool, Error>) -> Void) {
|
|
completion(.success(false))
|
|
}
|
|
|
|
func manageMediaPermission(completion: @escaping (Result<Bool, Error>) -> Void) {
|
|
completion(.success(false))
|
|
}
|
|
}
|