UIApplication
public extension UIApplication
extension UIApplication: SetupOnce
-
Initiates call to
phone
Declaration
Swift
static func makeCall(phone: String)
-
Starts background task if app is in background and task is not yet started.
Declaration
Swift
func startBackgroundTaskIfNeeded()
-
Stops background task if not yet stopped.
Declaration
Swift
func stopBackgroundTaskIfNeeded()
-
Returns
true
if the app is running unit tests andfalse
otherwise.Declaration
Swift
static let isRunningUnitTests: Bool
-
Declaration
Swift
extension UIApplication.State: CustomStringConvertible
-
Previous application start time
Declaration
Swift
public static var previousStartTime: Date { get set }
-
Application start time
Declaration
Swift
public static var startTime: Date { get set }
-
Undocumented
Declaration
Swift
public static var setupOnce: Int