TwentyFourSeven 0.0.1

TwentyFourSeven 0.0.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Feb 2015
SPMSupports SPM

Maintained by Dominik.



  • By
  • Dominik Heier

TwentyFourHours is a library for apps that are supposed to run all day long e.g. as a public display. It lets you specify when the app is allowed to go idle and when not.

As of Version 0.0.1 you can specify

  • the hour of the day after which the app is NOT allowed to go idle
  • the hour of the day after which the app IS allowed to go idle
  • for a) Monday - Friday and b) Saturday.

On Sunday the app is always allowed to go idle

Podfile

pod 'TwentyFourSeven'

Usage

Add the setting pane to your existing Settings.bundle's Root.plist

<dict>
  <key>Type</key>
  <string>PSChildPaneSpecifier</string>
  <key>Title</key>
  <string>Shop Hours</string>
  <key>File</key>
  <string>ShopHours</string>
</dict>

Initialize the Scheduler (objective-c)

in your AppDelegate.m file

#import "AppDelegate.h"

@implementation AppDelegate

- (void)applicationDidFinishLaunching:(UIApplication *)application {
    [TwentyFourSeven sharedInstance];
}
@end

in your AppDelegate.h file

#import "TwentyFourSeven-Swift.h"