Skip to content

Instantly share code, notes, and snippets.

@fmo91
Created February 27, 2017 01:39
Show Gist options
  • Select an option

  • Save fmo91/4fe11af69bdd2ae17665f1aefedc14b9 to your computer and use it in GitHub Desktop.

Select an option

Save fmo91/4fe11af69bdd2ae17665f1aefedc14b9 to your computer and use it in GitHub Desktop.
Sample ApplicationService implementation
import Foundation
import PluggableApplicationDelegate
final class LoggerApplicationService: NSObject, ApplicationService {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool {
print("It has started!")
return true
}
func applicationDidEnterBackground(_ application: UIApplication) {
print("It has entered background")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment