You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cake_wallet/ios/CakeWallet/wakeLock.swift

21 lines
323 B

//
// 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
}