This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Tutorial code for: http://www.binpress.com/tutorial/generating-nice-movie-previews-with-ffmpeg/138 | |
--> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<a href="https://www.youtube.com/watch?v=v1uyQZNg2vE" target="_blank" class="video-preview" data-frames="100" data-source="http://i.imgur.com/BX0pV4J.jpg"></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AppLifecycleTracker.swift | |
// A Swift 4.0 class to keep track of the time an app is in background, foreground, terminated and suspended | |
// Usage: var appLifecycleTracker:AppLifecycleTracker? = AppLifecycleTracker() | |
// Must enable CoreLocation update background mode to allow this to update in BG | |
// Privacy - Location Always and When In Use Usage Description must be in the plist | |
// Test by freeing ram while app is backgrounded to see last suspention time | |
// | |
// Created by Andre Todman on 10/19/18. | |
// |