mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
20 lines
323 B
Swift
20 lines
323 B
Swift
//
|
|
// wakeLock.swift
|
|
// Runner
|
|
//
|
|
// Created by Godwin Asuquo on 1/21/22.
|
|
//
|
|
|
|
import Foundation
|
|
import UIKit
|
|
|
|
func enableWakeScreen() -> Bool{
|
|
UIApplication.shared.isIdleTimerDisabled = true
|
|
|
|
return true
|
|
}
|
|
|
|
func disableWakeScreen() -> Bool{
|
|
UIApplication.shared.isIdleTimerDisabled = false
|
|
return true
|
|
}
|