Classes
The following classes are available globally.
-
The
NetworkActivityIndicatorManagermanages the state of the network activity indicator in the status bar. When enabled, it will listen for notifications indicating that a URL session task has started or completed and start animating the indicator accordingly. The indicator will continue to animate while the internal activity count is greater than zero.To use the
NetworkActivityIndicatorManager, thesharedinstance should be enabled in theapplication:didFinishLaunchingWithOptions:method in theAppDelegate. This can be done with the following:NetworkActivityIndicatorManager.shared.isEnabled = trueBy setting the
See moreisEnabledproperty totruefor thesharedinstance, the network activity indicator will show and hide automatically as Alamofire requests start and complete. You should not ever need to callincrementActivityCountanddecrementActivityCountyourself.Declaration
Swift
public class NetworkActivityIndicatorManager
View on GitHub
Install in Dash
Classes Reference