 //
-//  bgtask.swift
-//  Rotation
+//  JTSBGTask.swift
+//  JTSBGTask
 //
 //  Created by Jared Sinclair on 8/15/15.
 //  Copyright © 2015 Nice Boy LLC. All rights reserved.


//-----------------------------------------------------------------------------

static func start() -> BGTask?

Convenience for initializing a task with a default expiration handler;
@return Returns nil if background task time was denied.


*/

public class JTSBGTask {
    
    // MARK: Public
    
    public static func start() -> JTSBGTask? {
        let task = JTSBGTask();
        let successful = task.startWithExpirationHandler(nil)
        return (successful) ? task : nil
    }
