• This project
    • Loading...
  • Sign in

flutter_package / flutter_wakelock

Go to a project
Toggle navigation
  • Projects
  • Groups
  • Snippets
  • Help
Toggle navigation pinning
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • flutter_wakelock
  • wakelock
  • ios
  • Classes
  • UIApplication+idleTimerLock.h
  • Fix Infinite loop on iOS (#156) · 295095c4 ...
    295095c4 Browse Files
    * [Fix][*]fix Infinite loop of iOS
    
    Signed-off-by: suyao-lingoace <yao.su@pplingo.com>
    
    * Fix Infinite loop on iOS
    
    When you use setter method in it's KVO,Will cause infinite loop,So I hook the setter method ,If the enable is 'YES' ,I ignore other call the setter.
    
    Signed-off-by: suyao-lingoace <yao.su@pplingo.com>
    
    * Update wakelock/ios/Classes/WakelockPlugin.m
    
    Co-authored-by: creativecreatorormaybenot <creativecreatorormaybenot@gmail.com>
    
    * Update wakelock/ios/Classes/WakelockPlugin.m
    
    Co-authored-by: creativecreatorormaybenot <creativecreatorormaybenot@gmail.com>
    
    * Update wakelock/ios/Classes/WakelockPlugin.m
    
    Co-authored-by: creativecreatorormaybenot <creativecreatorormaybenot@gmail.com>
    suyao-lingoace authored 2022-01-19 10:02:40 +0000
UIApplication+idleTimerLock.h 261 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
//
//  UIApplication+idleTimerLock.h
//  wakelock
//
//  Created by suyao on 2021/12/17.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIApplication (idleTimerLock)

- (void)lock_idleTimerlockEnable:(BOOL)enable;

@end

NS_ASSUME_NONNULL_END